From: Gerd Moellmann Date: Tue, 4 Jan 2000 12:21:48 +0000 (+0000) Subject: Add prototype for allocate_string_data. X-Git-Tag: emacs-pretest-21.0.90~5512 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f05d7ea2293fabf30b066ec5c0a0c209bf54eea9;p=emacs.git Add prototype for allocate_string_data. (struct Lisp_String): Make DATA member `unsigned char *'. --- diff --git a/src/lisp.h b/src/lisp.h index 41927973c79..f355207d625 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -1,5 +1,6 @@ /* Fundamental definitions for GNU Emacs Lisp interpreter. - Copyright (C) 1985,86,87,93,94,95,97,98,1999 Free Software Foundation, Inc. + Copyright (C) 1985,86,87,93,94,95,97,98,1999,2000 + Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -591,7 +592,7 @@ struct Lisp_String EMACS_INT size; EMACS_INT size_byte; DECLARE_INTERVALS /* `data' field must be last. */ - unsigned char data[1]; + unsigned char *data; }; /* If a struct is made to look like a vector, this macro returns the length @@ -2077,6 +2078,7 @@ extern void memory_warnings P_ ((char *, void (*warnfun) ())); #endif /* Defined in alloc.c */ +extern void allocate_string_data P_ ((struct Lisp_String *, int, int)); extern void uninterrupt_malloc P_ ((void)); extern void malloc_warning P_ ((char *)); extern void memory_full P_ ((void));