System Plugin: Support for p as pointer/handle type
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6014 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
d81d3a7774
commit
eebc175b92
3 changed files with 23 additions and 1 deletions
|
@ -501,6 +501,12 @@ SystemProc *PrepareProc(BOOL NeedForCall)
|
|||
// Types
|
||||
case 'v':
|
||||
case 'V': temp2 = PAT_VOID; break;
|
||||
|
||||
#if !defined(SYSTEM_X86)
|
||||
#error "TODO: handle p"
|
||||
#else
|
||||
case 'p':
|
||||
#endif
|
||||
case 'i':
|
||||
case 'I': temp2 = PAT_INT; break;
|
||||
case 'l':
|
||||
|
|
|
@ -1,6 +1,18 @@
|
|||
#ifndef ___SYSTEM__H___
|
||||
#define ___SYSTEM__H___
|
||||
|
||||
// This should probably be moved to platform.h at some point
|
||||
|
||||
#if defined(_M_X64) || defined(__amd64__)
|
||||
# define SYSTEM_X64
|
||||
#elif defined(_M_IX86) || defined(__i386__) || defined(_X86_)
|
||||
# define SYSTEM_X86
|
||||
#else
|
||||
# error "Unknown architecture!"
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
// The following ifdef block is the standard way of creating macros which make exporting
|
||||
// from a DLL simpler. All files within this DLL are compiled with the SYSTEM_EXPORTS
|
||||
// symbol defined on the command line. this symbol should not be defined on any project
|
||||
|
|
|
@ -238,8 +238,12 @@ DetailPrint $4
|
|||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>p</th>
|
||||
<td>pointer (and other pointer sized types like handles and HWNDs)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>i</th>
|
||||
<td>int (includes char, byte, short, handles, pointers and so on)</td>
|
||||
<td>int (includes char, byte, short and so on)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>l</th>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue