comparison src/alloc.c @ 4956:0f94e1e7d273

(make_pure_string): If we USE_TEXT_PROPERTIES, set the interval of the pure string to NULL_INTERVAL.
author Richard M. Stallman <rms@gnu.org>
date Wed, 10 Nov 1993 19:55:18 +0000
parents 1fc792473491
children 6389ed5b45ac
comparison
equal deleted inserted replaced
4955:2da352ce967d 4956:0f94e1e7d273
1009 error ("Pure Lisp storage exhausted"); 1009 error ("Pure Lisp storage exhausted");
1010 XSET (new, Lisp_String, PUREBEG + pureptr); 1010 XSET (new, Lisp_String, PUREBEG + pureptr);
1011 XSTRING (new)->size = length; 1011 XSTRING (new)->size = length;
1012 bcopy (data, XSTRING (new)->data, length); 1012 bcopy (data, XSTRING (new)->data, length);
1013 XSTRING (new)->data[length] = 0; 1013 XSTRING (new)->data[length] = 0;
1014
1015 /* We must give strings in pure storage some kind of interval. So we
1016 give them a null one. */
1017 #if defined (USE_TEXT_PROPERTIES)
1018 XSTRING (new)->intervals = NULL_INTERVAL;
1019 #endif
1014 pureptr += (size + sizeof (int) - 1) 1020 pureptr += (size + sizeof (int) - 1)
1015 / sizeof (int) * sizeof (int); 1021 / sizeof (int) * sizeof (int);
1016 return new; 1022 return new;
1017 } 1023 }
1018 1024