Mercurial > hg > xemacs-beta
diff src/data.c @ 185:3d6bfa290dbd r20-3b19
Import from CVS: tag r20-3b19
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:55:28 +0200 |
parents | 9ad43877534d |
children | e45d5e7c476e |
line wrap: on
line diff
--- a/src/data.c Mon Aug 13 09:54:24 2007 +0200 +++ b/src/data.c Mon Aug 13 09:55:28 2007 +0200 @@ -167,7 +167,7 @@ { Lisp_Object val; /* Don't use XSETINT here -- it's defined in terms of make_int (). */ - XSETOBJ (val, Lisp_Int, num); + XSETOBJ (val, Lisp_Type_Int, num); return val; } #endif /* ! defined (make_int) */ @@ -195,8 +195,7 @@ make_char (Emchar num) { Lisp_Object val; - /* Don't use XSETCHAR here -- it's defined in terms of make_char (). */ - XSETOBJ (val, Lisp_Char, num); + XSETOBJ (val, Lisp_Type_Char, num); return val; } @@ -1757,9 +1756,9 @@ make_weak_list (enum weak_list_type type) { Lisp_Object result = Qnil; + struct weak_list *wl = + alloc_lcrecord_type (struct weak_list, lrecord_weak_list); - struct weak_list *wl = - alloc_lcrecord (sizeof (struct weak_list), lrecord_weak_list); wl->list = Qnil; wl->type = type; XSETWEAK_LIST (result, wl);