refactoring: split strlist.h classes into separate {h,cpp} files

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3694 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2004-10-02 15:17:00 +00:00
parent 779e0354d2
commit 60aa307741
10 changed files with 971 additions and 798 deletions

View file

@ -21,14 +21,14 @@
# include <stdarg.h>
#endif
#include <cassert> // for assert
#define RET_UNLESS_OK( function_rc ) do { \
int rc = (function_rc); \
if ( rc != PS_OK) \
return rc; \
} while (false)
int MMapFile::m_iAllocationGranularity = 0;
#ifdef NSIS_CONFIG_COMPRESSION_SUPPORT
#ifdef _WIN32
DWORD WINAPI lzmaCompressThread(LPVOID lpParameter)
@ -1508,18 +1508,18 @@ int CEXEBuild::resolve_coderefs(const char *str)
{
int x=sec->name_ptr;
char fname[1024];
char *secname;
const char *section_name;
if (x < 0)
{
// lang string
secname = "$(lang string)";
section_name = "$(lang string)";
}
else
{
// normal string
secname = cur_strlist->get() + x;
section_name = cur_strlist->get() + x;
}
if (x) wsprintf(fname,"%s section \"%s\" (%d)",str,secname,cnt);
if (x) wsprintf(fname,"%s section \"%s\" (%d)",str,section_name,cnt);
else wsprintf(fname,"unnamed %s section (%d)",str,cnt);
for (x = sec->code; x < sec->code+sec->code_size; x ++)
{