changeset 9971:214a00665c2b

Declare allocate_vectorlike. (VECSIZE): New macro.
author Karl Heuer <kwzh@gnu.org>
date Wed, 16 Nov 1994 05:17:32 +0000
parents 76910d506a80
children 92b33538b36a
files src/lisp.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lisp.h	Wed Nov 16 05:16:42 1994 +0000
+++ b/src/lisp.h	Wed Nov 16 05:17:32 1994 +0000
@@ -486,6 +486,12 @@
     unsigned char data[1];
   };
 
+/* If a struct is made to look like a vector, this macro returns the length
+   of that vector.  */
+#define VECSIZE(type) ((sizeof (type) - (sizeof (struct Lisp_Vector)	\
+					 - sizeof (Lisp_Object)))	\
+		       / sizeof (Lisp_Object))
+
 struct Lisp_Vector
   {
     EMACS_INT size;
@@ -1259,6 +1265,7 @@
 extern Lisp_Object pure_cons (), make_pure_vector ();
 extern Lisp_Object Fgarbage_collect ();
 extern Lisp_Object Fmake_byte_code ();
+extern struct Lisp_Vector *allocate_vectorlike ();
 extern int gc_in_progress;
 
 /* Defined in print.c */