Plugin size only counted once now, no more huge "optimizations" when using one plugin a lot of times.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1703 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
2f8a2e37a7
commit
1f9aee2b38
5 changed files with 57 additions and 26 deletions
|
@ -186,13 +186,14 @@ public:
|
|||
return 0;
|
||||
}
|
||||
|
||||
char *find(const char *str) // returns NULL if not found
|
||||
char *find(const char *str, int *idx=0) // returns NULL if not found
|
||||
{
|
||||
int id;
|
||||
int v=defines.find(str,0,&id);
|
||||
if (v<0) return NULL;
|
||||
v=values.idx2pos(id);
|
||||
if (v<0) return NULL;
|
||||
if (idx) *idx=id;
|
||||
return (char*)values.get()+v;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue