X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fmem-limits.h;h=a7625d0b7c0f7b6b2e9a4de48d5e952e3ff393fd;hb=2cbece6401b2279497293e6dc54cda607f49db2f;hp=f3d7226f3e2d59acd77c21059a3a05966eaa3b81;hpb=d3dd71489ab2730d79536ebdc3c56cca82766e9d;p=chise%2Fxemacs-chise.git- diff --git a/src/mem-limits.h b/src/mem-limits.h index f3d7226..a7625d0 100644 --- a/src/mem-limits.h +++ b/src/mem-limits.h @@ -27,8 +27,8 @@ Boston, MA 02111-1307, USA. */ getrlimit() should be preferred to ulimit(). On Linux, ulimit() is deprecated and always returns -1. */ -#ifndef _XEMACS_MEM_LIMITS_H_ -#define _XEMACS_MEM_LIMITS_H_ +#ifndef INCLUDED_mem_limits_h_ +#define INCLUDED_mem_limits_h_ #ifdef HAVE_CONFIG_H #include @@ -101,19 +101,12 @@ typedef unsigned long SIZE; #endif extern POINTER start_of_data (void); -#ifdef DATA_SEG_BITS -#define EXCEEDS_LISP_PTR(ptr) \ - (((EMACS_UINT) (ptr) & ~DATA_SEG_BITS) >> VALBITS) -#else -#define EXCEEDS_LISP_PTR(ptr) ((EMACS_UINT) (ptr) >> VALBITS) -#endif +#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; @@ -130,7 +123,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 @@ -225,4 +218,4 @@ get_lim_data (void) #endif /* not NO_LIM_DATA */ #endif /* not HEAP_IN_DATA */ -#endif /* _XEMACS_MEM_LIMITS_H_ */ +#endif /* INCLUDED_mem_limits_h_ */