[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/unexw32.c
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] Changes to emacs/src/unexw32.c |
Date: |
Mon, 06 Jun 2005 15:28:02 -0400 |
Index: emacs/src/unexw32.c
diff -c emacs/src/unexw32.c:1.24 emacs/src/unexw32.c:1.25
*** emacs/src/unexw32.c:1.24 Mon Sep 1 15:45:57 2003
--- emacs/src/unexw32.c Mon Jun 6 19:28:02 2005
***************
*** 325,330 ****
--- 325,333 ----
/* Convert address in executing image to RVA. */
#define PTR_TO_RVA(ptr) ((DWORD)(ptr) - (DWORD) GetModuleHandle (NULL))
+ #define RVA_TO_PTR(var,section,filedata) \
+ ((void *)(RVA_TO_OFFSET(var,section) + (filedata).file_base))
+
#define PTR_TO_OFFSET(ptr, pfile_data) \
((unsigned char *)(ptr) - (pfile_data)->file_base)
- [Emacs-diffs] Changes to emacs/src/unexw32.c,
Eli Zaretskii <=