X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fmem-limits.h;h=fb6f16b916060fadc5959a4560499ec96a8d9009;hb=91618e583e5c09020a95290b0fac1f773d299fc6;hp=fac673268ad4f4614a765874f57c75df5e8d7adb;hpb=716cfba952c1dc0d2cf5c968971f3780ba728a89;p=chise%2Fxemacs-chise.git diff --git a/src/mem-limits.h b/src/mem-limits.h index fac6732..fb6f16b 100644 --- a/src/mem-limits.h +++ b/src/mem-limits.h @@ -38,10 +38,6 @@ Boston, MA 02111-1307, USA. */ #include #endif -#ifdef MSDOS -#include -#endif - /* Some systems need this before . */ #include @@ -70,16 +66,14 @@ extern int etext, __data_start; weak_symbol (__data_start) #ifndef BSD4_2 #ifndef USG -#ifndef MSDOS -#ifndef WINDOWSNT -#ifndef __CYGWIN32__ +#ifndef WIN32_NATIVE +#ifndef CYGWIN #if defined(__linux__) && defined(powerpc) /*Added Kaoru Fukui*/ #else /*Added Kaoru Fukui*/ #include #endif /*Added by Fukui*/ -#endif /* not __CYGWIN32__ */ -#endif /* not WINDOWSNT */ -#endif /* not MSDOS */ +#endif /* not CYGWIN */ +#endif /* not WIN32_NATIVE */ #endif /* not USG */ #else /* if BSD4_2 */ #include @@ -96,7 +90,7 @@ typedef void *POINTER; typedef char *POINTER; #endif -#ifndef __CYGWIN32__ +#ifndef CYGWIN typedef unsigned long SIZE; #endif @@ -104,11 +98,9 @@ extern POINTER start_of_data (void); #define EXCEEDS_LISP_PTR(ptr) 0 #ifdef BSD -#ifndef DATA_SEG_BITS extern int etext; #define start_of_data() &etext #endif -#endif #else /* not emacs */ extern char etext; @@ -125,7 +117,7 @@ static POINTER data_space_start; /* Number of bytes of writable memory we can expect to be able to get */ extern unsigned int lim_data; -#ifdef HEAP_IN_DATA +#if defined (HEAP_IN_DATA) && !defined(PDUMP) extern unsigned long static_heap_size; extern int initialized; static void @@ -171,7 +163,7 @@ get_lim_data (void) } #else /* not USG */ -#if defined( WINDOWSNT ) +#if defined( WIN32_NATIVE ) static void get_lim_data (void) @@ -183,22 +175,11 @@ get_lim_data (void) #else #if !defined (BSD4_2) && !defined (__osf__) -#ifdef MSDOS -void -get_lim_data (void) -{ - _go32_dpmi_meminfo info; - - _go32_dpmi_get_free_memory_information (&info); - lim_data = info.available_memory; -} -#else /* not MSDOS */ static void get_lim_data (void) { lim_data = vlimit (LIM_DATA, -1); } -#endif /* not MSDOS */ #else /* BSD4_2 */ @@ -215,7 +196,7 @@ get_lim_data (void) #endif } #endif /* BSD4_2 */ -#endif /* not WINDOWSNT */ +#endif /* not WIN32_NATIVE */ #endif /* not USG */ #endif /* not NO_LIM_DATA */ #endif /* not HEAP_IN_DATA */