aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2013-07-01 20:41:16 -0700
committerPaul Eggert2013-07-01 20:41:16 -0700
commit52a9bcae40a1c8536cf70cc4622a6877024e4b36 (patch)
tree90f239c0a7f16286c3938b1e1f4c8b72ce56b1e9 /src/ChangeLog
parentbb70a65f1de65b5abf87c0b43d03e55ed6e579f6 (diff)
downloademacs-52a9bcae40a1c8536cf70cc4622a6877024e4b36.tar.gz
emacs-52a9bcae40a1c8536cf70cc4622a6877024e4b36.zip
Don't convert function pointers to void * and back.
It isn't portable C, and it's easy enough to avoid. * alloc.c: Verify SAVE_FUNCPOINTER bits, too. (make_save_value): Add support for SAVE_FUNCPOINTER. * keymap.c (map_keymap_char_table_item, map_keymap_internal): * print.c (print_object): Distinguish function from object pointers. * lisp.h (SAVE_FUNCPOINTER): New constant. (SAVE_SLOT_BITS): Adjust to it. (SAVE_TYPE_FUNCPTR_PTR_OBJ): New constant, replacing SAVE_TYPE_PTR_PTR_OBJ. Change the only use. (voidfuncptr): New typedef. (struct Lisp_Save_Value): New member data[0].funcpointer. (XSAVE_FUNCPOINTER): New function.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2dc1af6d02b..13a9162caab 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,20 @@
12013-07-02 Paul Eggert <eggert@cs.ucla.edu> 12013-07-02 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Don't convert function pointers to void * and back.
4 It isn't portable C, and it's easy enough to avoid.
5 * alloc.c: Verify SAVE_FUNCPOINTER bits, too.
6 (make_save_value): Add support for SAVE_FUNCPOINTER.
7 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
8 * print.c (print_object):
9 Distinguish function from object pointers.
10 * lisp.h (SAVE_FUNCPOINTER): New constant.
11 (SAVE_SLOT_BITS): Adjust to it.
12 (SAVE_TYPE_FUNCPTR_PTR_OBJ): New constant, replacing
13 SAVE_TYPE_PTR_PTR_OBJ. Change the only use.
14 (voidfuncptr): New typedef.
15 (struct Lisp_Save_Value): New member data[0].funcpointer.
16 (XSAVE_FUNCPOINTER): New function.
17
3 Simplify buildobj processing. 18 Simplify buildobj processing.
4 * Makefile.in (buildobj.h): Make it a sequence of strings each 19 * Makefile.in (buildobj.h): Make it a sequence of strings each
5 followed by comma, rather than a single string. Put it into a 20 followed by comma, rather than a single string. Put it into a