cut another 30 bytes or so off. also made atoi take negative octal/hex numbers.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1175 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
372e1f0d11
commit
7dbc2a11c8
4 changed files with 43 additions and 53 deletions
|
@ -126,16 +126,14 @@ static int *parms;
|
|||
|
||||
static int NSISCALL process_string_fromparm_toint(int id_)
|
||||
{
|
||||
process_string(ps_tmpbuf,GetStringFromStringTab(parms[id_]));
|
||||
return myatoi(ps_tmpbuf);
|
||||
return myatoi(process_string(ps_tmpbuf,GetStringFromStringTab(parms[id_])));
|
||||
}
|
||||
|
||||
// NB - USE CAUTION when rearranging code to make use of the new return value of
|
||||
// this function - be sure the parm being accessed is not modified before the call.
|
||||
static char * NSISCALL process_string_fromparm_tobuf(int id_)
|
||||
{
|
||||
process_string_fromtab(bufs[id_ >> 4], parms[id_ & 0xF]);
|
||||
return bufs[id_ >> 4];
|
||||
return process_string_fromtab(bufs[id_ >> 4], parms[id_ & 0xF]);
|
||||
}
|
||||
|
||||
// returns EXEC_ERROR on error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue