switch to plugin.h

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5832 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2008-12-12 17:18:43 +00:00
parent f6800c8052
commit 4ba8da04fd
14 changed files with 15 additions and 28 deletions

View file

@ -14,9 +14,7 @@
#include "resource.h"
#include "shellapi.h"
#define popstring dontuseme
#include "../ExDLL/exdll.h"
#undef popstring
#include <plugin.h> // nsis plugin.h
// Use for functions only called from one place to possibly reduce some code
// size. Allows the source code to remain readable by leaving the function
@ -30,18 +28,6 @@
void *WINAPI MALLOC(int len) { return (void*)GlobalAlloc(GPTR,len); }
void WINAPI FREE(void *d) { if (d) GlobalFree((HGLOBAL)d); }
void WINAPI popstring(char *str)
{
if (g_stacktop && *g_stacktop)
{
stack_t *th = *g_stacktop;
*g_stacktop = th->next;
if (str)
lstrcpy(str, th->text);
FREE(th);
}
}
#define strcpy(x,y) lstrcpy(x,y)
//#define strncpy(x,y,z) lstrcpyn(x,y,z)
#define strdup(x) STRDUP(x)