aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2005-06-06 19:28:27 +0000
committerEli Zaretskii2005-06-06 19:28:27 +0000
commit8747ac3f6853164434eb82c8172c7547b4e32be7 (patch)
treecfee376e347acdb4d0ecb7e65d1c1c9e7d694f78 /src
parente9bdb9c9f79bfb31977501ef5aebd53f1505718a (diff)
downloademacs-8747ac3f6853164434eb82c8172c7547b4e32be7.tar.gz
emacs-8747ac3f6853164434eb82c8172c7547b4e32be7.zip
(RVA_TO_PTR): New macro.
Diffstat (limited to 'src')
-rw-r--r--src/w32proc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index 9abee2bf0c2..48b5e2c14a3 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -57,6 +57,11 @@ extern BOOL WINAPI IsValidLocale(LCID, DWORD);
57#include "syssignal.h" 57#include "syssignal.h"
58#include "w32term.h" 58#include "w32term.h"
59 59
60#define RVA_TO_PTR(var,section,filedata) \
61 ((void *)((section)->PointerToRawData \
62 + ((DWORD)(var) - (section)->VirtualAddress) \
63 + (filedata).file_base))
64
60/* Control whether spawnve quotes arguments as necessary to ensure 65/* Control whether spawnve quotes arguments as necessary to ensure
61 correct parsing by child process. Because not all uses of spawnve 66 correct parsing by child process. Because not all uses of spawnve
62 are careful about constructing argv arrays, we make this behaviour 67 are careful about constructing argv arrays, we make this behaviour