diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/buffer.c | 4 | ||||
| -rw-r--r-- | src/callproc.c | 2 | ||||
| -rw-r--r-- | src/composite.c | 3 | ||||
| -rw-r--r-- | src/dired.c | 2 | ||||
| -rw-r--r-- | src/doc.c | 5 | ||||
| -rw-r--r-- | src/editfns.c | 2 | ||||
| -rw-r--r-- | src/eval.c | 2 | ||||
| -rw-r--r-- | src/fileio.c | 2 | ||||
| -rw-r--r-- | src/image.c | 2 | ||||
| -rw-r--r-- | src/insdel.c | 2 | ||||
| -rw-r--r-- | src/keyboard.c | 7 | ||||
| -rw-r--r-- | src/keymap.c | 4 | ||||
| -rw-r--r-- | src/lisp.h | 2 | ||||
| -rw-r--r-- | src/process.c | 4 | ||||
| -rw-r--r-- | src/syntax.c | 2 | ||||
| -rw-r--r-- | src/textprop.c | 3 | ||||
| -rw-r--r-- | src/window.c | 10 |
18 files changed, 35 insertions, 27 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8b566b0d95e..29b2457e08a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2011-04-14 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-04-14 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * lisp.h (INFUN): Remove. Suggested by Dan Nicolaescu in | ||
| 4 | <http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00393.html>. | ||
| 5 | All uses spelled out. | ||
| 6 | |||
| 3 | Don't publish debugger-only interfaces to other modules. | 7 | Don't publish debugger-only interfaces to other modules. |
| 4 | * lisp.h (safe_debug_print, debug_output_compilation_hack): | 8 | * lisp.h (safe_debug_print, debug_output_compilation_hack): |
| 5 | (verify_bytepos, count_markers): Move decls to the only modules | 9 | (verify_bytepos, count_markers): Move decls to the only modules |
diff --git a/src/buffer.c b/src/buffer.c index 7b543b80a25..c649836adb8 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -100,8 +100,8 @@ static char buffer_permanent_local_flags[MAX_PER_BUFFER_VARS]; | |||
| 100 | 100 | ||
| 101 | int last_per_buffer_idx; | 101 | int last_per_buffer_idx; |
| 102 | 102 | ||
| 103 | INFUN (Fset_buffer_major_mode, 1); | 103 | static Lisp_Object Fset_buffer_major_mode (Lisp_Object); |
| 104 | INFUN (Fdelete_overlay, 1); | 104 | static Lisp_Object Fdelete_overlay (Lisp_Object); |
| 105 | static void call_overlay_mod_hooks (Lisp_Object list, Lisp_Object overlay, | 105 | static void call_overlay_mod_hooks (Lisp_Object list, Lisp_Object overlay, |
| 106 | int after, Lisp_Object arg1, | 106 | int after, Lisp_Object arg1, |
| 107 | Lisp_Object arg2, Lisp_Object arg3); | 107 | Lisp_Object arg2, Lisp_Object arg3); |
diff --git a/src/callproc.c b/src/callproc.c index 57f058aa165..3726eb3cc7f 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -96,7 +96,7 @@ int synch_process_retcode; | |||
| 96 | /* Nonzero if this is termination due to exit. */ | 96 | /* Nonzero if this is termination due to exit. */ |
| 97 | static int call_process_exited; | 97 | static int call_process_exited; |
| 98 | 98 | ||
| 99 | INFUN (Fgetenv_internal, 2); | 99 | static Lisp_Object Fgetenv_internal (Lisp_Object, Lisp_Object); |
| 100 | 100 | ||
| 101 | static Lisp_Object | 101 | static Lisp_Object |
| 102 | call_process_kill (Lisp_Object fdpid) | 102 | call_process_kill (Lisp_Object fdpid) |
diff --git a/src/composite.c b/src/composite.c index cccc75cc1b9..fab7cb86ba8 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -158,7 +158,8 @@ static Lisp_Object Qauto_composition_function; | |||
| 158 | auto-compositions. */ | 158 | auto-compositions. */ |
| 159 | #define MAX_AUTO_COMPOSITION_LOOKBACK 3 | 159 | #define MAX_AUTO_COMPOSITION_LOOKBACK 3 |
| 160 | 160 | ||
| 161 | INFUN (Fcomposition_get_gstring, 4); | 161 | static Lisp_Object Fcomposition_get_gstring (Lisp_Object, Lisp_Object, |
| 162 | Lisp_Object, Lisp_Object); | ||
| 162 | 163 | ||
| 163 | /* Temporary variable used in macros COMPOSITION_XXX. */ | 164 | /* Temporary variable used in macros COMPOSITION_XXX. */ |
| 164 | Lisp_Object composition_temp; | 165 | Lisp_Object composition_temp; |
diff --git a/src/dired.c b/src/dired.c index 20d5b586670..60d7bc64974 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -87,7 +87,7 @@ static Lisp_Object Qfile_attributes; | |||
| 87 | static Lisp_Object Qfile_attributes_lessp; | 87 | static Lisp_Object Qfile_attributes_lessp; |
| 88 | 88 | ||
| 89 | static int scmp (const char *, const char *, int); | 89 | static int scmp (const char *, const char *, int); |
| 90 | INFUN (Ffile_attributes, 2); | 90 | static Lisp_Object Ffile_attributes (Lisp_Object, Lisp_Object); |
| 91 | 91 | ||
| 92 | #ifdef WINDOWSNT | 92 | #ifdef WINDOWSNT |
| 93 | Lisp_Object | 93 | Lisp_Object |
| @@ -42,8 +42,9 @@ static char *get_doc_string_buffer; | |||
| 42 | static int get_doc_string_buffer_size; | 42 | static int get_doc_string_buffer_size; |
| 43 | 43 | ||
| 44 | static unsigned char *read_bytecode_pointer; | 44 | static unsigned char *read_bytecode_pointer; |
| 45 | INFUN (Fdocumentation_property, 3); | 45 | static Lisp_Object Fdocumentation_property (Lisp_Object, Lisp_Object, |
| 46 | INFUN (Fsnarf_documentation, 1); | 46 | Lisp_Object); |
| 47 | static Lisp_Object Fsnarf_documentation (Lisp_Object); | ||
| 47 | 48 | ||
| 48 | /* readchar in lread.c calls back here to fetch the next byte. | 49 | /* readchar in lread.c calls back here to fetch the next byte. |
| 49 | If UNREADFLAG is 1, we unread a byte. */ | 50 | If UNREADFLAG is 1, we unread a byte. */ |
diff --git a/src/editfns.c b/src/editfns.c index 30974e0b50e..5e1dcce0275 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -108,7 +108,7 @@ static void transpose_markers (EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT, | |||
| 108 | EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT); | 108 | EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT); |
| 109 | 109 | ||
| 110 | static Lisp_Object Qbuffer_access_fontify_functions; | 110 | static Lisp_Object Qbuffer_access_fontify_functions; |
| 111 | INFUN (Fuser_full_name, 1); | 111 | static Lisp_Object Fuser_full_name (Lisp_Object); |
| 112 | 112 | ||
| 113 | /* Symbol for the text property used to mark fields. */ | 113 | /* Symbol for the text property used to mark fields. */ |
| 114 | 114 | ||
diff --git a/src/eval.c b/src/eval.c index 4d0786fc0d4..c068f5f3fbf 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -142,7 +142,7 @@ static Lisp_Object funcall_lambda (Lisp_Object, size_t, Lisp_Object *); | |||
| 142 | static void unwind_to_catch (struct catchtag *, Lisp_Object) NO_RETURN; | 142 | static void unwind_to_catch (struct catchtag *, Lisp_Object) NO_RETURN; |
| 143 | static int interactive_p (int); | 143 | static int interactive_p (int); |
| 144 | static Lisp_Object apply_lambda (Lisp_Object fun, Lisp_Object args); | 144 | static Lisp_Object apply_lambda (Lisp_Object fun, Lisp_Object args); |
| 145 | INFUN (Ffetch_bytecode, 1); | 145 | static Lisp_Object Ffetch_bytecode (Lisp_Object); |
| 146 | 146 | ||
| 147 | void | 147 | void |
| 148 | init_eval_once (void) | 148 | init_eval_once (void) |
diff --git a/src/fileio.c b/src/fileio.c index b4a464940c5..7f749536d56 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -144,7 +144,7 @@ Lisp_Object Qfile_name_history; | |||
| 144 | 144 | ||
| 145 | static Lisp_Object Qcar_less_than_car; | 145 | static Lisp_Object Qcar_less_than_car; |
| 146 | 146 | ||
| 147 | INFUN (Fmake_symbolic_link, 3); | 147 | static Lisp_Object Fmake_symbolic_link (Lisp_Object, Lisp_Object, Lisp_Object); |
| 148 | static int a_write (int, Lisp_Object, int, int, | 148 | static int a_write (int, Lisp_Object, int, int, |
| 149 | Lisp_Object *, struct coding_system *); | 149 | Lisp_Object *, struct coding_system *); |
| 150 | static int e_write (int, Lisp_Object, int, int, struct coding_system *); | 150 | static int e_write (int, Lisp_Object, int, int, struct coding_system *); |
diff --git a/src/image.c b/src/image.c index 5e5d3509eaa..fb555725b82 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -137,7 +137,7 @@ static void free_color_table (void); | |||
| 137 | static unsigned long *colors_in_color_table (int *n); | 137 | static unsigned long *colors_in_color_table (int *n); |
| 138 | static unsigned long lookup_pixel_color (struct frame *f, unsigned long p); | 138 | static unsigned long lookup_pixel_color (struct frame *f, unsigned long p); |
| 139 | #endif | 139 | #endif |
| 140 | INFUN (Finit_image_library, 2); | 140 | static Lisp_Object Finit_image_library (Lisp_Object, Lisp_Object); |
| 141 | 141 | ||
| 142 | /* Code to deal with bitmaps. Bitmaps are referenced by their bitmap | 142 | /* Code to deal with bitmaps. Bitmaps are referenced by their bitmap |
| 143 | id, which is just an int that this section returns. Bitmaps are | 143 | id, which is just an int that this section returns. Bitmaps are |
diff --git a/src/insdel.c b/src/insdel.c index 8733054e9cd..82dce13af98 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -48,7 +48,7 @@ static void adjust_markers_for_replace (EMACS_INT, EMACS_INT, EMACS_INT, | |||
| 48 | EMACS_INT, EMACS_INT, EMACS_INT); | 48 | EMACS_INT, EMACS_INT, EMACS_INT); |
| 49 | static void adjust_point (EMACS_INT nchars, EMACS_INT nbytes); | 49 | static void adjust_point (EMACS_INT nchars, EMACS_INT nbytes); |
| 50 | 50 | ||
| 51 | INFUN (Fcombine_after_change_execute, 0); | 51 | static Lisp_Object Fcombine_after_change_execute (void); |
| 52 | 52 | ||
| 53 | /* List of elements of the form (BEG-UNCHANGED END-UNCHANGED CHANGE-AMOUNT) | 53 | /* List of elements of the form (BEG-UNCHANGED END-UNCHANGED CHANGE-AMOUNT) |
| 54 | describing changes which happened while combine_after_change_calls | 54 | describing changes which happened while combine_after_change_calls |
diff --git a/src/keyboard.c b/src/keyboard.c index 29062a77e32..28e7e5bd463 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -458,7 +458,8 @@ static void interrupt_signal (int signalnum); | |||
| 458 | #ifdef SIGIO | 458 | #ifdef SIGIO |
| 459 | static void input_available_signal (int signo); | 459 | static void input_available_signal (int signo); |
| 460 | #endif | 460 | #endif |
| 461 | INFUN (Fcommand_execute, 4); | 461 | static Lisp_Object (Fcommand_execute) (Lisp_Object, Lisp_Object, Lisp_Object, |
| 462 | Lisp_Object); | ||
| 462 | static void handle_interrupt (void); | 463 | static void handle_interrupt (void); |
| 463 | static void quit_throw_to_read_char (void) NO_RETURN; | 464 | static void quit_throw_to_read_char (void) NO_RETURN; |
| 464 | static void timer_start_idle (void); | 465 | static void timer_start_idle (void); |
| @@ -1193,7 +1194,7 @@ This also exits all active minibuffers. */) | |||
| 1193 | Fthrow (Qtop_level, Qnil); | 1194 | Fthrow (Qtop_level, Qnil); |
| 1194 | } | 1195 | } |
| 1195 | 1196 | ||
| 1196 | INFUN (Fexit_recursive_edit, 0) NO_RETURN; | 1197 | static Lisp_Object Fexit_recursive_edit (void) NO_RETURN; |
| 1197 | DEFUN ("exit-recursive-edit", Fexit_recursive_edit, Sexit_recursive_edit, 0, 0, "", | 1198 | DEFUN ("exit-recursive-edit", Fexit_recursive_edit, Sexit_recursive_edit, 0, 0, "", |
| 1198 | doc: /* Exit from the innermost recursive edit or minibuffer. */) | 1199 | doc: /* Exit from the innermost recursive edit or minibuffer. */) |
| 1199 | (void) | 1200 | (void) |
| @@ -1204,7 +1205,7 @@ DEFUN ("exit-recursive-edit", Fexit_recursive_edit, Sexit_recursive_edit, 0, 0, | |||
| 1204 | error ("No recursive edit is in progress"); | 1205 | error ("No recursive edit is in progress"); |
| 1205 | } | 1206 | } |
| 1206 | 1207 | ||
| 1207 | INFUN (Fabort_recursive_edit, 0) NO_RETURN; | 1208 | static Lisp_Object Fabort_recursive_edit (void) NO_RETURN; |
| 1208 | DEFUN ("abort-recursive-edit", Fabort_recursive_edit, Sabort_recursive_edit, 0, 0, "", | 1209 | DEFUN ("abort-recursive-edit", Fabort_recursive_edit, Sabort_recursive_edit, 0, 0, "", |
| 1209 | doc: /* Abort the command that requested this recursive edit or minibuffer input. */) | 1210 | doc: /* Abort the command that requested this recursive edit or minibuffer input. */) |
| 1210 | (void) | 1211 | (void) |
diff --git a/src/keymap.c b/src/keymap.c index ba958077f0d..8713bcf1279 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -71,7 +71,7 @@ static Lisp_Object where_is_cache; | |||
| 71 | /* Which keymaps are reverse-stored in the cache. */ | 71 | /* Which keymaps are reverse-stored in the cache. */ |
| 72 | static Lisp_Object where_is_cache_keymaps; | 72 | static Lisp_Object where_is_cache_keymaps; |
| 73 | 73 | ||
| 74 | INFUN (Flookup_key, 3); | 74 | static Lisp_Object Flookup_key (Lisp_Object, Lisp_Object, Lisp_Object); |
| 75 | static Lisp_Object store_in_keymap (Lisp_Object, Lisp_Object, Lisp_Object); | 75 | static Lisp_Object store_in_keymap (Lisp_Object, Lisp_Object, Lisp_Object); |
| 76 | static void fix_submap_inheritance (Lisp_Object, Lisp_Object, Lisp_Object); | 76 | static void fix_submap_inheritance (Lisp_Object, Lisp_Object, Lisp_Object); |
| 77 | 77 | ||
| @@ -957,7 +957,7 @@ store_in_keymap (Lisp_Object keymap, register Lisp_Object idx, Lisp_Object def) | |||
| 957 | return def; | 957 | return def; |
| 958 | } | 958 | } |
| 959 | 959 | ||
| 960 | INFUN (Fcopy_keymap, 1); | 960 | static Lisp_Object Fcopy_keymap (Lisp_Object); |
| 961 | 961 | ||
| 962 | static Lisp_Object | 962 | static Lisp_Object |
| 963 | copy_keymap_item (Lisp_Object elt) | 963 | copy_keymap_item (Lisp_Object elt) |
diff --git a/src/lisp.h b/src/lisp.h index d629c40198a..09830a980f2 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2276,8 +2276,6 @@ void staticpro (Lisp_Object *); | |||
| 2276 | appropriate prototype. */ | 2276 | appropriate prototype. */ |
| 2277 | #define EXFUN(fnname, maxargs) \ | 2277 | #define EXFUN(fnname, maxargs) \ |
| 2278 | extern Lisp_Object fnname DEFUN_ARGS_ ## maxargs | 2278 | extern Lisp_Object fnname DEFUN_ARGS_ ## maxargs |
| 2279 | #define INFUN(fnname, maxargs) \ | ||
| 2280 | static Lisp_Object fnname DEFUN_ARGS_ ## maxargs | ||
| 2281 | 2279 | ||
| 2282 | /* Forward declarations for prototypes. */ | 2280 | /* Forward declarations for prototypes. */ |
| 2283 | struct window; | 2281 | struct window; |
diff --git a/src/process.c b/src/process.c index 0cec8977ad0..741f2e363f3 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -235,7 +235,7 @@ static int process_output_skip; | |||
| 235 | #define process_output_delay_count 0 | 235 | #define process_output_delay_count 0 |
| 236 | #endif | 236 | #endif |
| 237 | 237 | ||
| 238 | INFUN (Fget_process, 1); | 238 | static Lisp_Object Fget_process (Lisp_Object); |
| 239 | static void create_process (Lisp_Object, char **, Lisp_Object); | 239 | static void create_process (Lisp_Object, char **, Lisp_Object); |
| 240 | static int keyboard_bit_set (SELECT_TYPE *); | 240 | static int keyboard_bit_set (SELECT_TYPE *); |
| 241 | static void deactivate_process (Lisp_Object); | 241 | static void deactivate_process (Lisp_Object); |
| @@ -1084,7 +1084,7 @@ DEFUN ("process-query-on-exit-flag", | |||
| 1084 | } | 1084 | } |
| 1085 | 1085 | ||
| 1086 | #ifdef DATAGRAM_SOCKETS | 1086 | #ifdef DATAGRAM_SOCKETS |
| 1087 | INFUN (Fprocess_datagram_address, 1); | 1087 | static Lisp_Object Fprocess_datagram_address (Lisp_Object); |
| 1088 | #endif | 1088 | #endif |
| 1089 | 1089 | ||
| 1090 | DEFUN ("process-contact", Fprocess_contact, Sprocess_contact, | 1090 | DEFUN ("process-contact", Fprocess_contact, Sprocess_contact, |
diff --git a/src/syntax.c b/src/syntax.c index ce203948b04..031409144b1 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -141,7 +141,7 @@ static EMACS_INT find_start_begv; | |||
| 141 | static int find_start_modiff; | 141 | static int find_start_modiff; |
| 142 | 142 | ||
| 143 | 143 | ||
| 144 | INFUN (Fsyntax_table_p, 1); | 144 | static Lisp_Object Fsyntax_table_p (Lisp_Object); |
| 145 | static Lisp_Object skip_chars (int, Lisp_Object, Lisp_Object, int); | 145 | static Lisp_Object skip_chars (int, Lisp_Object, Lisp_Object, int); |
| 146 | static Lisp_Object skip_syntaxes (int, Lisp_Object, Lisp_Object); | 146 | static Lisp_Object skip_syntaxes (int, Lisp_Object, Lisp_Object); |
| 147 | static Lisp_Object scan_lists (EMACS_INT, EMACS_INT, EMACS_INT, int); | 147 | static Lisp_Object scan_lists (EMACS_INT, EMACS_INT, EMACS_INT, int); |
diff --git a/src/textprop.c b/src/textprop.c index 7ce488334e8..a0d7d2689c4 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -76,7 +76,8 @@ static Lisp_Object interval_insert_behind_hooks; | |||
| 76 | static Lisp_Object interval_insert_in_front_hooks; | 76 | static Lisp_Object interval_insert_in_front_hooks; |
| 77 | 77 | ||
| 78 | static void text_read_only (Lisp_Object) NO_RETURN; | 78 | static void text_read_only (Lisp_Object) NO_RETURN; |
| 79 | INFUN (Fprevious_property_change, 3); | 79 | static Lisp_Object Fprevious_property_change (Lisp_Object, Lisp_Object, |
| 80 | Lisp_Object); | ||
| 80 | 81 | ||
| 81 | 82 | ||
| 82 | /* Signal a `text-read-only' error. This function makes it easier | 83 | /* Signal a `text-read-only' error. This function makes it easier |
diff --git a/src/window.c b/src/window.c index 9ee35025d32..5d059535614 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -3278,10 +3278,12 @@ change_window_heights (Lisp_Object window, int n) | |||
| 3278 | 3278 | ||
| 3279 | int window_select_count; | 3279 | int window_select_count; |
| 3280 | 3280 | ||
| 3281 | INFUN (Fset_window_margins, 3); | 3281 | static Lisp_Object Fset_window_margins (Lisp_Object, Lisp_Object, Lisp_Object); |
| 3282 | INFUN (Fset_window_fringes, 4); | 3282 | static Lisp_Object Fset_window_fringes (Lisp_Object, Lisp_Object, Lisp_Object, |
| 3283 | INFUN (Fset_window_scroll_bars, 4); | 3283 | Lisp_Object); |
| 3284 | INFUN (Fset_window_vscroll, 3); | 3284 | static Lisp_Object Fset_window_scroll_bars (Lisp_Object, Lisp_Object, |
| 3285 | Lisp_Object, Lisp_Object); | ||
| 3286 | static Lisp_Object Fset_window_vscroll (Lisp_Object, Lisp_Object, Lisp_Object); | ||
| 3285 | 3287 | ||
| 3286 | static void | 3288 | static void |
| 3287 | run_funs (Lisp_Object funs) | 3289 | run_funs (Lisp_Object funs) |