aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorStefan Monnier2003-07-21 20:03:35 +0000
committerStefan Monnier2003-07-21 20:03:35 +0000
commit7cdee93615e6ac370d08ffd6503107793cafe0ec (patch)
treef93be4a0e0fedf6d28581ee1b63c74634c1b872d /src/alloc.c
parentec589b784a03ee7f6a36f871e35e41e0adedf909 (diff)
downloademacs-7cdee93615e6ac370d08ffd6503107793cafe0ec.tar.gz
emacs-7cdee93615e6ac370d08ffd6503107793cafe0ec.zip
(MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
(GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than MARKBIT as the gcmarkbit for strings.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 7a27055e2bd..102bc637b58 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -92,9 +92,9 @@ static __malloc_size_t bytes_used_when_full;
92/* Mark, unmark, query mark bit of a Lisp string. S must be a pointer 92/* Mark, unmark, query mark bit of a Lisp string. S must be a pointer
93 to a struct Lisp_String. */ 93 to a struct Lisp_String. */
94 94
95#define MARK_STRING(S) ((S)->size |= MARKBIT) 95#define MARK_STRING(S) ((S)->size |= ARRAY_MARK_FLAG)
96#define UNMARK_STRING(S) ((S)->size &= ~MARKBIT) 96#define UNMARK_STRING(S) ((S)->size &= ~ARRAY_MARK_FLAG)
97#define STRING_MARKED_P(S) ((S)->size & MARKBIT) 97#define STRING_MARKED_P(S) ((S)->size & ARRAY_MARK_FLAG)
98 98
99#define VECTOR_MARK(V) ((V)->size |= ARRAY_MARK_FLAG) 99#define VECTOR_MARK(V) ((V)->size |= ARRAY_MARK_FLAG)
100#define VECTOR_UNMARK(V) ((V)->size &= ~ARRAY_MARK_FLAG) 100#define VECTOR_UNMARK(V) ((V)->size &= ~ARRAY_MARK_FLAG)
@@ -106,7 +106,7 @@ static __malloc_size_t bytes_used_when_full;
106 strings. */ 106 strings. */
107 107
108#define GC_STRING_BYTES(S) (STRING_BYTES (S)) 108#define GC_STRING_BYTES(S) (STRING_BYTES (S))
109#define GC_STRING_CHARS(S) ((S)->size & ~MARKBIT) 109#define GC_STRING_CHARS(S) ((S)->size & ~ARRAY_MARK_FLAG)
110 110
111/* Number of bytes of consing done since the last gc. */ 111/* Number of bytes of consing done since the last gc. */
112 112
@@ -1446,7 +1446,7 @@ int
1446string_bytes (s) 1446string_bytes (s)
1447 struct Lisp_String *s; 1447 struct Lisp_String *s;
1448{ 1448{
1449 int nbytes = (s->size_byte < 0 ? s->size & ~MARKBIT : s->size_byte); 1449 int nbytes = (s->size_byte < 0 ? s->size & ~ARRAY_MARK_FLAG : s->size_byte);
1450 if (!PURE_POINTER_P (s) 1450 if (!PURE_POINTER_P (s)
1451 && s->data 1451 && s->data
1452 && nbytes != SDATA_NBYTES (SDATA_OF_STRING (s))) 1452 && nbytes != SDATA_NBYTES (SDATA_OF_STRING (s)))