aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2010-07-28 22:58:58 -0700
committerDan Nicolaescu2010-07-28 22:58:58 -0700
commit56a000c73d1162d01f97384f6fa54106f9caeb17 (patch)
treebd87173978829fdc58e49a46fc359cae068f311b /src
parente6cba65065d7002d181c3d440bfc5e04ba953783 (diff)
downloademacs-56a000c73d1162d01f97384f6fa54106f9caeb17.tar.gz
emacs-56a000c73d1162d01f97384f6fa54106f9caeb17.zip
* src/mem-limits.h: Remove duplicated includes.
(NULL): Remove definition, unused. (POINTER): Remove definition. (start_of_data): Use char* in prototype, as the function definition does.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/mem-limits.h17
2 files changed, 7 insertions, 16 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3c1a543d3ec..f3f56c1a7e7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,11 @@
12010-07-29 Dan Nicolaescu <dann@ics.uci.edu> 12010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2 2
3 * mem-limits.h: Remove duplicated includes.
4 (NULL): Remove definition, unused.
5 (POINTER): Remove definition.
6 (start_of_data): Use char* in prototype, as the function
7 definition does.
8
3 Remove extern declarations from .c files, and them to .h files. 9 Remove extern declarations from .c files, and them to .h files.
4 * keyboard.h (Qhelp_echo, waiting_for_input) 10 * keyboard.h (Qhelp_echo, waiting_for_input)
5 (input_available_clear_time, ignore_mouse_drag_p) 11 (input_available_clear_time, ignore_mouse_drag_p)
diff --git a/src/mem-limits.h b/src/mem-limits.h
index 8827c458c02..9ec1558527d 100644
--- a/src/mem-limits.h
+++ b/src/mem-limits.h
@@ -34,24 +34,9 @@ extern int etext;
34# endif 34# endif
35#endif 35#endif
36 36
37#ifdef BSD4_2
38#include <sys/time.h>
39#include <sys/resource.h>
40#endif /* BSD4_2 */
41
42/* The important properties of this type are that 1) it's a pointer, and
43 2) arithmetic on it should work as if the size of the object pointed
44 to has a size of 1. */
45typedef POINTER_TYPE *POINTER;
46
47typedef unsigned long SIZE; 37typedef unsigned long SIZE;
48 38
49#ifdef NULL 39extern char *start_of_data (void);
50#undef NULL
51#endif
52#define NULL ((POINTER) 0)
53
54extern POINTER start_of_data (void);
55#if defined USE_LSB_TAG 40#if defined USE_LSB_TAG
56#define EXCEEDS_LISP_PTR(ptr) 0 41#define EXCEEDS_LISP_PTR(ptr) 0
57#elif defined DATA_SEG_BITS 42#elif defined DATA_SEG_BITS