[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/alloc.c,v
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] Changes to emacs/src/alloc.c,v |
Date: |
Tue, 16 Oct 2007 15:43:02 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Stefan Monnier <monnier> 07/10/16 15:42:59
Index: alloc.c
===================================================================
RCS file: /sources/emacs/emacs/src/alloc.c,v
retrieving revision 1.426
retrieving revision 1.427
diff -u -b -r1.426 -r1.427
--- alloc.c 2 Oct 2007 22:07:41 -0000 1.426
+++ alloc.c 16 Oct 2007 15:42:58 -0000 1.427
@@ -1153,6 +1153,8 @@
struct buffer *b
= (struct buffer *) lisp_malloc (sizeof (struct buffer),
MEM_TYPE_BUFFER);
+ b->size = sizeof (struct buffer) / sizeof (EMACS_INT);
+ XSETPVECTYPE (b, PVEC_BUFFER);
return b;
}
@@ -3352,7 +3354,7 @@
--total_free_markers;
consing_since_gc += sizeof (union Lisp_Misc);
misc_objects_consed++;
- XMARKER (val)->gcmarkbit = 0;
+ XMISCANY (val)->gcmarkbit = 0;
return val;
}
@@ -4209,7 +4211,7 @@
break;
case Lisp_Misc:
- mark_p = (live_misc_p (m, po) && !XMARKER (obj)->gcmarkbit);
+ mark_p = (live_misc_p (m, po) && !XMISCANY (obj)->gcmarkbit);
break;
case Lisp_Int:
@@ -5654,14 +5656,13 @@
case Lisp_Misc:
CHECK_ALLOCATED_AND_LIVE (live_misc_p);
- if (XMARKER (obj)->gcmarkbit)
+ if (XMISCANY (obj)->gcmarkbit)
break;
- XMARKER (obj)->gcmarkbit = 1;
+ XMISCANY (obj)->gcmarkbit = 1;
switch (XMISCTYPE (obj))
{
case Lisp_Misc_Buffer_Local_Value:
- case Lisp_Misc_Some_Buffer_Local_Value:
{
register struct Lisp_Buffer_Local_Value *ptr
= XBUFFER_LOCAL_VALUE (obj);
@@ -5847,7 +5848,7 @@
break;
case Lisp_Misc:
- survives_p = XMARKER (obj)->gcmarkbit;
+ survives_p = XMISCANY (obj)->gcmarkbit;
break;
case Lisp_String:
@@ -6297,7 +6298,7 @@
const char *file;
int line;
{
- fprintf (stderr, "\r\nEmacs fatal error: %s:%d: %s\r\n",
+ fprintf (stderr, "\r\n%s:%d: Emacs fatal error: %s\r\n",
file, line, msg);
abort ();
}
- [Emacs-diffs] Changes to emacs/src/alloc.c,v, Stefan Monnier, 2007/10/02
- [Emacs-diffs] Changes to emacs/src/alloc.c,v, Stefan Monnier, 2007/10/02
- [Emacs-diffs] Changes to emacs/src/alloc.c,v, Stefan Monnier, 2007/10/02
- [Emacs-diffs] Changes to emacs/src/alloc.c,v, Stefan Monnier, 2007/10/02
- [Emacs-diffs] Changes to emacs/src/alloc.c,v, Stefan Monnier, 2007/10/02
- [Emacs-diffs] Changes to emacs/src/alloc.c,v,
Stefan Monnier <=
- [Emacs-diffs] Changes to emacs/src/alloc.c,v, Stefan Monnier, 2007/10/16
- [Emacs-diffs] Changes to emacs/src/alloc.c,v, Stefan Monnier, 2007/10/16
- [Emacs-diffs] Changes to emacs/src/alloc.c,v, Juanma Barranquero, 2007/10/26