comparison src/w32proc.c @ 63087:ba5fe07b9394

(RVA_TO_PTR): New macro.
author Eli Zaretskii <eliz@gnu.org>
date Mon, 06 Jun 2005 19:28:27 +0000
parents e6e0caa7ec87
children a8fa7c632ee4 173dee4e2611
comparison
equal deleted inserted replaced
63086:96407b684751 63087:ba5fe07b9394
54 #include "systime.h" 54 #include "systime.h"
55 #include "syswait.h" 55 #include "syswait.h"
56 #include "process.h" 56 #include "process.h"
57 #include "syssignal.h" 57 #include "syssignal.h"
58 #include "w32term.h" 58 #include "w32term.h"
59
60 #define RVA_TO_PTR(var,section,filedata) \
61 ((void *)((section)->PointerToRawData \
62 + ((DWORD)(var) - (section)->VirtualAddress) \
63 + (filedata).file_base))
59 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
63 conditional (off by default). */ 68 conditional (off by default). */