HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e37c080
)
* mem-limits.h [DATA_SEG_BITS] (EXCEEDS_LISP_PTR): Remember to
author
Jim Blandy
<jimb@redhat.com>
Mon, 16 Nov 1992 00:45:34 +0000
(
00:45
+0000)
committer
Jim Blandy
<jimb@redhat.com>
Mon, 16 Nov 1992 00:45:34 +0000
(
00:45
+0000)
remove DATA_SEG_BITS from the pointer before testing if the
pointer fits in VALBITS.
src/mem-limits.h
patch
|
blob
|
blame
|
history
diff --git
a/src/mem-limits.h
b/src/mem-limits.h
index
0150b83
..
06c8e1f
100644
(file)
--- a/
src/mem-limits.h
+++ b/
src/mem-limits.h
@@
-44,7
+44,12
@@
typedef unsigned long SIZE;
#define NULL ((POINTER) 0)
extern POINTER start_of_data ();
+#ifdef DATA_SEG_BITS
+#define EXCEEDS_LISP_PTR(ptr) \
+ (((unsigned int) (ptr) & ~DATA_SEG_BITS) >> VALBITS)
+#else
#define EXCEEDS_LISP_PTR(ptr) ((unsigned int) (ptr) >> VALBITS)
+#endif
#ifdef BSD
#ifndef DATA_SEG_BITS