diff options
| author | Eli Zaretskii | 2008-08-15 12:49:09 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2008-08-15 12:49:09 +0000 |
| commit | b8526f6ea42d5c51070f4ddddcecc44e15022995 (patch) | |
| tree | 96423d2c0cf2ffaaf2c0b60908327a3e6e2c5e26 /src | |
| parent | b7e9b5b0c8c114f3416d21f8e7632fcd78afe551 (diff) | |
| download | emacs-b8526f6ea42d5c51070f4ddddcecc44e15022995.tar.gz emacs-b8526f6ea42d5c51070f4ddddcecc44e15022995.zip | |
(_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX): Rename from
_MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX. All users changed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/w32.c | 13 |
2 files changed, 13 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d9122e10ea3..1576266855e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-08-15 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX): | ||
| 4 | Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX. | ||
| 5 | All users changed. | ||
| 6 | |||
| 1 | 2008-08-14 Lawrence Mitchell <wence@gmx.li> | 7 | 2008-08-14 Lawrence Mitchell <wence@gmx.li> |
| 2 | 8 | ||
| 3 | * lread.c (Fread_char, Fread_char_exclusive): If no character | 9 | * lread.c (Fread_char, Fread_char_exclusive): If no character |
| @@ -73,8 +73,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 73 | #define _ANONYMOUS_STRUCT | 73 | #define _ANONYMOUS_STRUCT |
| 74 | #endif | 74 | #endif |
| 75 | #include <windows.h> | 75 | #include <windows.h> |
| 76 | /* This is guarded by a higher value of _WIN32_WINNT than what we use. */ | 76 | /* Some versions of compiler define MEMORYSTATUSEX, some don't, so we |
| 77 | typedef struct _MEMORYSTATUSEX { | 77 | use a different name to avoid compilation problems. */ |
| 78 | typedef struct _MEMORY_STATUS_EX { | ||
| 78 | DWORD dwLength; | 79 | DWORD dwLength; |
| 79 | DWORD dwMemoryLoad; | 80 | DWORD dwMemoryLoad; |
| 80 | DWORDLONG ullTotalPhys; | 81 | DWORDLONG ullTotalPhys; |
| @@ -84,7 +85,7 @@ typedef struct _MEMORYSTATUSEX { | |||
| 84 | DWORDLONG ullTotalVirtual; | 85 | DWORDLONG ullTotalVirtual; |
| 85 | DWORDLONG ullAvailVirtual; | 86 | DWORDLONG ullAvailVirtual; |
| 86 | DWORDLONG ullAvailExtendedVirtual; | 87 | DWORDLONG ullAvailExtendedVirtual; |
| 87 | } MEMORYSTATUSEX,*LPMEMORYSTATUSEX; | 88 | } MEMORY_STATUS_EX,*LPMEMORY_STATUS_EX; |
| 88 | 89 | ||
| 89 | #include <lmcons.h> | 90 | #include <lmcons.h> |
| 90 | #include <shlobj.h> | 91 | #include <shlobj.h> |
| @@ -279,7 +280,7 @@ typedef BOOL (WINAPI * GetProcessWorkingSetSize_Proc) ( | |||
| 279 | typedef BOOL (WINAPI * GlobalMemoryStatus_Proc) ( | 280 | typedef BOOL (WINAPI * GlobalMemoryStatus_Proc) ( |
| 280 | LPMEMORYSTATUS lpBuffer); | 281 | LPMEMORYSTATUS lpBuffer); |
| 281 | typedef BOOL (WINAPI * GlobalMemoryStatusEx_Proc) ( | 282 | typedef BOOL (WINAPI * GlobalMemoryStatusEx_Proc) ( |
| 282 | LPMEMORYSTATUSEX lpBuffer); | 283 | LPMEMORY_STATUS_EX lpBuffer); |
| 283 | 284 | ||
| 284 | /* ** A utility function ** */ | 285 | /* ** A utility function ** */ |
| 285 | static BOOL | 286 | static BOOL |
| @@ -3459,7 +3460,7 @@ BOOL WINAPI global_memory_status ( | |||
| 3459 | } | 3460 | } |
| 3460 | 3461 | ||
| 3461 | BOOL WINAPI global_memory_status_ex ( | 3462 | BOOL WINAPI global_memory_status_ex ( |
| 3462 | MEMORYSTATUSEX *buf) | 3463 | MEMORY_STATUS_EX *buf) |
| 3463 | { | 3464 | { |
| 3464 | static GlobalMemoryStatusEx_Proc s_pfn_Global_Memory_Status_Ex = NULL; | 3465 | static GlobalMemoryStatusEx_Proc s_pfn_Global_Memory_Status_Ex = NULL; |
| 3465 | 3466 | ||
| @@ -3658,7 +3659,7 @@ w32_system_process_attributes (pid) | |||
| 3658 | PROCESS_MEMORY_COUNTERS_EX mem_ex; | 3659 | PROCESS_MEMORY_COUNTERS_EX mem_ex; |
| 3659 | DWORD minrss, maxrss; | 3660 | DWORD minrss, maxrss; |
| 3660 | MEMORYSTATUS memst; | 3661 | MEMORYSTATUS memst; |
| 3661 | MEMORYSTATUSEX memstex; | 3662 | MEMORY_STATUS_EX memstex; |
| 3662 | double totphys = 0.0; | 3663 | double totphys = 0.0; |
| 3663 | Lisp_Object ctime, stime, utime, etime; | 3664 | Lisp_Object ctime, stime, utime, etime; |
| 3664 | double pcpu; | 3665 | double pcpu; |