* lisp/files.el (dir-locals-read-from-file): Check file non-empty
[emacs.git] / src / mem-limits.h
blob57a0ca6fefdcfa2b30f583147baff20a58708423
1 /* Includes for memory limit warnings.
2 Copyright (C) 1990, 1993-1996, 2001-2012 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) ATTRIBUTE_CONST;
37 #if USE_LSB_TAG || UINTPTR_MAX <= VAL_MAX
38 #define EXCEEDS_LISP_PTR(ptr) 0
39 #else
40 #define EXCEEDS_LISP_PTR(ptr) \
41 (((uintptr_t) (ptr) & ~DATA_SEG_BITS) >> VALBITS)
42 #endif