Decode message headers of non-MIME messages in Rmail.
[emacs.git] / src / mem-limits.h
blob86b2f44846ddda490a1561b7f95b54713de2afdc
1 /* Includes for memory limit warnings.
2 Copyright (C) 1990, 1993-1996, 2001-2011 Free Software Foundation, Inc.
4 This file is part of GNU Emacs.
6 GNU Emacs is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 GNU Emacs is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19 #ifdef MSDOS
20 #include <dpmi.h>
21 extern int etext;
22 #endif
24 /* Some systems need this before <sys/resource.h>. */
25 #include <sys/types.h>
27 #ifdef HAVE_SYS_RESOURCE_H
28 # include <sys/time.h>
29 # include <sys/resource.h>
30 #else
31 # if HAVE_SYS_VLIMIT_H
32 # include <sys/vlimit.h> /* Obsolete, says glibc */
33 # endif
34 #endif
36 extern char *start_of_data (void);
37 #if defined USE_LSB_TAG
38 #define EXCEEDS_LISP_PTR(ptr) 0
39 #elif defined DATA_SEG_BITS
40 #define EXCEEDS_LISP_PTR(ptr) \
41 (((uintptr_t) (ptr) & ~DATA_SEG_BITS) >> VALBITS)
42 #else
43 #define EXCEEDS_LISP_PTR(ptr) ((uintptr_t) (ptr) >> VALBITS)
44 #endif