diff options
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 58df7e08955..56bb83e0314 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,62 @@ | |||
| 1 | 2011-04-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Make Emacs functions such as Fatom 'static' by default. | ||
| 4 | This makes it easier for human readers (and static analyzers) | ||
| 5 | to see whether these functions can be called from other modules. | ||
| 6 | DEFUN now defines a static function. To make the function external | ||
| 7 | so that it can be used in other C modules, use the new macro DEFUE. | ||
| 8 | * lisp.h (DEFINE_FUNC): New macro, with the old contents of DEFUN. | ||
| 9 | (DEFUN): Rewrite in terms of DEFINE_FUNC. It now generates a | ||
| 10 | static function definition. Use DEFUE if you want an extern one. | ||
| 11 | (DEFUE, INFUN): New macros. | ||
| 12 | (Funibyte_char_to_multibyte, Fsyntax_table_p, Finit_image_library): | ||
| 13 | (Feval_region, Fbacktrace, Ffetch_bytecode, Fswitch_to_buffer): | ||
| 14 | (Ffile_executable_p, Fmake_symbolic_link, Fcommand_execute): | ||
| 15 | (Fget_process, Fdocumentation_property, Fbyte_code, Ffile_attributes): | ||
| 16 | Remove decls, since these functions are now static. | ||
| 17 | (Funintern, Fget_internal_run_time): New decls, since these functions | ||
| 18 | were already external. | ||
| 19 | * alloc.c, buffer.c, callint.c, callproc.c, casefiddle.c, casetab.c: | ||
| 20 | * ccl.c, character.c, chartab.c, cmds.c, coding.c, data.c, dispnew.c: | ||
| 21 | * doc.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, floatfns.c: | ||
| 22 | * fns.c, font.c, fontset.c, frame.c, image.c, indent.c: | ||
| 23 | * keyboard.c, keymap.c, lread.c: | ||
| 24 | * macros.c, marker.c, menu.c, minibuf.c, print.c, process.c, search.c: | ||
| 25 | * syntax.c, term.c, terminal.c, textprop.c, undo.c: | ||
| 26 | * window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c, xsettings.c: | ||
| 27 | Mark functions with DEFUE instead of DEFUN, | ||
| 28 | if they are used in other modules. | ||
| 29 | * buffer.c (Fset_buffer_major_mode, Fdelete_overlay): New forward | ||
| 30 | decls for now-static functions. | ||
| 31 | * buffer.h (Fdelete_overlay): Remove decl. | ||
| 32 | * callproc.c (Fgetenv_internal): Mark as internal. | ||
| 33 | * composite.c (Fremove_list_of_text_properties): Remove decl. | ||
| 34 | (Fcomposition_get_gstring): New forward static decl. | ||
| 35 | * composite.h (Fcomposite_get_gstring): Remove decl. | ||
| 36 | * dired.c (Ffile_attributes): New forward static decl. | ||
| 37 | * doc.c (Fdocumntation_property): New forward static decl. | ||
| 38 | * eval.c (Ffetch_bytecode): New forward static decl. | ||
| 39 | (Funintern): Remove extern decl; now in .h file where it belongs. | ||
| 40 | * fileio.c (Fmake_symbolic_link): New forward static decl. | ||
| 41 | * image.c (Finit_image_library): New forward static decl. | ||
| 42 | * insdel.c (Fcombine_after_change_execute): Make forward decl static. | ||
| 43 | * intervals.h (Fprevious_property_change): | ||
| 44 | (Fremove_list_of_text_properties): Remove decls. | ||
| 45 | * keyboard.c (Fthis_command_keys): Remove decl. | ||
| 46 | (Fcommand_execute): New forward static decl. | ||
| 47 | * keymap.c (Flookup_key): New forward static decl. | ||
| 48 | (Fcopy_keymap): Now static. | ||
| 49 | * keymap.h (Flookup_key): Remove decl. | ||
| 50 | * process.c (Fget_process): New forward static decl. | ||
| 51 | (Fprocess_datagram_address): Mark as internal. | ||
| 52 | * syntax.c (Fsyntax_table_p): New forward static decl. | ||
| 53 | (skip_chars): Remove duplicate decl. | ||
| 54 | * textprop.c (Fprevious_property_change): New forward static decl. | ||
| 55 | * window.c (Fset_window_fringes, Fset_window_scroll_bars): | ||
| 56 | Now internal. | ||
| 57 | (Fset_window_margins, Fset_window_vscroll): New forward static decls. | ||
| 58 | * window.h (Fset_window_vscroll, Fset_window_margins): Remove decls. | ||
| 59 | |||
| 1 | 2011-04-10 Paul Eggert <eggert@cs.ucla.edu> | 60 | 2011-04-10 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 61 | ||
| 3 | * editfns.c (Fformat): Remove unreachable code. | 62 | * editfns.c (Fformat): Remove unreachable code. |