emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/lisp.h,v


From: Andreas Schwab
Subject: [Emacs-diffs] Changes to emacs/src/lisp.h,v
Date: Sun, 29 Apr 2007 16:07:57 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Andreas Schwab <schwab> 07/04/29 16:07:57

Index: lisp.h
===================================================================
RCS file: /sources/emacs/emacs/src/lisp.h,v
retrieving revision 1.574
retrieving revision 1.575
diff -u -b -r1.574 -r1.575
--- lisp.h      17 Mar 2007 18:27:10 -0000      1.574
+++ lisp.h      29 Apr 2007 16:07:57 -0000      1.575
@@ -735,8 +735,8 @@
 
 /* If a struct is made to look like a vector, this macro returns the length
    of the shortest vector that would hold that struct.  */
-#define VECSIZE(type) ((sizeof (type) - (sizeof (struct Lisp_Vector)  \
-                                         - sizeof (Lisp_Object))      \
+#define VECSIZE(type) ((sizeof (type)                                    \
+                       - OFFSETOF (struct Lisp_Vector, contents[0])      \
                         + sizeof(Lisp_Object) - 1) /* round up */     \
                       / sizeof (Lisp_Object))
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]