Shaved off 208 bytes of code

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1056 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
eccles 2002-09-19 21:53:24 +00:00
parent 9ba0e9cdbd
commit 24977f45d0
4 changed files with 374 additions and 361 deletions

View file

@ -680,8 +680,8 @@ static DWORD dwRead;
DWORD CALLBACK StreamLicense(DWORD dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb)
{
lstrcpyn(pbBuff,(char*)dwCookie+dwRead,cb);
dwRead+=lstrlen(pbBuff);
*pcb=lstrlen(pbBuff);
dwRead+=mystrlen(pbBuff);
*pcb=mystrlen(pbBuff);
return 0;
}

File diff suppressed because it is too large Load diff

View file

@ -442,13 +442,6 @@ int NSISCALL mystrlen(const char *in)
return lstrlen(in);
}
int NSISCALL process_string_fromtab_toint(int offs)
{
process_string(ps_tmpbuf,GetStringFromStringTab(offs));
return myatoi(ps_tmpbuf);
}
// Dave Laundon's simplified process_string
void NSISCALL process_string(char *out, const char *in)
{

View file

@ -8,7 +8,6 @@ void NSISCALL process_string(char *out, const char *in);
void NSISCALL process_string_fromtab(char *out, int offs);
void NSISCALL process_string_from_lang(char *out, langid_t id);
int NSISCALL GetLangString(langid_t id);
int NSISCALL process_string_fromtab_toint(int offs);
void NSISCALL myRegGetStr(HKEY root, const char *sub, const char *name, char *out);
int NSISCALL myatoi(char *s);
void NSISCALL myitoa(char *s, int d);