From: Stefan Monnier Date: Mon, 21 Jul 2003 20:03:35 +0000 (+0000) Subject: (MARK_STRING, UNMARK_STRING, STRING_MARKED_P) X-Git-Tag: ttn-vms-21-2-B4~9285 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7cdee93615e6ac370d08ffd6503107793cafe0ec;p=emacs.git (MARK_STRING, UNMARK_STRING, STRING_MARKED_P) (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than MARKBIT as the gcmarkbit for strings. --- diff --git a/src/ChangeLog b/src/ChangeLog index d9a9e36a0a1..05d260ade6c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2003-07-21 Stefan Monnier + + * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P) + (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than + MARKBIT as the gcmarkbit for strings. + 2003-07-21 Richard M. Stallman * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef. 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; /* Mark, unmark, query mark bit of a Lisp string. S must be a pointer to a struct Lisp_String. */ -#define MARK_STRING(S) ((S)->size |= MARKBIT) -#define UNMARK_STRING(S) ((S)->size &= ~MARKBIT) -#define STRING_MARKED_P(S) ((S)->size & MARKBIT) +#define MARK_STRING(S) ((S)->size |= ARRAY_MARK_FLAG) +#define UNMARK_STRING(S) ((S)->size &= ~ARRAY_MARK_FLAG) +#define STRING_MARKED_P(S) ((S)->size & ARRAY_MARK_FLAG) #define VECTOR_MARK(V) ((V)->size |= ARRAY_MARK_FLAG) #define VECTOR_UNMARK(V) ((V)->size &= ~ARRAY_MARK_FLAG) @@ -106,7 +106,7 @@ static __malloc_size_t bytes_used_when_full; strings. */ #define GC_STRING_BYTES(S) (STRING_BYTES (S)) -#define GC_STRING_CHARS(S) ((S)->size & ~MARKBIT) +#define GC_STRING_CHARS(S) ((S)->size & ~ARRAY_MARK_FLAG) /* Number of bytes of consing done since the last gc. */ @@ -1446,7 +1446,7 @@ int string_bytes (s) struct Lisp_String *s; { - int nbytes = (s->size_byte < 0 ? s->size & ~MARKBIT : s->size_byte); + int nbytes = (s->size_byte < 0 ? s->size & ~ARRAY_MARK_FLAG : s->size_byte); if (!PURE_POINTER_P (s) && s->data && nbytes != SDATA_NBYTES (SDATA_OF_STRING (s)))