diff options
author | Eli Zaretskii <eliz@gnu.org> | 2005-06-06 19:28:27 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2005-06-06 19:28:27 +0000 |
commit | 0cd3f334cd53799e985fc17d1a001324d5ba5fca (patch) | |
tree | 44117a69b1b1aa8a3dfa69564cbf18c1be2ad3fe /src/w32proc.c | |
parent | 2e05e09fb862e514e4474df9a47a12c3965b15b1 (diff) | |
download | emacs-0cd3f334cd53799e985fc17d1a001324d5ba5fca.tar.gz |
(RVA_TO_PTR): New macro.
Diffstat (limited to 'src/w32proc.c')
-rw-r--r-- | src/w32proc.c | 5 |
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); #include "syssignal.h" #include "w32term.h" +#define RVA_TO_PTR(var,section,filedata) \ + ((void *)((section)->PointerToRawData \ + + ((DWORD)(var) - (section)->VirtualAddress) \ + + (filedata).file_base)) + /* Control whether spawnve quotes arguments as necessary to ensure correct parsing by child process. Because not all uses of spawnve are careful about constructing argv arrays, we make this behaviour |