diff options
| author | Jan D | 2010-07-02 14:19:53 +0200 |
|---|---|---|
| committer | Jan D | 2010-07-02 14:19:53 +0200 |
| commit | f57e2426f0e8a6b251be71b6f62237fd286998ea (patch) | |
| tree | a8db36e415ea69b4196881b44122454317510f46 /src | |
| parent | 383e09700c9b3d175c506301d363be4597827db7 (diff) | |
| download | emacs-f57e2426f0e8a6b251be71b6f62237fd286998ea.tar.gz emacs-f57e2426f0e8a6b251be71b6f62237fd286998ea.zip | |
Remove __P and P_ from .c and .m files and definition of P_
* lisp.h:
* atimer.h: Remove define for P_.
* alloc.c: Remove __P and P_ from .c and .m files.
* atimer.c:
* buffer.c:
* callint.c:
* category.c:
* charset.c:
* chartab.c:
* cm.c:
* coding.c:
* composite.c:
* data.c:
* dired.c:
* dispnew.c:
* doc.c:
* editfns.c:
* emacs.c:
* eval.c:
* fileio.c:
* filelock.c:
* fns.c:
* font.c:
* fontset.c:
* frame.c:
* ftfont.c:
* ftxfont.c:
* gmalloc.c:
* gtkutil.c:
* image.c:
* indent.c:
* intervals.c:
* keyboard.c:
* keymap.c:
* lread.c:
* marker.c:
* menu.c:
* minibuf.c:
* print.c:
* process.c:
* scroll.c:
* search.c:
* sound.c:
* strftime.c:
* syntax.c:
* sysdep.c:
* term.c:
* terminal.c:
* textprop.c:
* unexalpha.c:
* w32console.c:
* w32fns.c:
* w32font.c:
* w32menu.c:
* w32term.c:
* w32uniscribe.c:
* window.c:
* xdisp.c:
* xfaces.c:
* xfns.c:
* xfont.c:
* xftfont.c:
* xmenu.c:
* xselect.c:
* xterm.c: Likewise.
* ebrowse.c: Remove P_ and __P.
* etags.c:
* movemail.c:
* pop.c:
* update-game-score.c: Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 70 | ||||
| -rw-r--r-- | src/alloc.c | 92 | ||||
| -rw-r--r-- | src/atimer.c | 8 | ||||
| -rw-r--r-- | src/atimer.h | 7 | ||||
| -rw-r--r-- | src/buffer.c | 48 | ||||
| -rw-r--r-- | src/callint.c | 2 | ||||
| -rw-r--r-- | src/category.c | 2 | ||||
| -rw-r--r-- | src/charset.c | 18 | ||||
| -rw-r--r-- | src/chartab.c | 8 | ||||
| -rw-r--r-- | src/cm.c | 4 | ||||
| -rw-r--r-- | src/coding.c | 150 | ||||
| -rw-r--r-- | src/composite.c | 16 | ||||
| -rw-r--r-- | src/data.c | 6 | ||||
| -rw-r--r-- | src/dired.c | 4 | ||||
| -rw-r--r-- | src/dispnew.c | 132 | ||||
| -rw-r--r-- | src/doc.c | 4 | ||||
| -rw-r--r-- | src/editfns.c | 30 | ||||
| -rw-r--r-- | src/emacs.c | 10 | ||||
| -rw-r--r-- | src/eval.c | 14 | ||||
| -rw-r--r-- | src/fileio.c | 10 | ||||
| -rw-r--r-- | src/filelock.c | 2 | ||||
| -rw-r--r-- | src/fns.c | 50 | ||||
| -rw-r--r-- | src/font.c | 64 | ||||
| -rw-r--r-- | src/fontset.c | 30 | ||||
| -rw-r--r-- | src/frame.c | 6 | ||||
| -rw-r--r-- | src/ftfont.c | 56 | ||||
| -rw-r--r-- | src/ftxfont.c | 22 | ||||
| -rw-r--r-- | src/gmalloc.c | 20 | ||||
| -rw-r--r-- | src/gtkutil.c | 14 | ||||
| -rw-r--r-- | src/image.c | 202 | ||||
| -rw-r--r-- | src/indent.c | 6 | ||||
| -rw-r--r-- | src/intervals.c | 8 | ||||
| -rw-r--r-- | src/keyboard.c | 82 | ||||
| -rw-r--r-- | src/keymap.c | 36 | ||||
| -rw-r--r-- | src/lisp.h | 3 | ||||
| -rw-r--r-- | src/lread.c | 54 | ||||
| -rw-r--r-- | src/marker.c | 2 | ||||
| -rw-r--r-- | src/menu.c | 16 | ||||
| -rw-r--r-- | src/minibuf.c | 26 | ||||
| -rw-r--r-- | src/print.c | 2 | ||||
| -rw-r--r-- | src/process.c | 10 | ||||
| -rw-r--r-- | src/scroll.c | 16 | ||||
| -rw-r--r-- | src/search.c | 24 | ||||
| -rw-r--r-- | src/sound.c | 58 | ||||
| -rw-r--r-- | src/strftime.c | 20 | ||||
| -rw-r--r-- | src/syntax.c | 14 | ||||
| -rw-r--r-- | src/sysdep.c | 10 | ||||
| -rw-r--r-- | src/term.c | 36 | ||||
| -rw-r--r-- | src/terminal.c | 2 | ||||
| -rw-r--r-- | src/textprop.c | 2 | ||||
| -rw-r--r-- | src/unexalpha.c | 6 | ||||
| -rw-r--r-- | src/w32console.c | 4 | ||||
| -rw-r--r-- | src/w32fns.c | 56 | ||||
| -rw-r--r-- | src/w32font.c | 38 | ||||
| -rw-r--r-- | src/w32menu.c | 10 | ||||
| -rw-r--r-- | src/w32term.c | 126 | ||||
| -rw-r--r-- | src/w32uniscribe.c | 6 | ||||
| -rw-r--r-- | src/window.c | 66 | ||||
| -rw-r--r-- | src/xdisp.c | 306 | ||||
| -rw-r--r-- | src/xfaces.c | 90 | ||||
| -rw-r--r-- | src/xfns.c | 68 | ||||
| -rw-r--r-- | src/xfont.c | 30 | ||||
| -rw-r--r-- | src/xftfont.c | 34 | ||||
| -rw-r--r-- | src/xmenu.c | 22 | ||||
| -rw-r--r-- | src/xselect.c | 76 | ||||
| -rw-r--r-- | src/xterm.c | 186 |
66 files changed, 1355 insertions, 1297 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c951ed32557..b36953e23f3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,7 +1,75 @@ | |||
| 1 | 2010-07-02 Jan Djärv <jan.h.d@swipnet.se> | 1 | 2010-07-02 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 2 | ||
| 3 | * lisp.h: | ||
| 4 | * atimer.h: Remove define for P_. | ||
| 5 | |||
| 6 | * alloc.c: Remove __P and P_ from .c and .m files. | ||
| 7 | * atimer.c: | ||
| 8 | * buffer.c: | ||
| 9 | * callint.c: | ||
| 10 | * category.c: | ||
| 11 | * charset.c: | ||
| 12 | * chartab.c: | ||
| 13 | * cm.c: | ||
| 14 | * coding.c: | ||
| 15 | * composite.c: | ||
| 16 | * data.c: | ||
| 17 | * dired.c: | ||
| 18 | * dispnew.c: | ||
| 19 | * doc.c: | ||
| 20 | * editfns.c: | ||
| 21 | * emacs.c: | ||
| 22 | * eval.c: | ||
| 23 | * fileio.c: | ||
| 24 | * filelock.c: | ||
| 25 | * fns.c: | ||
| 26 | * font.c: | ||
| 27 | * fontset.c: | ||
| 28 | * frame.c: | ||
| 29 | * ftfont.c: | ||
| 30 | * ftxfont.c: | ||
| 31 | * gmalloc.c: | ||
| 32 | * gtkutil.c: | ||
| 33 | * image.c: | ||
| 34 | * indent.c: | ||
| 35 | * intervals.c: | ||
| 36 | * keyboard.c: | ||
| 37 | * keymap.c: | ||
| 38 | * lread.c: | ||
| 39 | * marker.c: | ||
| 40 | * menu.c: | ||
| 41 | * minibuf.c: | ||
| 42 | * print.c: | ||
| 43 | * process.c: | ||
| 44 | * scroll.c: | ||
| 45 | * search.c: | ||
| 46 | * sound.c: | ||
| 47 | * strftime.c: | ||
| 48 | * syntax.c: | ||
| 49 | * sysdep.c: | ||
| 50 | * term.c: | ||
| 51 | * terminal.c: | ||
| 52 | * textprop.c: | ||
| 53 | * unexalpha.c: | ||
| 54 | * w32console.c: | ||
| 55 | * w32fns.c: | ||
| 56 | * w32font.c: | ||
| 57 | * w32menu.c: | ||
| 58 | * w32term.c: | ||
| 59 | * w32uniscribe.c: | ||
| 60 | * window.c: | ||
| 61 | * xdisp.c: | ||
| 62 | * xfaces.c: | ||
| 63 | * xfns.c: | ||
| 64 | * xfont.c: | ||
| 65 | * xftfont.c: | ||
| 66 | * xmenu.c: | ||
| 67 | * xselect.c: | ||
| 68 | * xterm.c: Likewise. | ||
| 69 | |||
| 3 | Remove P_ and __P macros. | 70 | Remove P_ and __P macros. |
| 4 | * buffer.h: Remove P_ and __P macros. | 71 | * atimer.h: Remove P_ and __P macros. |
| 72 | * buffer.h: | ||
| 5 | * category.h: | 73 | * category.h: |
| 6 | * ccl.h: | 74 | * ccl.h: |
| 7 | * character.h: | 75 | * character.h: |
diff --git a/src/alloc.c b/src/alloc.c index e0f07cc5f5a..84b9007cdd5 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -329,23 +329,23 @@ Lisp_Object Vpost_gc_hook, Qpost_gc_hook; | |||
| 329 | Lisp_Object Vgc_elapsed; /* accumulated elapsed time in GC */ | 329 | Lisp_Object Vgc_elapsed; /* accumulated elapsed time in GC */ |
| 330 | EMACS_INT gcs_done; /* accumulated GCs */ | 330 | EMACS_INT gcs_done; /* accumulated GCs */ |
| 331 | 331 | ||
| 332 | static void mark_buffer P_ ((Lisp_Object)); | 332 | static void mark_buffer (Lisp_Object); |
| 333 | static void mark_terminals P_ ((void)); | 333 | static void mark_terminals (void); |
| 334 | extern void mark_kboards P_ ((void)); | 334 | extern void mark_kboards (void); |
| 335 | extern void mark_ttys P_ ((void)); | 335 | extern void mark_ttys (void); |
| 336 | extern void mark_backtrace P_ ((void)); | 336 | extern void mark_backtrace (void); |
| 337 | static void gc_sweep P_ ((void)); | 337 | static void gc_sweep (void); |
| 338 | static void mark_glyph_matrix P_ ((struct glyph_matrix *)); | 338 | static void mark_glyph_matrix (struct glyph_matrix *); |
| 339 | static void mark_face_cache P_ ((struct face_cache *)); | 339 | static void mark_face_cache (struct face_cache *); |
| 340 | 340 | ||
| 341 | #ifdef HAVE_WINDOW_SYSTEM | 341 | #ifdef HAVE_WINDOW_SYSTEM |
| 342 | extern void mark_fringe_data P_ ((void)); | 342 | extern void mark_fringe_data (void); |
| 343 | #endif /* HAVE_WINDOW_SYSTEM */ | 343 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 344 | 344 | ||
| 345 | static struct Lisp_String *allocate_string P_ ((void)); | 345 | static struct Lisp_String *allocate_string (void); |
| 346 | static void compact_small_strings P_ ((void)); | 346 | static void compact_small_strings (void); |
| 347 | static void free_large_strings P_ ((void)); | 347 | static void free_large_strings (void); |
| 348 | static void sweep_strings P_ ((void)); | 348 | static void sweep_strings (void); |
| 349 | 349 | ||
| 350 | extern int message_enable_multibyte; | 350 | extern int message_enable_multibyte; |
| 351 | 351 | ||
| @@ -369,8 +369,8 @@ enum mem_type | |||
| 369 | MEM_TYPE_VECTORLIKE | 369 | MEM_TYPE_VECTORLIKE |
| 370 | }; | 370 | }; |
| 371 | 371 | ||
| 372 | static POINTER_TYPE *lisp_align_malloc P_ ((size_t, enum mem_type)); | 372 | static POINTER_TYPE *lisp_align_malloc (size_t, enum mem_type); |
| 373 | static POINTER_TYPE *lisp_malloc P_ ((size_t, enum mem_type)); | 373 | static POINTER_TYPE *lisp_malloc (size_t, enum mem_type); |
| 374 | void refill_memory_reserve (); | 374 | void refill_memory_reserve (); |
| 375 | 375 | ||
| 376 | 376 | ||
| @@ -452,31 +452,31 @@ static void *min_heap_address, *max_heap_address; | |||
| 452 | static struct mem_node mem_z; | 452 | static struct mem_node mem_z; |
| 453 | #define MEM_NIL &mem_z | 453 | #define MEM_NIL &mem_z |
| 454 | 454 | ||
| 455 | static POINTER_TYPE *lisp_malloc P_ ((size_t, enum mem_type)); | 455 | static POINTER_TYPE *lisp_malloc (size_t, enum mem_type); |
| 456 | static struct Lisp_Vector *allocate_vectorlike P_ ((EMACS_INT)); | 456 | static struct Lisp_Vector *allocate_vectorlike (EMACS_INT); |
| 457 | static void lisp_free P_ ((POINTER_TYPE *)); | 457 | static void lisp_free (POINTER_TYPE *); |
| 458 | static void mark_stack P_ ((void)); | 458 | static void mark_stack (void); |
| 459 | static int live_vector_p P_ ((struct mem_node *, void *)); | 459 | static int live_vector_p (struct mem_node *, void *); |
| 460 | static int live_buffer_p P_ ((struct mem_node *, void *)); | 460 | static int live_buffer_p (struct mem_node *, void *); |
| 461 | static int live_string_p P_ ((struct mem_node *, void *)); | 461 | static int live_string_p (struct mem_node *, void *); |
| 462 | static int live_cons_p P_ ((struct mem_node *, void *)); | 462 | static int live_cons_p (struct mem_node *, void *); |
| 463 | static int live_symbol_p P_ ((struct mem_node *, void *)); | 463 | static int live_symbol_p (struct mem_node *, void *); |
| 464 | static int live_float_p P_ ((struct mem_node *, void *)); | 464 | static int live_float_p (struct mem_node *, void *); |
| 465 | static int live_misc_p P_ ((struct mem_node *, void *)); | 465 | static int live_misc_p (struct mem_node *, void *); |
| 466 | static void mark_maybe_object P_ ((Lisp_Object)); | 466 | static void mark_maybe_object (Lisp_Object); |
| 467 | static void mark_memory P_ ((void *, void *, int)); | 467 | static void mark_memory (void *, void *, int); |
| 468 | static void mem_init P_ ((void)); | 468 | static void mem_init (void); |
| 469 | static struct mem_node *mem_insert P_ ((void *, void *, enum mem_type)); | 469 | static struct mem_node *mem_insert (void *, void *, enum mem_type); |
| 470 | static void mem_insert_fixup P_ ((struct mem_node *)); | 470 | static void mem_insert_fixup (struct mem_node *); |
| 471 | static void mem_rotate_left P_ ((struct mem_node *)); | 471 | static void mem_rotate_left (struct mem_node *); |
| 472 | static void mem_rotate_right P_ ((struct mem_node *)); | 472 | static void mem_rotate_right (struct mem_node *); |
| 473 | static void mem_delete P_ ((struct mem_node *)); | 473 | static void mem_delete (struct mem_node *); |
| 474 | static void mem_delete_fixup P_ ((struct mem_node *)); | 474 | static void mem_delete_fixup (struct mem_node *); |
| 475 | static INLINE struct mem_node *mem_find P_ ((void *)); | 475 | static INLINE struct mem_node *mem_find (void *); |
| 476 | 476 | ||
| 477 | 477 | ||
| 478 | #if GC_MARK_STACK == GC_MARK_STACK_CHECK_GCPROS | 478 | #if GC_MARK_STACK == GC_MARK_STACK_CHECK_GCPROS |
| 479 | static void check_gcpros P_ ((void)); | 479 | static void check_gcpros (void); |
| 480 | #endif | 480 | #endif |
| 481 | 481 | ||
| 482 | #endif /* GC_MARK_STACK || GC_MALLOC_CHECK */ | 482 | #endif /* GC_MARK_STACK || GC_MALLOC_CHECK */ |
| @@ -495,7 +495,7 @@ static Lisp_Object *staticvec[NSTATICS] = {&Vpurify_flag}; | |||
| 495 | 495 | ||
| 496 | static int staticidx = 0; | 496 | static int staticidx = 0; |
| 497 | 497 | ||
| 498 | static POINTER_TYPE *pure_alloc P_ ((size_t, int)); | 498 | static POINTER_TYPE *pure_alloc (size_t, int); |
| 499 | 499 | ||
| 500 | 500 | ||
| 501 | /* Value is SZ rounded up to the next multiple of ALIGNMENT. | 501 | /* Value is SZ rounded up to the next multiple of ALIGNMENT. |
| @@ -1164,14 +1164,14 @@ allocate_buffer () | |||
| 1164 | there's no need to block input around malloc. */ | 1164 | there's no need to block input around malloc. */ |
| 1165 | 1165 | ||
| 1166 | #ifndef DOUG_LEA_MALLOC | 1166 | #ifndef DOUG_LEA_MALLOC |
| 1167 | extern void * (*__malloc_hook) P_ ((size_t, const void *)); | 1167 | extern void * (*__malloc_hook) (size_t, const void *); |
| 1168 | extern void * (*__realloc_hook) P_ ((void *, size_t, const void *)); | 1168 | extern void * (*__realloc_hook) (void *, size_t, const void *); |
| 1169 | extern void (*__free_hook) P_ ((void *, const void *)); | 1169 | extern void (*__free_hook) (void *, const void *); |
| 1170 | /* Else declared in malloc.h, perhaps with an extra arg. */ | 1170 | /* Else declared in malloc.h, perhaps with an extra arg. */ |
| 1171 | #endif /* DOUG_LEA_MALLOC */ | 1171 | #endif /* DOUG_LEA_MALLOC */ |
| 1172 | static void * (*old_malloc_hook) P_ ((size_t, const void *)); | 1172 | static void * (*old_malloc_hook) (size_t, const void *); |
| 1173 | static void * (*old_realloc_hook) P_ ((void *, size_t, const void*)); | 1173 | static void * (*old_realloc_hook) (void *, size_t, const void*); |
| 1174 | static void (*old_free_hook) P_ ((void*, const void*)); | 1174 | static void (*old_free_hook) (void*, const void*); |
| 1175 | 1175 | ||
| 1176 | /* This function is used as the hook for free to call. */ | 1176 | /* This function is used as the hook for free to call. */ |
| 1177 | 1177 | ||
| @@ -1767,8 +1767,8 @@ init_strings () | |||
| 1767 | 1767 | ||
| 1768 | static int check_string_bytes_count; | 1768 | static int check_string_bytes_count; |
| 1769 | 1769 | ||
| 1770 | static void check_string_bytes P_ ((int)); | 1770 | static void check_string_bytes (int); |
| 1771 | static void check_sblock P_ ((struct sblock *)); | 1771 | static void check_sblock (struct sblock *); |
| 1772 | 1772 | ||
| 1773 | #define CHECK_STRING_BYTES(S) STRING_BYTES (S) | 1773 | #define CHECK_STRING_BYTES(S) STRING_BYTES (S) |
| 1774 | 1774 | ||
diff --git a/src/atimer.c b/src/atimer.c index 556272d7918..3ef51522c31 100644 --- a/src/atimer.c +++ b/src/atimer.c | |||
| @@ -64,10 +64,10 @@ int pending_atimers; | |||
| 64 | 64 | ||
| 65 | /* Function prototypes. */ | 65 | /* Function prototypes. */ |
| 66 | 66 | ||
| 67 | static void set_alarm P_ ((void)); | 67 | static void set_alarm (void); |
| 68 | static void schedule_atimer P_ ((struct atimer *)); | 68 | static void schedule_atimer (struct atimer *); |
| 69 | static struct atimer *append_atimer_lists P_ ((struct atimer *, | 69 | static struct atimer *append_atimer_lists (struct atimer *, |
| 70 | struct atimer *)); | 70 | struct atimer *); |
| 71 | SIGTYPE alarm_signal_handler (); | 71 | SIGTYPE alarm_signal_handler (); |
| 72 | 72 | ||
| 73 | 73 | ||
diff --git a/src/atimer.h b/src/atimer.h index e0f81a51d9a..c2245d30e6b 100644 --- a/src/atimer.h +++ b/src/atimer.h | |||
| @@ -20,13 +20,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | #ifndef EMACS_ATIMER_H | 20 | #ifndef EMACS_ATIMER_H |
| 21 | #define EMACS_ATIMER_H | 21 | #define EMACS_ATIMER_H |
| 22 | 22 | ||
| 23 | /* Declare the prototype for a general external function. */ | ||
| 24 | #if defined (PROTOTYPES) || defined (WINDOWSNT) | ||
| 25 | #define P_(proto) proto | ||
| 26 | #else | ||
| 27 | #define P_(proto) () | ||
| 28 | #endif | ||
| 29 | |||
| 30 | #include "systime.h" /* for EMACS_TIME */ | 23 | #include "systime.h" /* for EMACS_TIME */ |
| 31 | 24 | ||
| 32 | /* Forward declaration. */ | 25 | /* Forward declaration. */ |
diff --git a/src/buffer.c b/src/buffer.c index 589266f40e5..0dfad93b3e7 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -106,13 +106,13 @@ static char buffer_permanent_local_flags[MAX_PER_BUFFER_VARS]; | |||
| 106 | int last_per_buffer_idx; | 106 | int last_per_buffer_idx; |
| 107 | 107 | ||
| 108 | EXFUN (Fset_buffer, 1); | 108 | EXFUN (Fset_buffer, 1); |
| 109 | void set_buffer_internal P_ ((struct buffer *b)); | 109 | void set_buffer_internal (struct buffer *b); |
| 110 | void set_buffer_internal_1 P_ ((struct buffer *b)); | 110 | void set_buffer_internal_1 (struct buffer *b); |
| 111 | static void call_overlay_mod_hooks P_ ((Lisp_Object list, Lisp_Object overlay, | 111 | static void call_overlay_mod_hooks (Lisp_Object list, Lisp_Object overlay, |
| 112 | int after, Lisp_Object arg1, | 112 | int after, Lisp_Object arg1, |
| 113 | Lisp_Object arg2, Lisp_Object arg3)); | 113 | Lisp_Object arg2, Lisp_Object arg3); |
| 114 | static void swap_out_buffer_local_variables P_ ((struct buffer *b)); | 114 | static void swap_out_buffer_local_variables (struct buffer *b); |
| 115 | static void reset_buffer_local_variables P_ ((struct buffer *b, int permanent_too)); | 115 | static void reset_buffer_local_variables (struct buffer *b, int permanent_too); |
| 116 | 116 | ||
| 117 | /* Alist of all buffer names vs the buffers. */ | 117 | /* Alist of all buffer names vs the buffers. */ |
| 118 | /* This used to be a variable, but is no longer, | 118 | /* This used to be a variable, but is no longer, |
| @@ -168,13 +168,13 @@ Lisp_Object Qmodification_hooks; | |||
| 168 | Lisp_Object Qinsert_in_front_hooks; | 168 | Lisp_Object Qinsert_in_front_hooks; |
| 169 | Lisp_Object Qinsert_behind_hooks; | 169 | Lisp_Object Qinsert_behind_hooks; |
| 170 | 170 | ||
| 171 | static void alloc_buffer_text P_ ((struct buffer *, size_t)); | 171 | static void alloc_buffer_text (struct buffer *, size_t); |
| 172 | static void free_buffer_text P_ ((struct buffer *b)); | 172 | static void free_buffer_text (struct buffer *b); |
| 173 | static struct Lisp_Overlay * copy_overlays P_ ((struct buffer *, struct Lisp_Overlay *)); | 173 | static struct Lisp_Overlay * copy_overlays (struct buffer *, struct Lisp_Overlay *); |
| 174 | static void modify_overlay P_ ((struct buffer *, EMACS_INT, EMACS_INT)); | 174 | static void modify_overlay (struct buffer *, EMACS_INT, EMACS_INT); |
| 175 | static Lisp_Object buffer_lisp_local_variables P_ ((struct buffer *)); | 175 | static Lisp_Object buffer_lisp_local_variables (struct buffer *); |
| 176 | 176 | ||
| 177 | extern char * emacs_strerror P_ ((int)); | 177 | extern char * emacs_strerror (int); |
| 178 | 178 | ||
| 179 | /* For debugging; temporary. See set_buffer_internal. */ | 179 | /* For debugging; temporary. See set_buffer_internal. */ |
| 180 | /* Lisp_Object Qlisp_mode, Vcheck_symbol; */ | 180 | /* Lisp_Object Qlisp_mode, Vcheck_symbol; */ |
| @@ -2175,7 +2175,7 @@ advance_to_char_boundary (byte_pos) | |||
| 2175 | } | 2175 | } |
| 2176 | 2176 | ||
| 2177 | #ifdef REL_ALLOC | 2177 | #ifdef REL_ALLOC |
| 2178 | extern void r_alloc_reset_variable P_ ((POINTER_TYPE *, POINTER_TYPE *)); | 2178 | extern void r_alloc_reset_variable (POINTER_TYPE *, POINTER_TYPE *); |
| 2179 | #endif /* REL_ALLOC */ | 2179 | #endif /* REL_ALLOC */ |
| 2180 | 2180 | ||
| 2181 | DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text, | 2181 | DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text, |
| @@ -4693,13 +4693,13 @@ static int mmap_initialized_p; | |||
| 4693 | 4693 | ||
| 4694 | /* Function prototypes. */ | 4694 | /* Function prototypes. */ |
| 4695 | 4695 | ||
| 4696 | static int mmap_free_1 P_ ((struct mmap_region *)); | 4696 | static int mmap_free_1 (struct mmap_region *); |
| 4697 | static int mmap_enlarge P_ ((struct mmap_region *, int)); | 4697 | static int mmap_enlarge (struct mmap_region *, int); |
| 4698 | static struct mmap_region *mmap_find P_ ((POINTER_TYPE *, POINTER_TYPE *)); | 4698 | static struct mmap_region *mmap_find (POINTER_TYPE *, POINTER_TYPE *); |
| 4699 | static POINTER_TYPE *mmap_alloc P_ ((POINTER_TYPE **, size_t)); | 4699 | static POINTER_TYPE *mmap_alloc (POINTER_TYPE **, size_t); |
| 4700 | static POINTER_TYPE *mmap_realloc P_ ((POINTER_TYPE **, size_t)); | 4700 | static POINTER_TYPE *mmap_realloc (POINTER_TYPE **, size_t); |
| 4701 | static void mmap_free P_ ((POINTER_TYPE **ptr)); | 4701 | static void mmap_free (POINTER_TYPE **ptr); |
| 4702 | static void mmap_init P_ ((void)); | 4702 | static void mmap_init (void); |
| 4703 | 4703 | ||
| 4704 | 4704 | ||
| 4705 | /* Return a region overlapping address range START...END, or null if | 4705 | /* Return a region overlapping address range START...END, or null if |
| @@ -5032,9 +5032,9 @@ mmap_init () | |||
| 5032 | ***********************************************************************/ | 5032 | ***********************************************************************/ |
| 5033 | 5033 | ||
| 5034 | #ifdef REL_ALLOC | 5034 | #ifdef REL_ALLOC |
| 5035 | extern POINTER_TYPE *r_alloc P_ ((POINTER_TYPE **, size_t)); | 5035 | extern POINTER_TYPE *r_alloc (POINTER_TYPE **, size_t); |
| 5036 | extern POINTER_TYPE *r_re_alloc P_ ((POINTER_TYPE **, size_t)); | 5036 | extern POINTER_TYPE *r_re_alloc (POINTER_TYPE **, size_t); |
| 5037 | extern void r_alloc_free P_ ((POINTER_TYPE **ptr)); | 5037 | extern void r_alloc_free (POINTER_TYPE **ptr); |
| 5038 | #endif /* REL_ALLOC */ | 5038 | #endif /* REL_ALLOC */ |
| 5039 | 5039 | ||
| 5040 | 5040 | ||
diff --git a/src/callint.c b/src/callint.c index a45f8a372b8..45e5bd9ed9b 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -30,7 +30,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 30 | #include "keymap.h" | 30 | #include "keymap.h" |
| 31 | 31 | ||
| 32 | #ifdef HAVE_INDEX | 32 | #ifdef HAVE_INDEX |
| 33 | extern char *index P_ ((const char *, int)); | 33 | extern char *index (const char *, int); |
| 34 | #endif | 34 | #endif |
| 35 | 35 | ||
| 36 | extern Lisp_Object Qcursor_in_echo_area; | 36 | extern Lisp_Object Qcursor_in_echo_area; |
diff --git a/src/category.c b/src/category.c index b56d62b6b80..610df686dab 100644 --- a/src/category.c +++ b/src/category.c | |||
| @@ -59,7 +59,7 @@ Lisp_Object _temp_category_set; | |||
| 59 | 59 | ||
| 60 | /* Category set staff. */ | 60 | /* Category set staff. */ |
| 61 | 61 | ||
| 62 | static Lisp_Object hash_get_category_set P_ ((Lisp_Object, Lisp_Object)); | 62 | static Lisp_Object hash_get_category_set (Lisp_Object, Lisp_Object); |
| 63 | 63 | ||
| 64 | static Lisp_Object | 64 | static Lisp_Object |
| 65 | hash_get_category_set (table, category_set) | 65 | hash_get_category_set (table, category_set) |
diff --git a/src/charset.c b/src/charset.c index f83fa994536..787d000d99a 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -129,10 +129,10 @@ Lisp_Object Vcurrent_iso639_language; | |||
| 129 | 129 | ||
| 130 | /* Defined in chartab.c */ | 130 | /* Defined in chartab.c */ |
| 131 | extern void | 131 | extern void |
| 132 | map_char_table_for_charset P_ ((void (*c_function) (Lisp_Object, Lisp_Object), | 132 | map_char_table_for_charset (void (*c_function) (Lisp_Object, Lisp_Object), |
| 133 | Lisp_Object function, Lisp_Object table, | 133 | Lisp_Object function, Lisp_Object table, |
| 134 | Lisp_Object arg, struct charset *charset, | 134 | Lisp_Object arg, struct charset *charset, |
| 135 | unsigned from, unsigned to)); | 135 | unsigned from, unsigned to); |
| 136 | 136 | ||
| 137 | #define CODE_POINT_TO_INDEX(charset, code) \ | 137 | #define CODE_POINT_TO_INDEX(charset, code) \ |
| 138 | ((charset)->code_linear_p \ | 138 | ((charset)->code_linear_p \ |
| @@ -497,7 +497,7 @@ extern Lisp_Object Qfile_name_handler_alist; | |||
| 497 | Note that this function uses `openp' to open MAPFILE but ignores | 497 | Note that this function uses `openp' to open MAPFILE but ignores |
| 498 | `file-name-handler-alist' to avoid running any Lisp code. */ | 498 | `file-name-handler-alist' to avoid running any Lisp code. */ |
| 499 | 499 | ||
| 500 | extern void add_to_log P_ ((char *, Lisp_Object, Lisp_Object)); | 500 | extern void add_to_log (char *, Lisp_Object, Lisp_Object); |
| 501 | 501 | ||
| 502 | static void | 502 | static void |
| 503 | load_charset_map_from_file (charset, mapfile, control_flag) | 503 | load_charset_map_from_file (charset, mapfile, control_flag) |
| @@ -684,9 +684,9 @@ DEFUN ("charsetp", Fcharsetp, Scharsetp, 1, 1, 0, | |||
| 684 | } | 684 | } |
| 685 | 685 | ||
| 686 | 686 | ||
| 687 | void map_charset_for_dump P_ ((void (*c_function) (Lisp_Object, Lisp_Object), | 687 | void map_charset_for_dump (void (*c_function) (Lisp_Object, Lisp_Object), |
| 688 | Lisp_Object function, Lisp_Object arg, | 688 | Lisp_Object function, Lisp_Object arg, |
| 689 | unsigned from, unsigned to)); | 689 | unsigned from, unsigned to); |
| 690 | 690 | ||
| 691 | void | 691 | void |
| 692 | map_charset_for_dump (c_function, function, arg, from, to) | 692 | map_charset_for_dump (c_function, function, arg, from, to) |
| @@ -750,7 +750,7 @@ map_charset_for_dump (c_function, function, arg, from, to) | |||
| 750 | void | 750 | void |
| 751 | map_charset_chars (c_function, function, arg, | 751 | map_charset_chars (c_function, function, arg, |
| 752 | charset, from, to) | 752 | charset, from, to) |
| 753 | void (*c_function) P_ ((Lisp_Object, Lisp_Object)); | 753 | void (*c_function) (Lisp_Object, Lisp_Object); |
| 754 | Lisp_Object function, arg; | 754 | Lisp_Object function, arg; |
| 755 | struct charset *charset; | 755 | struct charset *charset; |
| 756 | unsigned from, to; | 756 | unsigned from, to; |
diff --git a/src/chartab.c b/src/chartab.c index 2b547184b21..90ec660d671 100644 --- a/src/chartab.c +++ b/src/chartab.c | |||
| @@ -725,7 +725,7 @@ equivalent and can be merged. It defaults to `equal'. */) | |||
| 725 | static Lisp_Object | 725 | static Lisp_Object |
| 726 | map_sub_char_table (c_function, function, table, arg, val, range, | 726 | map_sub_char_table (c_function, function, table, arg, val, range, |
| 727 | default_val, parent) | 727 | default_val, parent) |
| 728 | void (*c_function) P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); | 728 | void (*c_function) (Lisp_Object, Lisp_Object, Lisp_Object); |
| 729 | Lisp_Object function, table, arg, val, range, default_val, parent; | 729 | Lisp_Object function, table, arg, val, range, default_val, parent; |
| 730 | { | 730 | { |
| 731 | /* Pointer to the elements of TABLE. */ | 731 | /* Pointer to the elements of TABLE. */ |
| @@ -841,7 +841,7 @@ map_sub_char_table (c_function, function, table, arg, val, range, | |||
| 841 | 841 | ||
| 842 | void | 842 | void |
| 843 | map_char_table (c_function, function, table, arg) | 843 | map_char_table (c_function, function, table, arg) |
| 844 | void (*c_function) P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); | 844 | void (*c_function) (Lisp_Object, Lisp_Object, Lisp_Object); |
| 845 | Lisp_Object function, table, arg; | 845 | Lisp_Object function, table, arg; |
| 846 | { | 846 | { |
| 847 | Lisp_Object range, val; | 847 | Lisp_Object range, val; |
| @@ -915,7 +915,7 @@ range of characters that have the same value. */) | |||
| 915 | static void | 915 | static void |
| 916 | map_sub_char_table_for_charset (c_function, function, table, arg, range, | 916 | map_sub_char_table_for_charset (c_function, function, table, arg, range, |
| 917 | charset, from, to) | 917 | charset, from, to) |
| 918 | void (*c_function) P_ ((Lisp_Object, Lisp_Object)); | 918 | void (*c_function) (Lisp_Object, Lisp_Object); |
| 919 | Lisp_Object function, table, arg, range; | 919 | Lisp_Object function, table, arg, range; |
| 920 | struct charset *charset; | 920 | struct charset *charset; |
| 921 | unsigned from, to; | 921 | unsigned from, to; |
| @@ -1002,7 +1002,7 @@ map_sub_char_table_for_charset (c_function, function, table, arg, range, | |||
| 1002 | void | 1002 | void |
| 1003 | map_char_table_for_charset (c_function, function, table, arg, | 1003 | map_char_table_for_charset (c_function, function, table, arg, |
| 1004 | charset, from, to) | 1004 | charset, from, to) |
| 1005 | void (*c_function) P_ ((Lisp_Object, Lisp_Object)); | 1005 | void (*c_function) (Lisp_Object, Lisp_Object); |
| 1006 | Lisp_Object function, table, arg; | 1006 | Lisp_Object function, table, arg; |
| 1007 | struct charset *charset; | 1007 | struct charset *charset; |
| 1008 | unsigned from, to; | 1008 | unsigned from, to; |
| @@ -33,8 +33,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 33 | /* For now, don't try to include termcap.h. On some systems, | 33 | /* For now, don't try to include termcap.h. On some systems, |
| 34 | configure finds a non-standard termcap.h that the main build | 34 | configure finds a non-standard termcap.h that the main build |
| 35 | won't find. */ | 35 | won't find. */ |
| 36 | extern void tputs P_ ((const char *, int, int (*)(int))); | 36 | extern void tputs (const char *, int, int (*)(int)); |
| 37 | extern char *tgoto P_ ((const char *, int, int)); | 37 | extern char *tgoto (const char *, int, int); |
| 38 | 38 | ||
| 39 | #define BIG 9999 /* 9999 good on VAXen. For 16 bit machines | 39 | #define BIG 9999 /* 9999 good on VAXen. For 16 bit machines |
| 40 | use about 2000.... */ | 40 | use about 2000.... */ |
diff --git a/src/coding.c b/src/coding.c index 6435fa1ddb1..1730468ade9 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -896,80 +896,80 @@ static struct coding_system coding_categories[coding_category_max]; | |||
| 896 | 896 | ||
| 897 | 897 | ||
| 898 | /* Prototypes for static functions. */ | 898 | /* Prototypes for static functions. */ |
| 899 | static void record_conversion_result P_ ((struct coding_system *coding, | 899 | static void record_conversion_result (struct coding_system *coding, |
| 900 | enum coding_result_code result)); | 900 | enum coding_result_code result); |
| 901 | static int detect_coding_utf_8 P_ ((struct coding_system *, | 901 | static int detect_coding_utf_8 (struct coding_system *, |
| 902 | struct coding_detection_info *info)); | 902 | struct coding_detection_info *info); |
| 903 | static void decode_coding_utf_8 P_ ((struct coding_system *)); | 903 | static void decode_coding_utf_8 (struct coding_system *); |
| 904 | static int encode_coding_utf_8 P_ ((struct coding_system *)); | 904 | static int encode_coding_utf_8 (struct coding_system *); |
| 905 | 905 | ||
| 906 | static int detect_coding_utf_16 P_ ((struct coding_system *, | 906 | static int detect_coding_utf_16 (struct coding_system *, |
| 907 | struct coding_detection_info *info)); | 907 | struct coding_detection_info *info); |
| 908 | static void decode_coding_utf_16 P_ ((struct coding_system *)); | 908 | static void decode_coding_utf_16 (struct coding_system *); |
| 909 | static int encode_coding_utf_16 P_ ((struct coding_system *)); | 909 | static int encode_coding_utf_16 (struct coding_system *); |
| 910 | 910 | ||
| 911 | static int detect_coding_iso_2022 P_ ((struct coding_system *, | 911 | static int detect_coding_iso_2022 (struct coding_system *, |
| 912 | struct coding_detection_info *info)); | 912 | struct coding_detection_info *info); |
| 913 | static void decode_coding_iso_2022 P_ ((struct coding_system *)); | 913 | static void decode_coding_iso_2022 (struct coding_system *); |
| 914 | static int encode_coding_iso_2022 P_ ((struct coding_system *)); | 914 | static int encode_coding_iso_2022 (struct coding_system *); |
| 915 | 915 | ||
| 916 | static int detect_coding_emacs_mule P_ ((struct coding_system *, | 916 | static int detect_coding_emacs_mule (struct coding_system *, |
| 917 | struct coding_detection_info *info)); | 917 | struct coding_detection_info *info); |
| 918 | static void decode_coding_emacs_mule P_ ((struct coding_system *)); | 918 | static void decode_coding_emacs_mule (struct coding_system *); |
| 919 | static int encode_coding_emacs_mule P_ ((struct coding_system *)); | 919 | static int encode_coding_emacs_mule (struct coding_system *); |
| 920 | 920 | ||
| 921 | static int detect_coding_sjis P_ ((struct coding_system *, | 921 | static int detect_coding_sjis (struct coding_system *, |
| 922 | struct coding_detection_info *info)); | 922 | struct coding_detection_info *info); |
| 923 | static void decode_coding_sjis P_ ((struct coding_system *)); | 923 | static void decode_coding_sjis (struct coding_system *); |
| 924 | static int encode_coding_sjis P_ ((struct coding_system *)); | 924 | static int encode_coding_sjis (struct coding_system *); |
| 925 | 925 | ||
| 926 | static int detect_coding_big5 P_ ((struct coding_system *, | 926 | static int detect_coding_big5 (struct coding_system *, |
| 927 | struct coding_detection_info *info)); | 927 | struct coding_detection_info *info); |
| 928 | static void decode_coding_big5 P_ ((struct coding_system *)); | 928 | static void decode_coding_big5 (struct coding_system *); |
| 929 | static int encode_coding_big5 P_ ((struct coding_system *)); | 929 | static int encode_coding_big5 (struct coding_system *); |
| 930 | 930 | ||
| 931 | static int detect_coding_ccl P_ ((struct coding_system *, | 931 | static int detect_coding_ccl (struct coding_system *, |
| 932 | struct coding_detection_info *info)); | 932 | struct coding_detection_info *info); |
| 933 | static void decode_coding_ccl P_ ((struct coding_system *)); | 933 | static void decode_coding_ccl (struct coding_system *); |
| 934 | static int encode_coding_ccl P_ ((struct coding_system *)); | 934 | static int encode_coding_ccl (struct coding_system *); |
| 935 | 935 | ||
| 936 | static void decode_coding_raw_text P_ ((struct coding_system *)); | 936 | static void decode_coding_raw_text (struct coding_system *); |
| 937 | static int encode_coding_raw_text P_ ((struct coding_system *)); | 937 | static int encode_coding_raw_text (struct coding_system *); |
| 938 | 938 | ||
| 939 | static void coding_set_source P_ ((struct coding_system *)); | 939 | static void coding_set_source (struct coding_system *); |
| 940 | static void coding_set_destination P_ ((struct coding_system *)); | 940 | static void coding_set_destination (struct coding_system *); |
| 941 | static void coding_alloc_by_realloc P_ ((struct coding_system *, EMACS_INT)); | 941 | static void coding_alloc_by_realloc (struct coding_system *, EMACS_INT); |
| 942 | static void coding_alloc_by_making_gap P_ ((struct coding_system *, | 942 | static void coding_alloc_by_making_gap (struct coding_system *, |
| 943 | EMACS_INT, EMACS_INT)); | 943 | EMACS_INT, EMACS_INT); |
| 944 | static unsigned char *alloc_destination P_ ((struct coding_system *, | 944 | static unsigned char *alloc_destination (struct coding_system *, |
| 945 | EMACS_INT, unsigned char *)); | 945 | EMACS_INT, unsigned char *); |
| 946 | static void setup_iso_safe_charsets P_ ((Lisp_Object)); | 946 | static void setup_iso_safe_charsets (Lisp_Object); |
| 947 | static unsigned char *encode_designation_at_bol P_ ((struct coding_system *, | 947 | static unsigned char *encode_designation_at_bol (struct coding_system *, |
| 948 | int *, int *, | 948 | int *, int *, |
| 949 | unsigned char *)); | 949 | unsigned char *); |
| 950 | static int detect_eol P_ ((const unsigned char *, | 950 | static int detect_eol (const unsigned char *, |
| 951 | EMACS_INT, enum coding_category)); | 951 | EMACS_INT, enum coding_category); |
| 952 | static Lisp_Object adjust_coding_eol_type P_ ((struct coding_system *, int)); | 952 | static Lisp_Object adjust_coding_eol_type (struct coding_system *, int); |
| 953 | static void decode_eol P_ ((struct coding_system *)); | 953 | static void decode_eol (struct coding_system *); |
| 954 | static Lisp_Object get_translation_table P_ ((Lisp_Object, int, int *)); | 954 | static Lisp_Object get_translation_table (Lisp_Object, int, int *); |
| 955 | static Lisp_Object get_translation P_ ((Lisp_Object, int *, int *)); | 955 | static Lisp_Object get_translation (Lisp_Object, int *, int *); |
| 956 | static int produce_chars P_ ((struct coding_system *, Lisp_Object, int)); | 956 | static int produce_chars (struct coding_system *, Lisp_Object, int); |
| 957 | static INLINE void produce_charset P_ ((struct coding_system *, int *, | 957 | static INLINE void produce_charset (struct coding_system *, int *, |
| 958 | EMACS_INT)); | 958 | EMACS_INT); |
| 959 | static void produce_annotation P_ ((struct coding_system *, EMACS_INT)); | 959 | static void produce_annotation (struct coding_system *, EMACS_INT); |
| 960 | static int decode_coding P_ ((struct coding_system *)); | 960 | static int decode_coding (struct coding_system *); |
| 961 | static INLINE int *handle_composition_annotation P_ ((EMACS_INT, EMACS_INT, | 961 | static INLINE int *handle_composition_annotation (EMACS_INT, EMACS_INT, |
| 962 | struct coding_system *, | 962 | struct coding_system *, |
| 963 | int *, EMACS_INT *)); | 963 | int *, EMACS_INT *); |
| 964 | static INLINE int *handle_charset_annotation P_ ((EMACS_INT, EMACS_INT, | 964 | static INLINE int *handle_charset_annotation (EMACS_INT, EMACS_INT, |
| 965 | struct coding_system *, | 965 | struct coding_system *, |
| 966 | int *, EMACS_INT *)); | 966 | int *, EMACS_INT *); |
| 967 | static void consume_chars P_ ((struct coding_system *, Lisp_Object, int)); | 967 | static void consume_chars (struct coding_system *, Lisp_Object, int); |
| 968 | static int encode_coding P_ ((struct coding_system *)); | 968 | static int encode_coding (struct coding_system *); |
| 969 | static Lisp_Object make_conversion_work_buffer P_ ((int)); | 969 | static Lisp_Object make_conversion_work_buffer (int); |
| 970 | static Lisp_Object code_conversion_restore P_ ((Lisp_Object)); | 970 | static Lisp_Object code_conversion_restore (Lisp_Object); |
| 971 | static INLINE int char_encodable_p P_ ((int, Lisp_Object)); | 971 | static INLINE int char_encodable_p (int, Lisp_Object); |
| 972 | static Lisp_Object make_subsidiaries P_ ((Lisp_Object)); | 972 | static Lisp_Object make_subsidiaries (Lisp_Object); |
| 973 | 973 | ||
| 974 | static void | 974 | static void |
| 975 | record_conversion_result (struct coding_system *coding, | 975 | record_conversion_result (struct coding_system *coding, |
| @@ -3442,7 +3442,7 @@ detect_coding_iso_2022 (coding, detect_info) | |||
| 3442 | 3442 | ||
| 3443 | /* Finish the current composition as invalid. */ | 3443 | /* Finish the current composition as invalid. */ |
| 3444 | 3444 | ||
| 3445 | static int finish_composition P_ ((int *, struct composition_status *)); | 3445 | static int finish_composition (int *, struct composition_status *); |
| 3446 | 3446 | ||
| 3447 | static int | 3447 | static int |
| 3448 | finish_composition (charbuf, cmp_status) | 3448 | finish_composition (charbuf, cmp_status) |
diff --git a/src/composite.c b/src/composite.c index cab57e824a9..6b2fe6a6522 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -651,9 +651,9 @@ compose_text (start, end, components, modification_func, string) | |||
| 651 | } | 651 | } |
| 652 | 652 | ||
| 653 | 653 | ||
| 654 | static Lisp_Object autocmp_chars P_ ((Lisp_Object, EMACS_INT, EMACS_INT, | 654 | static Lisp_Object autocmp_chars (Lisp_Object, EMACS_INT, EMACS_INT, |
| 655 | EMACS_INT, struct window *, | 655 | EMACS_INT, struct window *, |
| 656 | struct face *, Lisp_Object)); | 656 | struct face *, Lisp_Object); |
| 657 | 657 | ||
| 658 | 658 | ||
| 659 | /* Lisp glyph-string handlers */ | 659 | /* Lisp glyph-string handlers */ |
| @@ -664,7 +664,7 @@ static Lisp_Object autocmp_chars P_ ((Lisp_Object, EMACS_INT, EMACS_INT, | |||
| 664 | 664 | ||
| 665 | static Lisp_Object gstring_hash_table; | 665 | static Lisp_Object gstring_hash_table; |
| 666 | 666 | ||
| 667 | static Lisp_Object gstring_lookup_cache P_ ((Lisp_Object)); | 667 | static Lisp_Object gstring_lookup_cache (Lisp_Object); |
| 668 | 668 | ||
| 669 | static Lisp_Object | 669 | static Lisp_Object |
| 670 | gstring_lookup_cache (header) | 670 | gstring_lookup_cache (header) |
| @@ -715,9 +715,9 @@ composition_gstring_from_id (id) | |||
| 715 | return HASH_VALUE (h, id); | 715 | return HASH_VALUE (h, id); |
| 716 | } | 716 | } |
| 717 | 717 | ||
| 718 | static Lisp_Object fill_gstring_header P_ ((Lisp_Object, Lisp_Object, | 718 | static Lisp_Object fill_gstring_header (Lisp_Object, Lisp_Object, |
| 719 | Lisp_Object, Lisp_Object, | 719 | Lisp_Object, Lisp_Object, |
| 720 | Lisp_Object)); | 720 | Lisp_Object); |
| 721 | 721 | ||
| 722 | int | 722 | int |
| 723 | composition_gstring_p (gstring) | 723 | composition_gstring_p (gstring) |
| @@ -869,7 +869,7 @@ fill_gstring_header (header, start, end, font_object, string) | |||
| 869 | return header; | 869 | return header; |
| 870 | } | 870 | } |
| 871 | 871 | ||
| 872 | extern void font_fill_lglyph_metrics P_ ((Lisp_Object, Lisp_Object)); | 872 | extern void font_fill_lglyph_metrics (Lisp_Object, Lisp_Object); |
| 873 | 873 | ||
| 874 | static void | 874 | static void |
| 875 | fill_gstring_body (gstring) | 875 | fill_gstring_body (gstring) |
diff --git a/src/data.c b/src/data.c index 93cc57e9f2c..d44176d9b01 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -2057,7 +2057,7 @@ If the current binding is global (the default), the value is nil. */) | |||
| 2057 | /* This code is disabled now that we use the selected frame to return | 2057 | /* This code is disabled now that we use the selected frame to return |
| 2058 | keyboard-local-values. */ | 2058 | keyboard-local-values. */ |
| 2059 | #if 0 | 2059 | #if 0 |
| 2060 | extern struct terminal *get_terminal P_ ((Lisp_Object display, int)); | 2060 | extern struct terminal *get_terminal (Lisp_Object display, int); |
| 2061 | 2061 | ||
| 2062 | DEFUN ("terminal-local-value", Fterminal_local_value, Sterminal_local_value, 2, 2, 0, | 2062 | DEFUN ("terminal-local-value", Fterminal_local_value, Sterminal_local_value, 2, 2, 0, |
| 2063 | doc: /* Return the terminal-local value of SYMBOL on TERMINAL. | 2063 | doc: /* Return the terminal-local value of SYMBOL on TERMINAL. |
| @@ -2605,8 +2605,8 @@ enum arithop | |||
| 2605 | Amin | 2605 | Amin |
| 2606 | }; | 2606 | }; |
| 2607 | 2607 | ||
| 2608 | static Lisp_Object float_arith_driver P_ ((double, int, enum arithop, | 2608 | static Lisp_Object float_arith_driver (double, int, enum arithop, |
| 2609 | int, Lisp_Object *)); | 2609 | int, Lisp_Object *); |
| 2610 | extern Lisp_Object fmod_float (); | 2610 | extern Lisp_Object fmod_float (); |
| 2611 | 2611 | ||
| 2612 | Lisp_Object | 2612 | Lisp_Object |
diff --git a/src/dired.c b/src/dired.c index c7f4774b991..c2090aeda0c 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -93,7 +93,7 @@ extern struct direct *readdir (); | |||
| 93 | extern struct re_pattern_buffer *compile_pattern (); | 93 | extern struct re_pattern_buffer *compile_pattern (); |
| 94 | 94 | ||
| 95 | /* From filemode.c. Can't go in Lisp.h because of `stat'. */ | 95 | /* From filemode.c. Can't go in Lisp.h because of `stat'. */ |
| 96 | extern void filemodestring P_ ((struct stat *, char *)); | 96 | extern void filemodestring (struct stat *, char *); |
| 97 | 97 | ||
| 98 | /* if system does not have symbolic links, it does not have lstat. | 98 | /* if system does not have symbolic links, it does not have lstat. |
| 99 | In that case, use ordinary stat instead. */ | 99 | In that case, use ordinary stat instead. */ |
| @@ -115,7 +115,7 @@ Lisp_Object Qfile_name_all_completions; | |||
| 115 | Lisp_Object Qfile_attributes; | 115 | Lisp_Object Qfile_attributes; |
| 116 | Lisp_Object Qfile_attributes_lessp; | 116 | Lisp_Object Qfile_attributes_lessp; |
| 117 | 117 | ||
| 118 | static int scmp P_ ((unsigned char *, unsigned char *, int)); | 118 | static int scmp (unsigned char *, unsigned char *, int); |
| 119 | 119 | ||
| 120 | #ifdef WINDOWSNT | 120 | #ifdef WINDOWSNT |
| 121 | Lisp_Object | 121 | Lisp_Object |
diff --git a/src/dispnew.c b/src/dispnew.c index a8ba1995435..74c41dfcd44 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -114,73 +114,73 @@ struct dim | |||
| 114 | 114 | ||
| 115 | /* Function prototypes. */ | 115 | /* Function prototypes. */ |
| 116 | 116 | ||
| 117 | static struct glyph_matrix *save_current_matrix P_ ((struct frame *)); | 117 | static struct glyph_matrix *save_current_matrix (struct frame *); |
| 118 | static void restore_current_matrix P_ ((struct frame *, struct glyph_matrix *)); | 118 | static void restore_current_matrix (struct frame *, struct glyph_matrix *); |
| 119 | static int showing_window_margins_p P_ ((struct window *)); | 119 | static int showing_window_margins_p (struct window *); |
| 120 | static void fake_current_matrices P_ ((Lisp_Object)); | 120 | static void fake_current_matrices (Lisp_Object); |
| 121 | static void redraw_overlapping_rows P_ ((struct window *, int)); | 121 | static void redraw_overlapping_rows (struct window *, int); |
| 122 | static void redraw_overlapped_rows P_ ((struct window *, int)); | 122 | static void redraw_overlapped_rows (struct window *, int); |
| 123 | static int count_blanks P_ ((struct glyph *, int)); | 123 | static int count_blanks (struct glyph *, int); |
| 124 | static int count_match P_ ((struct glyph *, struct glyph *, | 124 | static int count_match (struct glyph *, struct glyph *, |
| 125 | struct glyph *, struct glyph *)); | 125 | struct glyph *, struct glyph *); |
| 126 | static unsigned line_draw_cost P_ ((struct glyph_matrix *, int)); | 126 | static unsigned line_draw_cost (struct glyph_matrix *, int); |
| 127 | static void update_frame_line P_ ((struct frame *, int)); | 127 | static void update_frame_line (struct frame *, int); |
| 128 | static struct dim allocate_matrices_for_frame_redisplay | 128 | static struct dim allocate_matrices_for_frame_redisplay |
| 129 | P_ ((Lisp_Object, int, int, int, int *)); | 129 | (Lisp_Object, int, int, int, int *); |
| 130 | static void allocate_matrices_for_window_redisplay P_ ((struct window *)); | 130 | static void allocate_matrices_for_window_redisplay (struct window *); |
| 131 | static int realloc_glyph_pool P_ ((struct glyph_pool *, struct dim)); | 131 | static int realloc_glyph_pool (struct glyph_pool *, struct dim); |
| 132 | static void adjust_frame_glyphs P_ ((struct frame *)); | 132 | static void adjust_frame_glyphs (struct frame *); |
| 133 | struct glyph_matrix *new_glyph_matrix P_ ((struct glyph_pool *)); | 133 | struct glyph_matrix *new_glyph_matrix (struct glyph_pool *); |
| 134 | static void free_glyph_matrix P_ ((struct glyph_matrix *)); | 134 | static void free_glyph_matrix (struct glyph_matrix *); |
| 135 | static void adjust_glyph_matrix P_ ((struct window *, struct glyph_matrix *, | 135 | static void adjust_glyph_matrix (struct window *, struct glyph_matrix *, |
| 136 | int, int, struct dim)); | 136 | int, int, struct dim); |
| 137 | static void change_frame_size_1 P_ ((struct frame *, int, int, int, int, int)); | 137 | static void change_frame_size_1 (struct frame *, int, int, int, int, int); |
| 138 | static void swap_glyph_pointers P_ ((struct glyph_row *, struct glyph_row *)); | 138 | static void swap_glyph_pointers (struct glyph_row *, struct glyph_row *); |
| 139 | #if GLYPH_DEBUG | 139 | #if GLYPH_DEBUG |
| 140 | static int glyph_row_slice_p P_ ((struct glyph_row *, struct glyph_row *)); | 140 | static int glyph_row_slice_p (struct glyph_row *, struct glyph_row *); |
| 141 | #endif | 141 | #endif |
| 142 | static void fill_up_frame_row_with_spaces P_ ((struct glyph_row *, int)); | 142 | static void fill_up_frame_row_with_spaces (struct glyph_row *, int); |
| 143 | static void build_frame_matrix_from_window_tree P_ ((struct glyph_matrix *, | 143 | static void build_frame_matrix_from_window_tree (struct glyph_matrix *, |
| 144 | struct window *)); | 144 | struct window *); |
| 145 | static void build_frame_matrix_from_leaf_window P_ ((struct glyph_matrix *, | 145 | static void build_frame_matrix_from_leaf_window (struct glyph_matrix *, |
| 146 | struct window *)); | 146 | struct window *); |
| 147 | static struct glyph_pool *new_glyph_pool P_ ((void)); | 147 | static struct glyph_pool *new_glyph_pool (void); |
| 148 | static void free_glyph_pool P_ ((struct glyph_pool *)); | 148 | static void free_glyph_pool (struct glyph_pool *); |
| 149 | static void adjust_frame_glyphs_initially P_ ((void)); | 149 | static void adjust_frame_glyphs_initially (void); |
| 150 | static void adjust_frame_message_buffer P_ ((struct frame *)); | 150 | static void adjust_frame_message_buffer (struct frame *); |
| 151 | static void adjust_decode_mode_spec_buffer P_ ((struct frame *)); | 151 | static void adjust_decode_mode_spec_buffer (struct frame *); |
| 152 | static void fill_up_glyph_row_with_spaces P_ ((struct glyph_row *)); | 152 | static void fill_up_glyph_row_with_spaces (struct glyph_row *); |
| 153 | static void build_frame_matrix P_ ((struct frame *)); | 153 | static void build_frame_matrix (struct frame *); |
| 154 | void clear_current_matrices P_ ((struct frame *)); | 154 | void clear_current_matrices (struct frame *); |
| 155 | void scroll_glyph_matrix_range P_ ((struct glyph_matrix *, int, int, | 155 | void scroll_glyph_matrix_range (struct glyph_matrix *, int, int, |
| 156 | int, int)); | 156 | int, int); |
| 157 | static void clear_window_matrices P_ ((struct window *, int)); | 157 | static void clear_window_matrices (struct window *, int); |
| 158 | static void fill_up_glyph_row_area_with_spaces P_ ((struct glyph_row *, int)); | 158 | static void fill_up_glyph_row_area_with_spaces (struct glyph_row *, int); |
| 159 | static int scrolling_window P_ ((struct window *, int)); | 159 | static int scrolling_window (struct window *, int); |
| 160 | static int update_window_line P_ ((struct window *, int, int *)); | 160 | static int update_window_line (struct window *, int, int *); |
| 161 | static void update_marginal_area P_ ((struct window *, int, int)); | 161 | static void update_marginal_area (struct window *, int, int); |
| 162 | static int update_text_area P_ ((struct window *, int)); | 162 | static int update_text_area (struct window *, int); |
| 163 | static void make_current P_ ((struct glyph_matrix *, struct glyph_matrix *, | 163 | static void make_current (struct glyph_matrix *, struct glyph_matrix *, |
| 164 | int)); | 164 | int); |
| 165 | static void mirror_make_current P_ ((struct window *, int)); | 165 | static void mirror_make_current (struct window *, int); |
| 166 | void check_window_matrix_pointers P_ ((struct window *)); | 166 | void check_window_matrix_pointers (struct window *); |
| 167 | #if GLYPH_DEBUG | 167 | #if GLYPH_DEBUG |
| 168 | static void check_matrix_pointers P_ ((struct glyph_matrix *, | 168 | static void check_matrix_pointers (struct glyph_matrix *, |
| 169 | struct glyph_matrix *)); | 169 | struct glyph_matrix *); |
| 170 | #endif | 170 | #endif |
| 171 | static void mirror_line_dance P_ ((struct window *, int, int, int *, char *)); | 171 | static void mirror_line_dance (struct window *, int, int, int *, char *); |
| 172 | static int update_window_tree P_ ((struct window *, int)); | 172 | static int update_window_tree (struct window *, int); |
| 173 | static int update_window P_ ((struct window *, int)); | 173 | static int update_window (struct window *, int); |
| 174 | static int update_frame_1 P_ ((struct frame *, int, int)); | 174 | static int update_frame_1 (struct frame *, int, int); |
| 175 | static void set_window_cursor_after_update P_ ((struct window *)); | 175 | static void set_window_cursor_after_update (struct window *); |
| 176 | static int row_equal_p P_ ((struct window *, struct glyph_row *, | 176 | static int row_equal_p (struct window *, struct glyph_row *, |
| 177 | struct glyph_row *, int)); | 177 | struct glyph_row *, int); |
| 178 | static void adjust_frame_glyphs_for_window_redisplay P_ ((struct frame *)); | 178 | static void adjust_frame_glyphs_for_window_redisplay (struct frame *); |
| 179 | static void adjust_frame_glyphs_for_frame_redisplay P_ ((struct frame *)); | 179 | static void adjust_frame_glyphs_for_frame_redisplay (struct frame *); |
| 180 | static void reverse_rows P_ ((struct glyph_matrix *, int, int)); | 180 | static void reverse_rows (struct glyph_matrix *, int, int); |
| 181 | static int margin_glyphs_to_reserve P_ ((struct window *, int, Lisp_Object)); | 181 | static int margin_glyphs_to_reserve (struct window *, int, Lisp_Object); |
| 182 | static void sync_window_with_frame_matrix_rows P_ ((struct window *)); | 182 | static void sync_window_with_frame_matrix_rows (struct window *); |
| 183 | struct window *frame_row_to_window P_ ((struct window *, int)); | 183 | struct window *frame_row_to_window (struct window *, int); |
| 184 | 184 | ||
| 185 | 185 | ||
| 186 | /* Non-zero means don't pause redisplay for pending input. (This is | 186 | /* Non-zero means don't pause redisplay for pending input. (This is |
| @@ -325,8 +325,8 @@ int fonts_changed_p; | |||
| 325 | 325 | ||
| 326 | #if GLYPH_DEBUG | 326 | #if GLYPH_DEBUG |
| 327 | 327 | ||
| 328 | static int window_to_frame_vpos P_ ((struct window *, int)); | 328 | static int window_to_frame_vpos (struct window *, int); |
| 329 | static int window_to_frame_hpos P_ ((struct window *, int)); | 329 | static int window_to_frame_hpos (struct window *, int); |
| 330 | #define WINDOW_TO_FRAME_VPOS(W, VPOS) window_to_frame_vpos ((W), (VPOS)) | 330 | #define WINDOW_TO_FRAME_VPOS(W, VPOS) window_to_frame_vpos ((W), (VPOS)) |
| 331 | #define WINDOW_TO_FRAME_HPOS(W, HPOS) window_to_frame_hpos ((W), (HPOS)) | 331 | #define WINDOW_TO_FRAME_HPOS(W, HPOS) window_to_frame_hpos ((W), (HPOS)) |
| 332 | 332 | ||
| @@ -355,8 +355,8 @@ static int history_idx; | |||
| 355 | 355 | ||
| 356 | static unsigned history_tick; | 356 | static unsigned history_tick; |
| 357 | 357 | ||
| 358 | static void add_frame_display_history P_ ((struct frame *, int)); | 358 | static void add_frame_display_history (struct frame *, int); |
| 359 | static void add_window_display_history P_ ((struct window *, char *, int)); | 359 | static void add_window_display_history (struct window *, char *, int); |
| 360 | 360 | ||
| 361 | /* Add to the redisplay history how window W has been displayed. | 361 | /* Add to the redisplay history how window W has been displayed. |
| 362 | MSG is a trace containing the information how W's glyph matrix | 362 | MSG is a trace containing the information how W's glyph matrix |
| @@ -46,7 +46,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 46 | #include "buildobj.h" | 46 | #include "buildobj.h" |
| 47 | 47 | ||
| 48 | #ifdef HAVE_INDEX | 48 | #ifdef HAVE_INDEX |
| 49 | extern char *index P_ ((const char *, int)); | 49 | extern char *index (const char *, int); |
| 50 | #endif | 50 | #endif |
| 51 | 51 | ||
| 52 | Lisp_Object Vdoc_file_name; | 52 | Lisp_Object Vdoc_file_name; |
| @@ -65,7 +65,7 @@ static char *get_doc_string_buffer; | |||
| 65 | static int get_doc_string_buffer_size; | 65 | static int get_doc_string_buffer_size; |
| 66 | 66 | ||
| 67 | static unsigned char *read_bytecode_pointer; | 67 | static unsigned char *read_bytecode_pointer; |
| 68 | Lisp_Object Fsnarf_documentation P_ ((Lisp_Object)); | 68 | Lisp_Object Fsnarf_documentation (Lisp_Object); |
| 69 | 69 | ||
| 70 | /* readchar in lread.c calls back here to fetch the next byte. | 70 | /* readchar in lread.c calls back here to fetch the next byte. |
| 71 | If UNREADFLAG is 1, we unread a byte. */ | 71 | If UNREADFLAG is 1, we unread a byte. */ |
diff --git a/src/editfns.c b/src/editfns.c index ea279a462f2..ac1d152ccdb 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -86,38 +86,38 @@ extern char **environ; | |||
| 86 | (1000 - TM_YEAR_BASE <= (tm_year) && (tm_year) <= 9999 - TM_YEAR_BASE) | 86 | (1000 - TM_YEAR_BASE <= (tm_year) && (tm_year) <= 9999 - TM_YEAR_BASE) |
| 87 | #endif | 87 | #endif |
| 88 | 88 | ||
| 89 | extern size_t emacs_strftimeu P_ ((char *, size_t, const char *, | 89 | extern size_t emacs_strftimeu (char *, size_t, const char *, |
| 90 | const struct tm *, int)); | 90 | const struct tm *, int); |
| 91 | 91 | ||
| 92 | #ifdef WINDOWSNT | 92 | #ifdef WINDOWSNT |
| 93 | extern Lisp_Object w32_get_internal_run_time (); | 93 | extern Lisp_Object w32_get_internal_run_time (); |
| 94 | #endif | 94 | #endif |
| 95 | 95 | ||
| 96 | static int tm_diff P_ ((struct tm *, struct tm *)); | 96 | static int tm_diff (struct tm *, struct tm *); |
| 97 | static void find_field P_ ((Lisp_Object, Lisp_Object, Lisp_Object, int *, Lisp_Object, int *)); | 97 | static void find_field (Lisp_Object, Lisp_Object, Lisp_Object, int *, Lisp_Object, int *); |
| 98 | static void update_buffer_properties P_ ((int, int)); | 98 | static void update_buffer_properties (int, int); |
| 99 | static Lisp_Object region_limit P_ ((int)); | 99 | static Lisp_Object region_limit (int); |
| 100 | int lisp_time_argument P_ ((Lisp_Object, time_t *, int *)); | 100 | int lisp_time_argument (Lisp_Object, time_t *, int *); |
| 101 | static size_t emacs_memftimeu P_ ((char *, size_t, const char *, | 101 | static size_t emacs_memftimeu (char *, size_t, const char *, |
| 102 | size_t, const struct tm *, int)); | 102 | size_t, const struct tm *, int); |
| 103 | static void general_insert_function (void (*) (const unsigned char *, EMACS_INT), | 103 | static void general_insert_function (void (*) (const unsigned char *, EMACS_INT), |
| 104 | void (*) (Lisp_Object, EMACS_INT, | 104 | void (*) (Lisp_Object, EMACS_INT, |
| 105 | EMACS_INT, EMACS_INT, | 105 | EMACS_INT, EMACS_INT, |
| 106 | EMACS_INT, int), | 106 | EMACS_INT, int), |
| 107 | int, int, Lisp_Object *); | 107 | int, int, Lisp_Object *); |
| 108 | static Lisp_Object subst_char_in_region_unwind P_ ((Lisp_Object)); | 108 | static Lisp_Object subst_char_in_region_unwind (Lisp_Object); |
| 109 | static Lisp_Object subst_char_in_region_unwind_1 P_ ((Lisp_Object)); | 109 | static Lisp_Object subst_char_in_region_unwind_1 (Lisp_Object); |
| 110 | static void transpose_markers P_ ((int, int, int, int, int, int, int, int)); | 110 | static void transpose_markers (int, int, int, int, int, int, int, int); |
| 111 | 111 | ||
| 112 | #ifdef HAVE_INDEX | 112 | #ifdef HAVE_INDEX |
| 113 | extern char *index P_ ((const char *, int)); | 113 | extern char *index (const char *, int); |
| 114 | #endif | 114 | #endif |
| 115 | 115 | ||
| 116 | Lisp_Object Vbuffer_access_fontify_functions; | 116 | Lisp_Object Vbuffer_access_fontify_functions; |
| 117 | Lisp_Object Qbuffer_access_fontify_functions; | 117 | Lisp_Object Qbuffer_access_fontify_functions; |
| 118 | Lisp_Object Vbuffer_access_fontified_property; | 118 | Lisp_Object Vbuffer_access_fontified_property; |
| 119 | 119 | ||
| 120 | Lisp_Object Fuser_full_name P_ ((Lisp_Object)); | 120 | Lisp_Object Fuser_full_name (Lisp_Object); |
| 121 | 121 | ||
| 122 | /* Non-nil means don't stop at field boundary in text motion commands. */ | 122 | /* Non-nil means don't stop at field boundary in text motion commands. */ |
| 123 | 123 | ||
| @@ -2953,7 +2953,7 @@ Both characters must have the same length of multi-byte form. */) | |||
| 2953 | } | 2953 | } |
| 2954 | 2954 | ||
| 2955 | 2955 | ||
| 2956 | static Lisp_Object check_translation P_ ((int, int, int, Lisp_Object)); | 2956 | static Lisp_Object check_translation (int, int, int, Lisp_Object); |
| 2957 | 2957 | ||
| 2958 | /* Helper function for Ftranslate_region_internal. | 2958 | /* Helper function for Ftranslate_region_internal. |
| 2959 | 2959 | ||
diff --git a/src/emacs.c b/src/emacs.c index 7e778e2e5fd..d31a5f16f74 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -90,10 +90,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 90 | const char emacs_copyright[] = "Copyright (C) 2010 Free Software Foundation, Inc."; | 90 | const char emacs_copyright[] = "Copyright (C) 2010 Free Software Foundation, Inc."; |
| 91 | const char emacs_version[] = "24.0.50"; | 91 | const char emacs_version[] = "24.0.50"; |
| 92 | 92 | ||
| 93 | extern void malloc_warning P_ ((char *)); | 93 | extern void malloc_warning (char *); |
| 94 | extern void set_time_zone_rule P_ ((char *)); | 94 | extern void set_time_zone_rule (char *); |
| 95 | #ifdef HAVE_INDEX | 95 | #ifdef HAVE_INDEX |
| 96 | extern char *index P_ ((const char *, int)); | 96 | extern char *index (const char *, int); |
| 97 | #endif | 97 | #endif |
| 98 | 98 | ||
| 99 | /* Make these values available in GDB, which doesn't see macros. */ | 99 | /* Make these values available in GDB, which doesn't see macros. */ |
| @@ -361,7 +361,7 @@ int fatal_error_in_progress; | |||
| 361 | /* If non-null, call this function from fatal_error_signal before | 361 | /* If non-null, call this function from fatal_error_signal before |
| 362 | committing suicide. */ | 362 | committing suicide. */ |
| 363 | 363 | ||
| 364 | void (*fatal_error_signal_hook) P_ ((void)); | 364 | void (*fatal_error_signal_hook) (void); |
| 365 | 365 | ||
| 366 | #ifdef FORWARD_SIGNAL_TO_MAIN_THREAD | 366 | #ifdef FORWARD_SIGNAL_TO_MAIN_THREAD |
| 367 | /* When compiled with GTK and running under Gnome, | 367 | /* When compiled with GTK and running under Gnome, |
| @@ -1202,7 +1202,7 @@ main (int argc, char **argv) | |||
| 1202 | #endif | 1202 | #endif |
| 1203 | #if defined (HAVE_GTK_AND_PTHREAD) && !defined (SYSTEM_MALLOC) && !defined (DOUG_LEA_MALLOC) | 1203 | #if defined (HAVE_GTK_AND_PTHREAD) && !defined (SYSTEM_MALLOC) && !defined (DOUG_LEA_MALLOC) |
| 1204 | { | 1204 | { |
| 1205 | extern void malloc_enable_thread P_ ((void)); | 1205 | extern void malloc_enable_thread (void); |
| 1206 | 1206 | ||
| 1207 | malloc_enable_thread (); | 1207 | malloc_enable_thread (); |
| 1208 | } | 1208 | } |
diff --git a/src/eval.c b/src/eval.c index 199c4705736..239ee40ab95 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -170,8 +170,8 @@ extern Lisp_Object Qrisky_local_variable; | |||
| 170 | 170 | ||
| 171 | extern Lisp_Object Qfunction; | 171 | extern Lisp_Object Qfunction; |
| 172 | 172 | ||
| 173 | static Lisp_Object funcall_lambda P_ ((Lisp_Object, int, Lisp_Object*)); | 173 | static Lisp_Object funcall_lambda (Lisp_Object, int, Lisp_Object*); |
| 174 | static void unwind_to_catch P_ ((struct catchtag *, Lisp_Object)) NO_RETURN; | 174 | static void unwind_to_catch (struct catchtag *, Lisp_Object) NO_RETURN; |
| 175 | 175 | ||
| 176 | #if __GNUC__ | 176 | #if __GNUC__ |
| 177 | /* "gcc -O3" enables automatic function inlining, which optimizes out | 177 | /* "gcc -O3" enables automatic function inlining, which optimizes out |
| @@ -1660,8 +1660,8 @@ internal_condition_case_n (Lisp_Object (*bfun) (int, Lisp_Object*), | |||
| 1660 | } | 1660 | } |
| 1661 | 1661 | ||
| 1662 | 1662 | ||
| 1663 | static Lisp_Object find_handler_clause P_ ((Lisp_Object, Lisp_Object, | 1663 | static Lisp_Object find_handler_clause (Lisp_Object, Lisp_Object, |
| 1664 | Lisp_Object, Lisp_Object)); | 1664 | Lisp_Object, Lisp_Object); |
| 1665 | 1665 | ||
| 1666 | DEFUN ("signal", Fsignal, Ssignal, 2, 2, 0, | 1666 | DEFUN ("signal", Fsignal, Ssignal, 2, 2, 0, |
| 1667 | doc: /* Signal an error. Args are ERROR-SYMBOL and associated DATA. | 1667 | doc: /* Signal an error. Args are ERROR-SYMBOL and associated DATA. |
| @@ -2574,8 +2574,8 @@ usage: (apply FUNCTION &rest ARGUMENTS) */) | |||
| 2574 | /* Run hook variables in various ways. */ | 2574 | /* Run hook variables in various ways. */ |
| 2575 | 2575 | ||
| 2576 | enum run_hooks_condition {to_completion, until_success, until_failure}; | 2576 | enum run_hooks_condition {to_completion, until_success, until_failure}; |
| 2577 | static Lisp_Object run_hook_with_args P_ ((int, Lisp_Object *, | 2577 | static Lisp_Object run_hook_with_args (int, Lisp_Object *, |
| 2578 | enum run_hooks_condition)); | 2578 | enum run_hooks_condition); |
| 2579 | 2579 | ||
| 2580 | DEFUN ("run-hooks", Frun_hooks, Srun_hooks, 0, MANY, 0, | 2580 | DEFUN ("run-hooks", Frun_hooks, Srun_hooks, 0, MANY, 0, |
| 2581 | doc: /* Run each hook in HOOKS. | 2581 | doc: /* Run each hook in HOOKS. |
| @@ -3424,7 +3424,7 @@ specbind (symbol, value) | |||
| 3424 | 3424 | ||
| 3425 | void | 3425 | void |
| 3426 | record_unwind_protect (function, arg) | 3426 | record_unwind_protect (function, arg) |
| 3427 | Lisp_Object (*function) P_ ((Lisp_Object)); | 3427 | Lisp_Object (*function) (Lisp_Object); |
| 3428 | Lisp_Object arg; | 3428 | Lisp_Object arg; |
| 3429 | { | 3429 | { |
| 3430 | eassert (!handling_signal); | 3430 | eassert (!handling_signal); |
diff --git a/src/fileio.c b/src/fileio.c index 8c2ee45c073..af477792ec8 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -240,9 +240,9 @@ Lisp_Object Qfile_name_history; | |||
| 240 | 240 | ||
| 241 | Lisp_Object Qcar_less_than_car; | 241 | Lisp_Object Qcar_less_than_car; |
| 242 | 242 | ||
| 243 | static int a_write P_ ((int, Lisp_Object, int, int, | 243 | static int a_write (int, Lisp_Object, int, int, |
| 244 | Lisp_Object *, struct coding_system *)); | 244 | Lisp_Object *, struct coding_system *); |
| 245 | static int e_write P_ ((int, Lisp_Object, int, int, struct coding_system *)); | 245 | static int e_write (int, Lisp_Object, int, int, struct coding_system *); |
| 246 | 246 | ||
| 247 | 247 | ||
| 248 | void | 248 | void |
| @@ -3101,7 +3101,7 @@ The value is an integer. */) | |||
| 3101 | return value; | 3101 | return value; |
| 3102 | } | 3102 | } |
| 3103 | 3103 | ||
| 3104 | extern int lisp_time_argument P_ ((Lisp_Object, time_t *, int *)); | 3104 | extern int lisp_time_argument (Lisp_Object, time_t *, int *); |
| 3105 | 3105 | ||
| 3106 | DEFUN ("set-file-times", Fset_file_times, Sset_file_times, 1, 2, 0, | 3106 | DEFUN ("set-file-times", Fset_file_times, Sset_file_times, 1, 2, 0, |
| 3107 | doc: /* Set times of file FILENAME to TIME. | 3107 | doc: /* Set times of file FILENAME to TIME. |
| @@ -4445,7 +4445,7 @@ variable `last-coding-system-used' to the coding system actually used. */) | |||
| 4445 | RETURN_UNGCPRO (unbind_to (count, val)); | 4445 | RETURN_UNGCPRO (unbind_to (count, val)); |
| 4446 | } | 4446 | } |
| 4447 | 4447 | ||
| 4448 | static Lisp_Object build_annotations P_ ((Lisp_Object, Lisp_Object)); | 4448 | static Lisp_Object build_annotations (Lisp_Object, Lisp_Object); |
| 4449 | 4449 | ||
| 4450 | static Lisp_Object | 4450 | static Lisp_Object |
| 4451 | build_annotations_unwind (arg) | 4451 | build_annotations_unwind (arg) |
diff --git a/src/filelock.c b/src/filelock.c index b11338c58b6..69e15a53846 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -122,7 +122,7 @@ static int boot_time_initialized; | |||
| 122 | extern Lisp_Object Vshell_file_name; | 122 | extern Lisp_Object Vshell_file_name; |
| 123 | 123 | ||
| 124 | #ifdef BOOT_TIME | 124 | #ifdef BOOT_TIME |
| 125 | static void get_boot_time_1 P_ ((char *, int)); | 125 | static void get_boot_time_1 (char *, int); |
| 126 | #endif | 126 | #endif |
| 127 | 127 | ||
| 128 | static time_t | 128 | static time_t |
| @@ -74,10 +74,10 @@ Lisp_Object Qcodeset, Qdays, Qmonths, Qpaper; | |||
| 74 | 74 | ||
| 75 | extern Lisp_Object Qinput_method_function; | 75 | extern Lisp_Object Qinput_method_function; |
| 76 | 76 | ||
| 77 | static int internal_equal P_ ((Lisp_Object , Lisp_Object, int, int)); | 77 | static int internal_equal (Lisp_Object , Lisp_Object, int, int); |
| 78 | 78 | ||
| 79 | extern long get_random (); | 79 | extern long get_random (); |
| 80 | extern void seed_random P_ ((long)); | 80 | extern void seed_random (long); |
| 81 | 81 | ||
| 82 | #ifndef HAVE_UNISTD_H | 82 | #ifndef HAVE_UNISTD_H |
| 83 | extern long time (); | 83 | extern long time (); |
| @@ -383,9 +383,9 @@ Symbols are also allowed; their print names are used instead. */) | |||
| 383 | /* "gcc -O3" enables automatic function inlining, which optimizes out | 383 | /* "gcc -O3" enables automatic function inlining, which optimizes out |
| 384 | the arguments for the invocations of this function, whereas it | 384 | the arguments for the invocations of this function, whereas it |
| 385 | expects these values on the stack. */ | 385 | expects these values on the stack. */ |
| 386 | static Lisp_Object concat P_ ((int nargs, Lisp_Object *args, enum Lisp_Type target_type, int last_special)) __attribute__((noinline)); | 386 | static Lisp_Object concat (int nargs, Lisp_Object *args, enum Lisp_Type target_type, int last_special) __attribute__((noinline)); |
| 387 | #else /* !__GNUC__ */ | 387 | #else /* !__GNUC__ */ |
| 388 | static Lisp_Object concat P_ ((int nargs, Lisp_Object *args, enum Lisp_Type target_type, int last_special)); | 388 | static Lisp_Object concat (int nargs, Lisp_Object *args, enum Lisp_Type target_type, int last_special); |
| 389 | #endif | 389 | #endif |
| 390 | 390 | ||
| 391 | /* ARGSUSED */ | 391 | /* ARGSUSED */ |
| @@ -3224,8 +3224,8 @@ static const short base64_char_to_value[128] = | |||
| 3224 | base64 characters. */ | 3224 | base64 characters. */ |
| 3225 | 3225 | ||
| 3226 | 3226 | ||
| 3227 | static int base64_encode_1 P_ ((const char *, char *, int, int, int)); | 3227 | static int base64_encode_1 (const char *, char *, int, int, int); |
| 3228 | static int base64_decode_1 P_ ((const char *, char *, int, int, int *)); | 3228 | static int base64_decode_1 (const char *, char *, int, int, int *); |
| 3229 | 3229 | ||
| 3230 | DEFUN ("base64-encode-region", Fbase64_encode_region, Sbase64_encode_region, | 3230 | DEFUN ("base64-encode-region", Fbase64_encode_region, Sbase64_encode_region, |
| 3231 | 2, 3, "r", | 3231 | 2, 3, "r", |
| @@ -3652,25 +3652,25 @@ Lisp_Object Qhash_table_test, Qkey_or_value, Qkey_and_value; | |||
| 3652 | 3652 | ||
| 3653 | /* Function prototypes. */ | 3653 | /* Function prototypes. */ |
| 3654 | 3654 | ||
| 3655 | static struct Lisp_Hash_Table *check_hash_table P_ ((Lisp_Object)); | 3655 | static struct Lisp_Hash_Table *check_hash_table (Lisp_Object); |
| 3656 | static int get_key_arg P_ ((Lisp_Object, int, Lisp_Object *, char *)); | 3656 | static int get_key_arg (Lisp_Object, int, Lisp_Object *, char *); |
| 3657 | static void maybe_resize_hash_table P_ ((struct Lisp_Hash_Table *)); | 3657 | static void maybe_resize_hash_table (struct Lisp_Hash_Table *); |
| 3658 | static int cmpfn_eql P_ ((struct Lisp_Hash_Table *, Lisp_Object, unsigned, | 3658 | static int cmpfn_eql (struct Lisp_Hash_Table *, Lisp_Object, unsigned, |
| 3659 | Lisp_Object, unsigned)); | 3659 | Lisp_Object, unsigned); |
| 3660 | static int cmpfn_equal P_ ((struct Lisp_Hash_Table *, Lisp_Object, unsigned, | 3660 | static int cmpfn_equal (struct Lisp_Hash_Table *, Lisp_Object, unsigned, |
| 3661 | Lisp_Object, unsigned)); | 3661 | Lisp_Object, unsigned); |
| 3662 | static int cmpfn_user_defined P_ ((struct Lisp_Hash_Table *, Lisp_Object, | 3662 | static int cmpfn_user_defined (struct Lisp_Hash_Table *, Lisp_Object, |
| 3663 | unsigned, Lisp_Object, unsigned)); | 3663 | unsigned, Lisp_Object, unsigned); |
| 3664 | static unsigned hashfn_eq P_ ((struct Lisp_Hash_Table *, Lisp_Object)); | 3664 | static unsigned hashfn_eq (struct Lisp_Hash_Table *, Lisp_Object); |
| 3665 | static unsigned hashfn_eql P_ ((struct Lisp_Hash_Table *, Lisp_Object)); | 3665 | static unsigned hashfn_eql (struct Lisp_Hash_Table *, Lisp_Object); |
| 3666 | static unsigned hashfn_equal P_ ((struct Lisp_Hash_Table *, Lisp_Object)); | 3666 | static unsigned hashfn_equal (struct Lisp_Hash_Table *, Lisp_Object); |
| 3667 | static unsigned hashfn_user_defined P_ ((struct Lisp_Hash_Table *, | 3667 | static unsigned hashfn_user_defined (struct Lisp_Hash_Table *, |
| 3668 | Lisp_Object)); | 3668 | Lisp_Object); |
| 3669 | static unsigned sxhash_string P_ ((unsigned char *, int)); | 3669 | static unsigned sxhash_string (unsigned char *, int); |
| 3670 | static unsigned sxhash_list P_ ((Lisp_Object, int)); | 3670 | static unsigned sxhash_list (Lisp_Object, int); |
| 3671 | static unsigned sxhash_vector P_ ((Lisp_Object, int)); | 3671 | static unsigned sxhash_vector (Lisp_Object, int); |
| 3672 | static unsigned sxhash_bool_vector P_ ((Lisp_Object)); | 3672 | static unsigned sxhash_bool_vector (Lisp_Object); |
| 3673 | static int sweep_weak_table P_ ((struct Lisp_Hash_Table *, int)); | 3673 | static int sweep_weak_table (struct Lisp_Hash_Table *, int); |
| 3674 | 3674 | ||
| 3675 | 3675 | ||
| 3676 | 3676 | ||
diff --git a/src/font.c b/src/font.c index f9c2381fa70..b92b44a38bc 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -229,10 +229,10 @@ font_make_object (size, entity, pixelsize) | |||
| 229 | 229 | ||
| 230 | 230 | ||
| 231 | 231 | ||
| 232 | static int font_pixel_size P_ ((FRAME_PTR f, Lisp_Object)); | 232 | static int font_pixel_size (FRAME_PTR f, Lisp_Object); |
| 233 | static Lisp_Object font_open_entity P_ ((FRAME_PTR, Lisp_Object, int)); | 233 | static Lisp_Object font_open_entity (FRAME_PTR, Lisp_Object, int); |
| 234 | static Lisp_Object font_matching_entity P_ ((FRAME_PTR, Lisp_Object *, | 234 | static Lisp_Object font_matching_entity (FRAME_PTR, Lisp_Object *, |
| 235 | Lisp_Object)); | 235 | Lisp_Object); |
| 236 | 236 | ||
| 237 | /* Number of registered font drivers. */ | 237 | /* Number of registered font drivers. */ |
| 238 | static int num_font_drivers; | 238 | static int num_font_drivers; |
| @@ -416,7 +416,7 @@ font_style_symbolic (font, prop, for_face) | |||
| 416 | 416 | ||
| 417 | extern Lisp_Object Vface_alternative_font_family_alist; | 417 | extern Lisp_Object Vface_alternative_font_family_alist; |
| 418 | 418 | ||
| 419 | extern Lisp_Object find_font_encoding P_ ((Lisp_Object)); | 419 | extern Lisp_Object find_font_encoding (Lisp_Object); |
| 420 | 420 | ||
| 421 | 421 | ||
| 422 | /* Return ENCODING or a cons of ENCODING and REPERTORY of the font | 422 | /* Return ENCODING or a cons of ENCODING and REPERTORY of the font |
| @@ -508,12 +508,12 @@ font_registry_charsets (registry, encoding, repertory) | |||
| 508 | /* Font property value validaters. See the comment of | 508 | /* Font property value validaters. See the comment of |
| 509 | font_property_table for the meaning of the arguments. */ | 509 | font_property_table for the meaning of the arguments. */ |
| 510 | 510 | ||
| 511 | static Lisp_Object font_prop_validate P_ ((int, Lisp_Object, Lisp_Object)); | 511 | static Lisp_Object font_prop_validate (int, Lisp_Object, Lisp_Object); |
| 512 | static Lisp_Object font_prop_validate_symbol P_ ((Lisp_Object, Lisp_Object)); | 512 | static Lisp_Object font_prop_validate_symbol (Lisp_Object, Lisp_Object); |
| 513 | static Lisp_Object font_prop_validate_style P_ ((Lisp_Object, Lisp_Object)); | 513 | static Lisp_Object font_prop_validate_style (Lisp_Object, Lisp_Object); |
| 514 | static Lisp_Object font_prop_validate_non_neg P_ ((Lisp_Object, Lisp_Object)); | 514 | static Lisp_Object font_prop_validate_non_neg (Lisp_Object, Lisp_Object); |
| 515 | static Lisp_Object font_prop_validate_spacing P_ ((Lisp_Object, Lisp_Object)); | 515 | static Lisp_Object font_prop_validate_spacing (Lisp_Object, Lisp_Object); |
| 516 | static int get_font_prop_index P_ ((Lisp_Object)); | 516 | static int get_font_prop_index (Lisp_Object); |
| 517 | 517 | ||
| 518 | static Lisp_Object | 518 | static Lisp_Object |
| 519 | font_prop_validate_symbol (prop, val) | 519 | font_prop_validate_symbol (prop, val) |
| @@ -638,7 +638,7 @@ struct | |||
| 638 | /* Function to validate PROP's value VAL, or NULL if any value is | 638 | /* Function to validate PROP's value VAL, or NULL if any value is |
| 639 | ok. The value is VAL or its regularized value if VAL is valid, | 639 | ok. The value is VAL or its regularized value if VAL is valid, |
| 640 | and Qerror if not. */ | 640 | and Qerror if not. */ |
| 641 | Lisp_Object (*validater) P_ ((Lisp_Object prop, Lisp_Object val)); | 641 | Lisp_Object (*validater) (Lisp_Object prop, Lisp_Object val); |
| 642 | } font_property_table[] = | 642 | } font_property_table[] = |
| 643 | { { &QCtype, font_prop_validate_symbol }, | 643 | { { &QCtype, font_prop_validate_symbol }, |
| 644 | { &QCfoundry, font_prop_validate_symbol }, | 644 | { &QCfoundry, font_prop_validate_symbol }, |
| @@ -740,9 +740,9 @@ font_put_extra (font, prop, val) | |||
| 740 | 740 | ||
| 741 | /* Font name parser and unparser */ | 741 | /* Font name parser and unparser */ |
| 742 | 742 | ||
| 743 | static int parse_matrix P_ ((char *)); | 743 | static int parse_matrix (char *); |
| 744 | static int font_expand_wildcards P_ ((Lisp_Object *, int)); | 744 | static int font_expand_wildcards (Lisp_Object *, int); |
| 745 | static int font_parse_name P_ ((char *, Lisp_Object)); | 745 | static int font_parse_name (char *, Lisp_Object); |
| 746 | 746 | ||
| 747 | /* An enumerator for each field of an XLFD font name. */ | 747 | /* An enumerator for each field of an XLFD font name. */ |
| 748 | enum xlfd_field_index | 748 | enum xlfd_field_index |
| @@ -2220,10 +2220,10 @@ font_otf_Anchor (anchor) | |||
| 2220 | 2220 | ||
| 2221 | /* Font sorting */ | 2221 | /* Font sorting */ |
| 2222 | 2222 | ||
| 2223 | static unsigned font_score P_ ((Lisp_Object, Lisp_Object *)); | 2223 | static unsigned font_score (Lisp_Object, Lisp_Object *); |
| 2224 | static int font_compare P_ ((const void *, const void *)); | 2224 | static int font_compare (const void *, const void *); |
| 2225 | static Lisp_Object font_sort_entities P_ ((Lisp_Object, Lisp_Object, | 2225 | static Lisp_Object font_sort_entities (Lisp_Object, Lisp_Object, |
| 2226 | Lisp_Object, int)); | 2226 | Lisp_Object, int); |
| 2227 | 2227 | ||
| 2228 | /* Return a rescaling ratio of FONT_ENTITY. */ | 2228 | /* Return a rescaling ratio of FONT_ENTITY. */ |
| 2229 | extern Lisp_Object Vface_font_rescale_alist; | 2229 | extern Lisp_Object Vface_font_rescale_alist; |
| @@ -2701,11 +2701,11 @@ font_match_p (spec, font) | |||
| 2701 | is a number frames sharing this cache, and FONT-CACHE-DATA is a | 2701 | is a number frames sharing this cache, and FONT-CACHE-DATA is a |
| 2702 | cons (FONT-SPEC FONT-ENTITY ...). */ | 2702 | cons (FONT-SPEC FONT-ENTITY ...). */ |
| 2703 | 2703 | ||
| 2704 | static void font_prepare_cache P_ ((FRAME_PTR, struct font_driver *)); | 2704 | static void font_prepare_cache (FRAME_PTR, struct font_driver *); |
| 2705 | static void font_finish_cache P_ ((FRAME_PTR, struct font_driver *)); | 2705 | static void font_finish_cache (FRAME_PTR, struct font_driver *); |
| 2706 | static Lisp_Object font_get_cache P_ ((FRAME_PTR, struct font_driver *)); | 2706 | static Lisp_Object font_get_cache (FRAME_PTR, struct font_driver *); |
| 2707 | static void font_clear_cache P_ ((FRAME_PTR, Lisp_Object, | 2707 | static void font_clear_cache (FRAME_PTR, Lisp_Object, |
| 2708 | struct font_driver *)); | 2708 | struct font_driver *); |
| 2709 | 2709 | ||
| 2710 | static void | 2710 | static void |
| 2711 | font_prepare_cache (f, driver) | 2711 | font_prepare_cache (f, driver) |
| @@ -5249,14 +5249,14 @@ font_deferred_log (action, arg, result) | |||
| 5249 | ASET (Vfont_log_deferred, 2, result); | 5249 | ASET (Vfont_log_deferred, 2, result); |
| 5250 | } | 5250 | } |
| 5251 | 5251 | ||
| 5252 | extern void syms_of_ftfont P_ (()); | 5252 | extern void syms_of_ftfont (); |
| 5253 | extern void syms_of_xfont P_ (()); | 5253 | extern void syms_of_xfont (); |
| 5254 | extern void syms_of_xftfont P_ (()); | 5254 | extern void syms_of_xftfont (); |
| 5255 | extern void syms_of_ftxfont P_ (()); | 5255 | extern void syms_of_ftxfont (); |
| 5256 | extern void syms_of_bdffont P_ (()); | 5256 | extern void syms_of_bdffont (); |
| 5257 | extern void syms_of_w32font P_ (()); | 5257 | extern void syms_of_w32font (); |
| 5258 | extern void syms_of_atmfont P_ (()); | 5258 | extern void syms_of_atmfont (); |
| 5259 | extern void syms_of_nsfont P_ (()); | 5259 | extern void syms_of_nsfont (); |
| 5260 | 5260 | ||
| 5261 | void | 5261 | void |
| 5262 | syms_of_font () | 5262 | syms_of_font () |
diff --git a/src/fontset.c b/src/fontset.c index e4fd9d72780..84035838552 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -203,23 +203,23 @@ Lisp_Object Vvertical_centering_font_regexp; | |||
| 203 | Lisp_Object Votf_script_alist; | 203 | Lisp_Object Votf_script_alist; |
| 204 | 204 | ||
| 205 | /* Check if any window system is used now. */ | 205 | /* Check if any window system is used now. */ |
| 206 | void (*check_window_system_func) P_ ((void)); | 206 | void (*check_window_system_func) (void); |
| 207 | 207 | ||
| 208 | 208 | ||
| 209 | /* Prototype declarations for static functions. */ | 209 | /* Prototype declarations for static functions. */ |
| 210 | static Lisp_Object fontset_add P_ ((Lisp_Object, Lisp_Object, Lisp_Object, | 210 | static Lisp_Object fontset_add (Lisp_Object, Lisp_Object, Lisp_Object, |
| 211 | Lisp_Object)); | 211 | Lisp_Object); |
| 212 | static Lisp_Object fontset_find_font P_ ((Lisp_Object, int, struct face *, | 212 | static Lisp_Object fontset_find_font (Lisp_Object, int, struct face *, |
| 213 | int, int)); | 213 | int, int); |
| 214 | static void reorder_font_vector P_ ((Lisp_Object, struct font *)); | 214 | static void reorder_font_vector (Lisp_Object, struct font *); |
| 215 | static Lisp_Object fontset_font P_ ((Lisp_Object, int, struct face *, int)); | 215 | static Lisp_Object fontset_font (Lisp_Object, int, struct face *, int); |
| 216 | static Lisp_Object make_fontset P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); | 216 | static Lisp_Object make_fontset (Lisp_Object, Lisp_Object, Lisp_Object); |
| 217 | static Lisp_Object fontset_pattern_regexp P_ ((Lisp_Object)); | 217 | static Lisp_Object fontset_pattern_regexp (Lisp_Object); |
| 218 | static void accumulate_script_ranges P_ ((Lisp_Object, Lisp_Object, | 218 | static void accumulate_script_ranges (Lisp_Object, Lisp_Object, |
| 219 | Lisp_Object)); | 219 | Lisp_Object); |
| 220 | Lisp_Object find_font_encoding P_ ((Lisp_Object)); | 220 | Lisp_Object find_font_encoding (Lisp_Object); |
| 221 | 221 | ||
| 222 | static void set_fontset_font P_ ((Lisp_Object, Lisp_Object)); | 222 | static void set_fontset_font (Lisp_Object, Lisp_Object); |
| 223 | 223 | ||
| 224 | #ifdef FONTSET_DEBUG | 224 | #ifdef FONTSET_DEBUG |
| 225 | 225 | ||
| @@ -1440,7 +1440,7 @@ set_fontset_font (arg, range) | |||
| 1440 | } | 1440 | } |
| 1441 | 1441 | ||
| 1442 | extern Lisp_Object QCfamily, QCregistry; | 1442 | extern Lisp_Object QCfamily, QCregistry; |
| 1443 | static void update_auto_fontset_alist P_ ((Lisp_Object, Lisp_Object)); | 1443 | static void update_auto_fontset_alist (Lisp_Object, Lisp_Object); |
| 1444 | 1444 | ||
| 1445 | 1445 | ||
| 1446 | DEFUN ("set-fontset-font", Fset_fontset_font, Sset_fontset_font, 3, 5, 0, | 1446 | DEFUN ("set-fontset-font", Fset_fontset_font, Sset_fontset_font, 3, 5, 0, |
diff --git a/src/frame.c b/src/frame.c index c323c61be69..3199d35004e 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1823,7 +1823,7 @@ before calling this function on it, like this. | |||
| 1823 | return Qnil; | 1823 | return Qnil; |
| 1824 | } | 1824 | } |
| 1825 | 1825 | ||
| 1826 | static void make_frame_visible_1 P_ ((Lisp_Object)); | 1826 | static void make_frame_visible_1 (Lisp_Object); |
| 1827 | 1827 | ||
| 1828 | DEFUN ("make-frame-visible", Fmake_frame_visible, Smake_frame_visible, | 1828 | DEFUN ("make-frame-visible", Fmake_frame_visible, Smake_frame_visible, |
| 1829 | 0, 1, "", | 1829 | 0, 1, "", |
| @@ -3824,8 +3824,8 @@ validate_x_resource_name () | |||
| 3824 | } | 3824 | } |
| 3825 | 3825 | ||
| 3826 | 3826 | ||
| 3827 | extern char *x_get_string_resource P_ ((XrmDatabase, char *, char *)); | 3827 | extern char *x_get_string_resource (XrmDatabase, char *, char *); |
| 3828 | extern Display_Info *check_x_display_info P_ ((Lisp_Object)); | 3828 | extern Display_Info *check_x_display_info (Lisp_Object); |
| 3829 | 3829 | ||
| 3830 | 3830 | ||
| 3831 | /* Get specified attribute from resource database RDB. | 3831 | /* Get specified attribute from resource database RDB. |
diff --git a/src/ftfont.c b/src/ftfont.c index 33a96143fd0..a75296cc7b7 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -80,16 +80,16 @@ enum ftfont_cache_for | |||
| 80 | FTFONT_CACHE_FOR_ENTITY | 80 | FTFONT_CACHE_FOR_ENTITY |
| 81 | }; | 81 | }; |
| 82 | 82 | ||
| 83 | static Lisp_Object ftfont_pattern_entity P_ ((FcPattern *, Lisp_Object)); | 83 | static Lisp_Object ftfont_pattern_entity (FcPattern *, Lisp_Object); |
| 84 | 84 | ||
| 85 | static Lisp_Object ftfont_resolve_generic_family P_ ((Lisp_Object, | 85 | static Lisp_Object ftfont_resolve_generic_family (Lisp_Object, |
| 86 | FcPattern *)); | 86 | FcPattern *); |
| 87 | static Lisp_Object ftfont_lookup_cache P_ ((Lisp_Object, | 87 | static Lisp_Object ftfont_lookup_cache (Lisp_Object, |
| 88 | enum ftfont_cache_for)); | 88 | enum ftfont_cache_for); |
| 89 | 89 | ||
| 90 | static void ftfont_filter_properties P_ ((Lisp_Object font, Lisp_Object alist)); | 90 | static void ftfont_filter_properties (Lisp_Object font, Lisp_Object alist); |
| 91 | 91 | ||
| 92 | Lisp_Object ftfont_font_format P_ ((FcPattern *, Lisp_Object)); | 92 | Lisp_Object ftfont_font_format (FcPattern *, Lisp_Object); |
| 93 | 93 | ||
| 94 | #define SYMBOL_FcChar8(SYM) (FcChar8 *) SDATA (SYMBOL_NAME (SYM)) | 94 | #define SYMBOL_FcChar8(SYM) (FcChar8 *) SDATA (SYMBOL_NAME (SYM)) |
| 95 | 95 | ||
| @@ -486,26 +486,26 @@ ftfont_get_otf (ftfont_info) | |||
| 486 | } | 486 | } |
| 487 | #endif /* HAVE_LIBOTF */ | 487 | #endif /* HAVE_LIBOTF */ |
| 488 | 488 | ||
| 489 | static Lisp_Object ftfont_get_cache P_ ((FRAME_PTR)); | 489 | static Lisp_Object ftfont_get_cache (FRAME_PTR); |
| 490 | static Lisp_Object ftfont_list P_ ((Lisp_Object, Lisp_Object)); | 490 | static Lisp_Object ftfont_list (Lisp_Object, Lisp_Object); |
| 491 | static Lisp_Object ftfont_match P_ ((Lisp_Object, Lisp_Object)); | 491 | static Lisp_Object ftfont_match (Lisp_Object, Lisp_Object); |
| 492 | static Lisp_Object ftfont_list_family P_ ((Lisp_Object)); | 492 | static Lisp_Object ftfont_list_family (Lisp_Object); |
| 493 | static Lisp_Object ftfont_open P_ ((FRAME_PTR, Lisp_Object, int)); | 493 | static Lisp_Object ftfont_open (FRAME_PTR, Lisp_Object, int); |
| 494 | static void ftfont_close P_ ((FRAME_PTR, struct font *)); | 494 | static void ftfont_close (FRAME_PTR, struct font *); |
| 495 | static int ftfont_has_char P_ ((Lisp_Object, int)); | 495 | static int ftfont_has_char (Lisp_Object, int); |
| 496 | static unsigned ftfont_encode_char P_ ((struct font *, int)); | 496 | static unsigned ftfont_encode_char (struct font *, int); |
| 497 | static int ftfont_text_extents P_ ((struct font *, unsigned *, int, | 497 | static int ftfont_text_extents (struct font *, unsigned *, int, |
| 498 | struct font_metrics *)); | 498 | struct font_metrics *); |
| 499 | static int ftfont_get_bitmap P_ ((struct font *, unsigned, | 499 | static int ftfont_get_bitmap (struct font *, unsigned, |
| 500 | struct font_bitmap *, int)); | 500 | struct font_bitmap *, int); |
| 501 | static int ftfont_anchor_point P_ ((struct font *, unsigned, int, | 501 | static int ftfont_anchor_point (struct font *, unsigned, int, |
| 502 | int *, int *)); | 502 | int *, int *); |
| 503 | static Lisp_Object ftfont_otf_capability P_ ((struct font *)); | 503 | static Lisp_Object ftfont_otf_capability (struct font *); |
| 504 | static Lisp_Object ftfont_shape P_ ((Lisp_Object)); | 504 | static Lisp_Object ftfont_shape (Lisp_Object); |
| 505 | 505 | ||
| 506 | #ifdef HAVE_OTF_GET_VARIATION_GLYPHS | 506 | #ifdef HAVE_OTF_GET_VARIATION_GLYPHS |
| 507 | static int ftfont_variation_glyphs P_ ((struct font *, int c, | 507 | static int ftfont_variation_glyphs (struct font *, int c, |
| 508 | unsigned variations[256])); | 508 | unsigned variations[256]); |
| 509 | #endif /* HAVE_OTF_GET_VARIATION_GLYPHS */ | 509 | #endif /* HAVE_OTF_GET_VARIATION_GLYPHS */ |
| 510 | 510 | ||
| 511 | struct font_driver ftfont_driver = | 511 | struct font_driver ftfont_driver = |
| @@ -705,9 +705,9 @@ ftfont_get_open_type_spec (Lisp_Object otf_spec) | |||
| 705 | return spec; | 705 | return spec; |
| 706 | } | 706 | } |
| 707 | 707 | ||
| 708 | static FcPattern *ftfont_spec_pattern P_ ((Lisp_Object, char *, | 708 | static FcPattern *ftfont_spec_pattern (Lisp_Object, char *, |
| 709 | struct OpenTypeSpec **, | 709 | struct OpenTypeSpec **, |
| 710 | char **langname)); | 710 | char **langname); |
| 711 | 711 | ||
| 712 | static FcPattern * | 712 | static FcPattern * |
| 713 | ftfont_spec_pattern (spec, otlayout, otspec, langname) | 713 | ftfont_spec_pattern (spec, otlayout, otspec, langname) |
diff --git a/src/ftxfont.c b/src/ftxfont.c index 847522a2f9c..e81a5380045 100644 --- a/src/ftxfont.c +++ b/src/ftxfont.c | |||
| @@ -39,12 +39,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 39 | static Lisp_Object Qftx; | 39 | static Lisp_Object Qftx; |
| 40 | 40 | ||
| 41 | /* Prototypes for helper function. */ | 41 | /* Prototypes for helper function. */ |
| 42 | static GC *ftxfont_get_gcs P_ ((FRAME_PTR, unsigned long, unsigned long)); | 42 | static GC *ftxfont_get_gcs (FRAME_PTR, unsigned long, unsigned long); |
| 43 | static int ftxfont_draw_bitmap P_ ((FRAME_PTR, GC, GC *, struct font *, | 43 | static int ftxfont_draw_bitmap (FRAME_PTR, GC, GC *, struct font *, |
| 44 | unsigned, int, int, XPoint *, int, int *, | 44 | unsigned, int, int, XPoint *, int, int *, |
| 45 | int)); | 45 | int); |
| 46 | static void ftxfont_draw_backgrond P_ ((FRAME_PTR, struct font *, GC, | 46 | static void ftxfont_draw_backgrond (FRAME_PTR, struct font *, GC, |
| 47 | int, int, int)); | 47 | int, int, int); |
| 48 | 48 | ||
| 49 | struct ftxfont_frame_data | 49 | struct ftxfont_frame_data |
| 50 | { | 50 | { |
| @@ -241,11 +241,11 @@ ftxfont_draw_backgrond (f, font, gc, x, y, width) | |||
| 241 | } | 241 | } |
| 242 | 242 | ||
| 243 | /* Prototypes for font-driver methods. */ | 243 | /* Prototypes for font-driver methods. */ |
| 244 | static Lisp_Object ftxfont_list P_ ((Lisp_Object, Lisp_Object)); | 244 | static Lisp_Object ftxfont_list (Lisp_Object, Lisp_Object); |
| 245 | static Lisp_Object ftxfont_match P_ ((Lisp_Object, Lisp_Object)); | 245 | static Lisp_Object ftxfont_match (Lisp_Object, Lisp_Object); |
| 246 | static Lisp_Object ftxfont_open P_ ((FRAME_PTR, Lisp_Object, int)); | 246 | static Lisp_Object ftxfont_open (FRAME_PTR, Lisp_Object, int); |
| 247 | static void ftxfont_close P_ ((FRAME_PTR, struct font *)); | 247 | static void ftxfont_close (FRAME_PTR, struct font *); |
| 248 | static int ftxfont_draw P_ ((struct glyph_string *, int, int, int, int, int)); | 248 | static int ftxfont_draw (struct glyph_string *, int, int, int, int, int); |
| 249 | 249 | ||
| 250 | struct font_driver ftxfont_driver; | 250 | struct font_driver ftxfont_driver; |
| 251 | 251 | ||
diff --git a/src/gmalloc.c b/src/gmalloc.c index a3f533bd5e8..8314798b171 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c | |||
| @@ -1969,12 +1969,12 @@ Fifth Floor, Boston, MA 02110-1301, USA. | |||
| 1969 | #endif | 1969 | #endif |
| 1970 | 1970 | ||
| 1971 | /* Old hook values. */ | 1971 | /* Old hook values. */ |
| 1972 | static void (*old_free_hook) __P ((__ptr_t ptr)); | 1972 | static void (*old_free_hook) (__ptr_t ptr); |
| 1973 | static __ptr_t (*old_malloc_hook) __P ((__malloc_size_t size)); | 1973 | static __ptr_t (*old_malloc_hook) (__malloc_size_t size); |
| 1974 | static __ptr_t (*old_realloc_hook) __P ((__ptr_t ptr, __malloc_size_t size)); | 1974 | static __ptr_t (*old_realloc_hook) (__ptr_t ptr, __malloc_size_t size); |
| 1975 | 1975 | ||
| 1976 | /* Function to call when something awful happens. */ | 1976 | /* Function to call when something awful happens. */ |
| 1977 | static void (*abortfunc) __P ((enum mcheck_status)); | 1977 | static void (*abortfunc) (enum mcheck_status); |
| 1978 | 1978 | ||
| 1979 | /* Arbitrary magical numbers. */ | 1979 | /* Arbitrary magical numbers. */ |
| 1980 | #define MAGICWORD 0xfedabeeb | 1980 | #define MAGICWORD 0xfedabeeb |
| @@ -1992,7 +1992,7 @@ struct hdr | |||
| 1992 | #if defined(_LIBC) || defined(STDC_HEADERS) || defined(USG) | 1992 | #if defined(_LIBC) || defined(STDC_HEADERS) || defined(USG) |
| 1993 | #define flood memset | 1993 | #define flood memset |
| 1994 | #else | 1994 | #else |
| 1995 | static void flood __P ((__ptr_t, int, __malloc_size_t)); | 1995 | static void flood (__ptr_t, int, __malloc_size_t); |
| 1996 | static void | 1996 | static void |
| 1997 | flood (ptr, val, size) | 1997 | flood (ptr, val, size) |
| 1998 | __ptr_t ptr; | 1998 | __ptr_t ptr; |
| @@ -2005,7 +2005,7 @@ flood (ptr, val, size) | |||
| 2005 | } | 2005 | } |
| 2006 | #endif | 2006 | #endif |
| 2007 | 2007 | ||
| 2008 | static enum mcheck_status checkhdr __P ((const struct hdr *)); | 2008 | static enum mcheck_status checkhdr (const struct hdr *); |
| 2009 | static enum mcheck_status | 2009 | static enum mcheck_status |
| 2010 | checkhdr (hdr) | 2010 | checkhdr (hdr) |
| 2011 | const struct hdr *hdr; | 2011 | const struct hdr *hdr; |
| @@ -2031,7 +2031,7 @@ checkhdr (hdr) | |||
| 2031 | return status; | 2031 | return status; |
| 2032 | } | 2032 | } |
| 2033 | 2033 | ||
| 2034 | static void freehook __P ((__ptr_t)); | 2034 | static void freehook (__ptr_t); |
| 2035 | static void | 2035 | static void |
| 2036 | freehook (ptr) | 2036 | freehook (ptr) |
| 2037 | __ptr_t ptr; | 2037 | __ptr_t ptr; |
| @@ -2053,7 +2053,7 @@ freehook (ptr) | |||
| 2053 | __free_hook = freehook; | 2053 | __free_hook = freehook; |
| 2054 | } | 2054 | } |
| 2055 | 2055 | ||
| 2056 | static __ptr_t mallochook __P ((__malloc_size_t)); | 2056 | static __ptr_t mallochook (__malloc_size_t); |
| 2057 | static __ptr_t | 2057 | static __ptr_t |
| 2058 | mallochook (size) | 2058 | mallochook (size) |
| 2059 | __malloc_size_t size; | 2059 | __malloc_size_t size; |
| @@ -2073,7 +2073,7 @@ mallochook (size) | |||
| 2073 | return (__ptr_t) (hdr + 1); | 2073 | return (__ptr_t) (hdr + 1); |
| 2074 | } | 2074 | } |
| 2075 | 2075 | ||
| 2076 | static __ptr_t reallochook __P ((__ptr_t, __malloc_size_t)); | 2076 | static __ptr_t reallochook (__ptr_t, __malloc_size_t); |
| 2077 | static __ptr_t | 2077 | static __ptr_t |
| 2078 | reallochook (ptr, size) | 2078 | reallochook (ptr, size) |
| 2079 | __ptr_t ptr; | 2079 | __ptr_t ptr; |
| @@ -2146,7 +2146,7 @@ static int mcheck_used = 0; | |||
| 2146 | 2146 | ||
| 2147 | int | 2147 | int |
| 2148 | mcheck (func) | 2148 | mcheck (func) |
| 2149 | void (*func) __P ((enum mcheck_status)); | 2149 | void (*func) (enum mcheck_status); |
| 2150 | { | 2150 | { |
| 2151 | abortfunc = (func != NULL) ? func : &mabort; | 2151 | abortfunc = (func != NULL) ? func : &mabort; |
| 2152 | 2152 | ||
diff --git a/src/gtkutil.c b/src/gtkutil.c index 6a75aa473e3..63de2b02fe5 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -1319,7 +1319,7 @@ xg_uses_old_file_dialog () | |||
| 1319 | } | 1319 | } |
| 1320 | 1320 | ||
| 1321 | 1321 | ||
| 1322 | typedef char * (*xg_get_file_func) P_ ((GtkWidget *)); | 1322 | typedef char * (*xg_get_file_func) (GtkWidget *); |
| 1323 | 1323 | ||
| 1324 | /* Return the selected file for file chooser dialog W. | 1324 | /* Return the selected file for file chooser dialog W. |
| 1325 | The returned string must be free:d. */ | 1325 | The returned string must be free:d. */ |
| @@ -2087,9 +2087,9 @@ xg_create_one_menuitem (item, f, select_cb, highlight_cb, cl_data, group) | |||
| 2087 | return w; | 2087 | return w; |
| 2088 | } | 2088 | } |
| 2089 | 2089 | ||
| 2090 | static GtkWidget *create_menus P_ ((widget_value *, FRAME_PTR, GCallback, | 2090 | static GtkWidget *create_menus (widget_value *, FRAME_PTR, GCallback, |
| 2091 | GCallback, GCallback, int, int, int, | 2091 | GCallback, GCallback, int, int, int, |
| 2092 | GtkWidget *, xg_menu_cb_data *, char *)); | 2092 | GtkWidget *, xg_menu_cb_data *, char *); |
| 2093 | 2093 | ||
| 2094 | /* Create a full menu tree specified by DATA. | 2094 | /* Create a full menu tree specified by DATA. |
| 2095 | F is the frame the created menu belongs to. | 2095 | F is the frame the created menu belongs to. |
| @@ -3466,9 +3466,9 @@ xg_tool_bar_proxy_callback (w, client_data) | |||
| 3466 | 3466 | ||
| 3467 | 3467 | ||
| 3468 | static gboolean | 3468 | static gboolean |
| 3469 | xg_tool_bar_help_callback P_ ((GtkWidget *w, | 3469 | xg_tool_bar_help_callback (GtkWidget *w, |
| 3470 | GdkEventCrossing *event, | 3470 | GdkEventCrossing *event, |
| 3471 | gpointer client_data)); | 3471 | gpointer client_data); |
| 3472 | 3472 | ||
| 3473 | /* This callback is called when a help is to be shown for an item in | 3473 | /* This callback is called when a help is to be shown for an item in |
| 3474 | the detached tool bar when the detached tool bar it is not expanded. */ | 3474 | the detached tool bar when the detached tool bar it is not expanded. */ |
diff --git a/src/image.c b/src/image.c index b9620e10948..821246eac03 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -127,16 +127,16 @@ typedef struct ns_bitmap_record Bitmap_Record; | |||
| 127 | Lisp_Object Vx_bitmap_file_path; | 127 | Lisp_Object Vx_bitmap_file_path; |
| 128 | 128 | ||
| 129 | 129 | ||
| 130 | static void x_disable_image P_ ((struct frame *, struct image *)); | 130 | static void x_disable_image (struct frame *, struct image *); |
| 131 | static void x_edge_detection P_ ((struct frame *, struct image *, Lisp_Object, | 131 | static void x_edge_detection (struct frame *, struct image *, Lisp_Object, |
| 132 | Lisp_Object)); | 132 | Lisp_Object); |
| 133 | 133 | ||
| 134 | static void init_color_table P_ ((void)); | 134 | static void init_color_table (void); |
| 135 | static unsigned long lookup_rgb_color P_ ((struct frame *f, int r, int g, int b)); | 135 | static unsigned long lookup_rgb_color (struct frame *f, int r, int g, int b); |
| 136 | #ifdef COLOR_TABLE_SUPPORT | 136 | #ifdef COLOR_TABLE_SUPPORT |
| 137 | static void free_color_table P_ ((void)); | 137 | static void free_color_table (void); |
| 138 | static unsigned long *colors_in_color_table P_ ((int *n)); | 138 | static unsigned long *colors_in_color_table (int *n); |
| 139 | static unsigned long lookup_pixel_color P_ ((struct frame *f, unsigned long p)); | 139 | static unsigned long lookup_pixel_color (struct frame *f, unsigned long p); |
| 140 | #endif | 140 | #endif |
| 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 |
| @@ -471,16 +471,16 @@ x_destroy_all_bitmaps (dpyinfo) | |||
| 471 | /* Useful functions defined in the section | 471 | /* Useful functions defined in the section |
| 472 | `Image type independent image structures' below. */ | 472 | `Image type independent image structures' below. */ |
| 473 | 473 | ||
| 474 | static unsigned long four_corners_best P_ ((XImagePtr ximg, | 474 | static unsigned long four_corners_best (XImagePtr ximg, |
| 475 | int *corners, | 475 | int *corners, |
| 476 | unsigned long width, | 476 | unsigned long width, |
| 477 | unsigned long height)); | 477 | unsigned long height); |
| 478 | 478 | ||
| 479 | static int x_create_x_image_and_pixmap P_ ((struct frame *f, int width, int height, | 479 | static int x_create_x_image_and_pixmap (struct frame *f, int width, int height, |
| 480 | int depth, XImagePtr *ximg, | 480 | int depth, XImagePtr *ximg, |
| 481 | Pixmap *pixmap)); | 481 | Pixmap *pixmap); |
| 482 | 482 | ||
| 483 | static void x_destroy_x_image P_ ((XImagePtr ximg)); | 483 | static void x_destroy_x_image (XImagePtr ximg); |
| 484 | 484 | ||
| 485 | 485 | ||
| 486 | /* Create a mask of a bitmap. Note is this not a perfect mask. | 486 | /* Create a mask of a bitmap. Note is this not a perfect mask. |
| @@ -619,13 +619,13 @@ Lisp_Object Vimage_cache_eviction_delay; | |||
| 619 | 619 | ||
| 620 | /* Function prototypes. */ | 620 | /* Function prototypes. */ |
| 621 | 621 | ||
| 622 | static Lisp_Object define_image_type P_ ((struct image_type *type, int loaded)); | 622 | static Lisp_Object define_image_type (struct image_type *type, int loaded); |
| 623 | static struct image_type *lookup_image_type P_ ((Lisp_Object symbol)); | 623 | static struct image_type *lookup_image_type (Lisp_Object symbol); |
| 624 | static void image_error P_ ((char *format, Lisp_Object, Lisp_Object)); | 624 | static void image_error (char *format, Lisp_Object, Lisp_Object); |
| 625 | static void x_laplace P_ ((struct frame *, struct image *)); | 625 | static void x_laplace (struct frame *, struct image *); |
| 626 | static void x_emboss P_ ((struct frame *, struct image *)); | 626 | static void x_emboss (struct frame *, struct image *); |
| 627 | static int x_build_heuristic_mask P_ ((struct frame *, struct image *, | 627 | static int x_build_heuristic_mask (struct frame *, struct image *, |
| 628 | Lisp_Object)); | 628 | Lisp_Object); |
| 629 | 629 | ||
| 630 | #define CACHE_IMAGE_TYPE(type, status) \ | 630 | #define CACHE_IMAGE_TYPE(type, status) \ |
| 631 | do { Vimage_type_cache = Fcons (Fcons (type, status), Vimage_type_cache); } while (0) | 631 | do { Vimage_type_cache = Fcons (Fcons (type, status), Vimage_type_cache); } while (0) |
| @@ -776,9 +776,9 @@ struct image_keyword | |||
| 776 | }; | 776 | }; |
| 777 | 777 | ||
| 778 | 778 | ||
| 779 | static int parse_image_spec P_ ((Lisp_Object, struct image_keyword *, | 779 | static int parse_image_spec (Lisp_Object, struct image_keyword *, |
| 780 | int, Lisp_Object)); | 780 | int, Lisp_Object); |
| 781 | static Lisp_Object image_spec_value P_ ((Lisp_Object, Lisp_Object, int *)); | 781 | static Lisp_Object image_spec_value (Lisp_Object, Lisp_Object, int *); |
| 782 | 782 | ||
| 783 | 783 | ||
| 784 | /* Parse image spec SPEC according to KEYWORDS. A valid image spec | 784 | /* Parse image spec SPEC according to KEYWORDS. A valid image spec |
| @@ -1037,9 +1037,9 @@ or omitted means use the selected frame. */) | |||
| 1037 | Image type independent image structures | 1037 | Image type independent image structures |
| 1038 | ***********************************************************************/ | 1038 | ***********************************************************************/ |
| 1039 | 1039 | ||
| 1040 | static struct image *make_image P_ ((Lisp_Object spec, unsigned hash)); | 1040 | static struct image *make_image (Lisp_Object spec, unsigned hash); |
| 1041 | static void free_image P_ ((struct frame *f, struct image *img)); | 1041 | static void free_image (struct frame *f, struct image *img); |
| 1042 | static int check_image_size P_ ((struct frame *f, int width, int height)); | 1042 | static int check_image_size (struct frame *f, int width, int height); |
| 1043 | 1043 | ||
| 1044 | #define MAX_IMAGE_SIZE 6.0 | 1044 | #define MAX_IMAGE_SIZE 6.0 |
| 1045 | Lisp_Object Vmax_image_size; | 1045 | Lisp_Object Vmax_image_size; |
| @@ -1371,13 +1371,13 @@ image_background_transparent (img, f, mask) | |||
| 1371 | Helper functions for X image types | 1371 | Helper functions for X image types |
| 1372 | ***********************************************************************/ | 1372 | ***********************************************************************/ |
| 1373 | 1373 | ||
| 1374 | static void x_clear_image_1 P_ ((struct frame *, struct image *, int, | 1374 | static void x_clear_image_1 (struct frame *, struct image *, int, |
| 1375 | int, int)); | 1375 | int, int); |
| 1376 | static void x_clear_image P_ ((struct frame *f, struct image *img)); | 1376 | static void x_clear_image (struct frame *f, struct image *img); |
| 1377 | static unsigned long x_alloc_image_color P_ ((struct frame *f, | 1377 | static unsigned long x_alloc_image_color (struct frame *f, |
| 1378 | struct image *img, | 1378 | struct image *img, |
| 1379 | Lisp_Object color_name, | 1379 | Lisp_Object color_name, |
| 1380 | unsigned long dflt)); | 1380 | unsigned long dflt); |
| 1381 | 1381 | ||
| 1382 | 1382 | ||
| 1383 | /* Clear X resources of image IMG on frame F. PIXMAP_P non-zero means | 1383 | /* Clear X resources of image IMG on frame F. PIXMAP_P non-zero means |
| @@ -1472,9 +1472,9 @@ x_alloc_image_color (f, img, color_name, dflt) | |||
| 1472 | Image Cache | 1472 | Image Cache |
| 1473 | ***********************************************************************/ | 1473 | ***********************************************************************/ |
| 1474 | 1474 | ||
| 1475 | static struct image *search_image_cache P_ ((struct frame *, Lisp_Object, unsigned)); | 1475 | static struct image *search_image_cache (struct frame *, Lisp_Object, unsigned); |
| 1476 | static void cache_image P_ ((struct frame *f, struct image *img)); | 1476 | static void cache_image (struct frame *f, struct image *img); |
| 1477 | static void postprocess_image P_ ((struct frame *, struct image *)); | 1477 | static void postprocess_image (struct frame *, struct image *); |
| 1478 | 1478 | ||
| 1479 | /* Return a new, initialized image cache that is allocated from the | 1479 | /* Return a new, initialized image cache that is allocated from the |
| 1480 | heap. Call free_image_cache to free an image cache. */ | 1480 | heap. Call free_image_cache to free an image cache. */ |
| @@ -2033,10 +2033,10 @@ w32_delayed_load (Lisp_Object libraries, Lisp_Object type) | |||
| 2033 | 2033 | ||
| 2034 | #endif /* HAVE_NTGUI */ | 2034 | #endif /* HAVE_NTGUI */ |
| 2035 | 2035 | ||
| 2036 | static int x_create_x_image_and_pixmap P_ ((struct frame *, int, int, int, | 2036 | static int x_create_x_image_and_pixmap (struct frame *, int, int, int, |
| 2037 | XImagePtr *, Pixmap *)); | 2037 | XImagePtr *, Pixmap *); |
| 2038 | static void x_destroy_x_image P_ ((XImagePtr)); | 2038 | static void x_destroy_x_image (XImagePtr); |
| 2039 | static void x_put_x_image P_ ((struct frame *, XImagePtr, Pixmap, int, int)); | 2039 | static void x_put_x_image (struct frame *, XImagePtr, Pixmap, int, int); |
| 2040 | 2040 | ||
| 2041 | 2041 | ||
| 2042 | /* Create an XImage and a pixmap of size WIDTH x HEIGHT for use on | 2042 | /* Create an XImage and a pixmap of size WIDTH x HEIGHT for use on |
| @@ -2253,7 +2253,7 @@ x_put_x_image (f, ximg, pixmap, width, height) | |||
| 2253 | File Handling | 2253 | File Handling |
| 2254 | ***********************************************************************/ | 2254 | ***********************************************************************/ |
| 2255 | 2255 | ||
| 2256 | static unsigned char *slurp_file P_ ((char *, int *)); | 2256 | static unsigned char *slurp_file (char *, int *); |
| 2257 | 2257 | ||
| 2258 | 2258 | ||
| 2259 | /* Find image file FILE. Look in data-directory/images, then | 2259 | /* Find image file FILE. Look in data-directory/images, then |
| @@ -2333,15 +2333,15 @@ slurp_file (file, size) | |||
| 2333 | XBM images | 2333 | XBM images |
| 2334 | ***********************************************************************/ | 2334 | ***********************************************************************/ |
| 2335 | 2335 | ||
| 2336 | static int xbm_scan P_ ((unsigned char **, unsigned char *, char *, int *)); | 2336 | static int xbm_scan (unsigned char **, unsigned char *, char *, int *); |
| 2337 | static int xbm_load P_ ((struct frame *f, struct image *img)); | 2337 | static int xbm_load (struct frame *f, struct image *img); |
| 2338 | static int xbm_load_image P_ ((struct frame *f, struct image *img, | 2338 | static int xbm_load_image (struct frame *f, struct image *img, |
| 2339 | unsigned char *, unsigned char *)); | 2339 | unsigned char *, unsigned char *); |
| 2340 | static int xbm_image_p P_ ((Lisp_Object object)); | 2340 | static int xbm_image_p (Lisp_Object object); |
| 2341 | static int xbm_read_bitmap_data P_ ((struct frame *f, | 2341 | static int xbm_read_bitmap_data (struct frame *f, |
| 2342 | unsigned char *, unsigned char *, | 2342 | unsigned char *, unsigned char *, |
| 2343 | int *, int *, unsigned char **, int)); | 2343 | int *, int *, unsigned char **, int); |
| 2344 | static int xbm_file_p P_ ((Lisp_Object)); | 2344 | static int xbm_file_p (Lisp_Object); |
| 2345 | 2345 | ||
| 2346 | 2346 | ||
| 2347 | /* Indices of image specification fields in xbm_format, below. */ | 2347 | /* Indices of image specification fields in xbm_format, below. */ |
| @@ -3114,9 +3114,9 @@ xbm_load (f, img) | |||
| 3114 | 3114 | ||
| 3115 | #if defined (HAVE_XPM) || defined (HAVE_NS) | 3115 | #if defined (HAVE_XPM) || defined (HAVE_NS) |
| 3116 | 3116 | ||
| 3117 | static int xpm_image_p P_ ((Lisp_Object object)); | 3117 | static int xpm_image_p (Lisp_Object object); |
| 3118 | static int xpm_load P_ ((struct frame *f, struct image *img)); | 3118 | static int xpm_load (struct frame *f, struct image *img); |
| 3119 | static int xpm_valid_color_symbols_p P_ ((Lisp_Object)); | 3119 | static int xpm_valid_color_symbols_p (Lisp_Object); |
| 3120 | 3120 | ||
| 3121 | #endif /* HAVE_XPM || HAVE_NS */ | 3121 | #endif /* HAVE_XPM || HAVE_NS */ |
| 3122 | 3122 | ||
| @@ -3207,12 +3207,12 @@ static struct image_type xpm_type = | |||
| 3207 | 3207 | ||
| 3208 | #ifdef ALLOC_XPM_COLORS | 3208 | #ifdef ALLOC_XPM_COLORS |
| 3209 | 3209 | ||
| 3210 | static void xpm_init_color_cache P_ ((struct frame *, XpmAttributes *)); | 3210 | static void xpm_init_color_cache (struct frame *, XpmAttributes *); |
| 3211 | static void xpm_free_color_cache P_ ((void)); | 3211 | static void xpm_free_color_cache (void); |
| 3212 | static int xpm_lookup_color P_ ((struct frame *, char *, XColor *)); | 3212 | static int xpm_lookup_color (struct frame *, char *, XColor *); |
| 3213 | static int xpm_color_bucket P_ ((char *)); | 3213 | static int xpm_color_bucket (char *); |
| 3214 | static struct xpm_cached_color *xpm_cache_color P_ ((struct frame *, char *, | 3214 | static struct xpm_cached_color *xpm_cache_color (struct frame *, char *, |
| 3215 | XColor *, int)); | 3215 | XColor *, int); |
| 3216 | 3216 | ||
| 3217 | /* An entry in a hash table used to cache color definitions of named | 3217 | /* An entry in a hash table used to cache color definitions of named |
| 3218 | colors. This cache is necessary to speed up XPM image loading in | 3218 | colors. This cache is necessary to speed up XPM image loading in |
| @@ -3752,25 +3752,25 @@ xpm_load (f, img) | |||
| 3752 | /* XPM support functions for NS where libxpm is not available. | 3752 | /* XPM support functions for NS where libxpm is not available. |
| 3753 | Only XPM version 3 (without any extensions) is supported. */ | 3753 | Only XPM version 3 (without any extensions) is supported. */ |
| 3754 | 3754 | ||
| 3755 | static int xpm_scan P_ ((const unsigned char **, const unsigned char *, | 3755 | static int xpm_scan (const unsigned char **, const unsigned char *, |
| 3756 | const unsigned char **, int *)); | 3756 | const unsigned char **, int *); |
| 3757 | static Lisp_Object xpm_make_color_table_v | 3757 | static Lisp_Object xpm_make_color_table_v |
| 3758 | P_ ((void (**) (Lisp_Object, const unsigned char *, int, Lisp_Object), | 3758 | (void (**) (Lisp_Object, const unsigned char *, int, Lisp_Object), |
| 3759 | Lisp_Object (**) (Lisp_Object, const unsigned char *, int))); | 3759 | Lisp_Object (**) (Lisp_Object, const unsigned char *, int)); |
| 3760 | static void xpm_put_color_table_v P_ ((Lisp_Object, const unsigned char *, | 3760 | static void xpm_put_color_table_v (Lisp_Object, const unsigned char *, |
| 3761 | int, Lisp_Object)); | 3761 | int, Lisp_Object); |
| 3762 | static Lisp_Object xpm_get_color_table_v P_ ((Lisp_Object, | 3762 | static Lisp_Object xpm_get_color_table_v (Lisp_Object, |
| 3763 | const unsigned char *, int)); | 3763 | const unsigned char *, int); |
| 3764 | static Lisp_Object xpm_make_color_table_h | 3764 | static Lisp_Object xpm_make_color_table_h |
| 3765 | P_ ((void (**) (Lisp_Object, const unsigned char *, int, Lisp_Object), | 3765 | (void (**) (Lisp_Object, const unsigned char *, int, Lisp_Object), |
| 3766 | Lisp_Object (**) (Lisp_Object, const unsigned char *, int))); | 3766 | Lisp_Object (**) (Lisp_Object, const unsigned char *, int)); |
| 3767 | static void xpm_put_color_table_h P_ ((Lisp_Object, const unsigned char *, | 3767 | static void xpm_put_color_table_h (Lisp_Object, const unsigned char *, |
| 3768 | int, Lisp_Object)); | 3768 | int, Lisp_Object); |
| 3769 | static Lisp_Object xpm_get_color_table_h P_ ((Lisp_Object, | 3769 | static Lisp_Object xpm_get_color_table_h (Lisp_Object, |
| 3770 | const unsigned char *, int)); | 3770 | const unsigned char *, int); |
| 3771 | static int xpm_str_to_color_key P_ ((const char *)); | 3771 | static int xpm_str_to_color_key (const char *); |
| 3772 | static int xpm_load_image P_ ((struct frame *, struct image *, | 3772 | static int xpm_load_image (struct frame *, struct image *, |
| 3773 | const unsigned char *, const unsigned char *)); | 3773 | const unsigned char *, const unsigned char *); |
| 3774 | 3774 | ||
| 3775 | /* Tokens returned from xpm_scan. */ | 3775 | /* Tokens returned from xpm_scan. */ |
| 3776 | 3776 | ||
| @@ -4515,9 +4515,9 @@ init_color_table () | |||
| 4515 | Algorithms | 4515 | Algorithms |
| 4516 | ***********************************************************************/ | 4516 | ***********************************************************************/ |
| 4517 | 4517 | ||
| 4518 | static XColor *x_to_xcolors P_ ((struct frame *, struct image *, int)); | 4518 | static XColor *x_to_xcolors (struct frame *, struct image *, int); |
| 4519 | static void x_from_xcolors P_ ((struct frame *, struct image *, XColor *)); | 4519 | static void x_from_xcolors (struct frame *, struct image *, XColor *); |
| 4520 | static void x_detect_edges P_ ((struct frame *, struct image *, int[9], int)); | 4520 | static void x_detect_edges (struct frame *, struct image *, int[9], int); |
| 4521 | 4521 | ||
| 4522 | #ifdef HAVE_NTGUI | 4522 | #ifdef HAVE_NTGUI |
| 4523 | static void XPutPixel (XImagePtr , int, int, COLORREF); | 4523 | static void XPutPixel (XImagePtr , int, int, COLORREF); |
| @@ -5087,9 +5087,9 @@ x_build_heuristic_mask (f, img, how) | |||
| 5087 | PBM (mono, gray, color) | 5087 | PBM (mono, gray, color) |
| 5088 | ***********************************************************************/ | 5088 | ***********************************************************************/ |
| 5089 | 5089 | ||
| 5090 | static int pbm_image_p P_ ((Lisp_Object object)); | 5090 | static int pbm_image_p (Lisp_Object object); |
| 5091 | static int pbm_load P_ ((struct frame *f, struct image *img)); | 5091 | static int pbm_load (struct frame *f, struct image *img); |
| 5092 | static int pbm_scan_number P_ ((unsigned char **, unsigned char *)); | 5092 | static int pbm_scan_number (unsigned char **, unsigned char *); |
| 5093 | 5093 | ||
| 5094 | /* The symbol `pbm' identifying images of this type. */ | 5094 | /* The symbol `pbm' identifying images of this type. */ |
| 5095 | 5095 | ||
| @@ -5511,8 +5511,8 @@ pbm_load (f, img) | |||
| 5511 | 5511 | ||
| 5512 | /* Function prototypes. */ | 5512 | /* Function prototypes. */ |
| 5513 | 5513 | ||
| 5514 | static int png_image_p P_ ((Lisp_Object object)); | 5514 | static int png_image_p (Lisp_Object object); |
| 5515 | static int png_load P_ ((struct frame *f, struct image *img)); | 5515 | static int png_load (struct frame *f, struct image *img); |
| 5516 | 5516 | ||
| 5517 | /* The symbol `png' identifying images of this type. */ | 5517 | /* The symbol `png' identifying images of this type. */ |
| 5518 | 5518 | ||
| @@ -6113,8 +6113,8 @@ png_load (struct frame *f, struct image *img) | |||
| 6113 | 6113 | ||
| 6114 | #if defined (HAVE_JPEG) || defined (HAVE_NS) | 6114 | #if defined (HAVE_JPEG) || defined (HAVE_NS) |
| 6115 | 6115 | ||
| 6116 | static int jpeg_image_p P_ ((Lisp_Object object)); | 6116 | static int jpeg_image_p (Lisp_Object object); |
| 6117 | static int jpeg_load P_ ((struct frame *f, struct image *img)); | 6117 | static int jpeg_load (struct frame *f, struct image *img); |
| 6118 | 6118 | ||
| 6119 | /* The symbol `jpeg' identifying images of this type. */ | 6119 | /* The symbol `jpeg' identifying images of this type. */ |
| 6120 | 6120 | ||
| @@ -6685,8 +6685,8 @@ jpeg_load (struct frame *f, struct image *img) | |||
| 6685 | 6685 | ||
| 6686 | #if defined (HAVE_TIFF) || defined (HAVE_NS) | 6686 | #if defined (HAVE_TIFF) || defined (HAVE_NS) |
| 6687 | 6687 | ||
| 6688 | static int tiff_image_p P_ ((Lisp_Object object)); | 6688 | static int tiff_image_p (Lisp_Object object); |
| 6689 | static int tiff_load P_ ((struct frame *f, struct image *img)); | 6689 | static int tiff_load (struct frame *f, struct image *img); |
| 6690 | 6690 | ||
| 6691 | /* The symbol `tiff' identifying images of this type. */ | 6691 | /* The symbol `tiff' identifying images of this type. */ |
| 6692 | 6692 | ||
| @@ -7136,9 +7136,9 @@ tiff_load (struct frame *f, struct image *img) | |||
| 7136 | 7136 | ||
| 7137 | #if defined (HAVE_GIF) || defined (HAVE_NS) | 7137 | #if defined (HAVE_GIF) || defined (HAVE_NS) |
| 7138 | 7138 | ||
| 7139 | static int gif_image_p P_ ((Lisp_Object object)); | 7139 | static int gif_image_p (Lisp_Object object); |
| 7140 | static int gif_load P_ ((struct frame *f, struct image *img)); | 7140 | static int gif_load (struct frame *f, struct image *img); |
| 7141 | static void gif_clear_image P_ ((struct frame *f, struct image *img)); | 7141 | static void gif_clear_image (struct frame *f, struct image *img); |
| 7142 | 7142 | ||
| 7143 | /* The symbol `gif' identifying images of this type. */ | 7143 | /* The symbol `gif' identifying images of this type. */ |
| 7144 | 7144 | ||
| @@ -7576,11 +7576,11 @@ gif_load (struct frame *f, struct image *img) | |||
| 7576 | 7576 | ||
| 7577 | /* Function prototypes. */ | 7577 | /* Function prototypes. */ |
| 7578 | 7578 | ||
| 7579 | static int svg_image_p P_ ((Lisp_Object object)); | 7579 | static int svg_image_p (Lisp_Object object); |
| 7580 | static int svg_load P_ ((struct frame *f, struct image *img)); | 7580 | static int svg_load (struct frame *f, struct image *img); |
| 7581 | 7581 | ||
| 7582 | static int svg_load_image P_ ((struct frame *, struct image *, | 7582 | static int svg_load_image (struct frame *, struct image *, |
| 7583 | unsigned char *, unsigned int)); | 7583 | unsigned char *, unsigned int); |
| 7584 | 7584 | ||
| 7585 | /* The symbol `svg' identifying images of this type. */ | 7585 | /* The symbol `svg' identifying images of this type. */ |
| 7586 | 7586 | ||
| @@ -7982,9 +7982,9 @@ Lisp_Object Qpostscript; | |||
| 7982 | 7982 | ||
| 7983 | #ifdef HAVE_GHOSTSCRIPT | 7983 | #ifdef HAVE_GHOSTSCRIPT |
| 7984 | 7984 | ||
| 7985 | static int gs_image_p P_ ((Lisp_Object object)); | 7985 | static int gs_image_p (Lisp_Object object); |
| 7986 | static int gs_load P_ ((struct frame *f, struct image *img)); | 7986 | static int gs_load (struct frame *f, struct image *img); |
| 7987 | static void gs_clear_image P_ ((struct frame *f, struct image *img)); | 7987 | static void gs_clear_image (struct frame *f, struct image *img); |
| 7988 | 7988 | ||
| 7989 | /* Keyword symbols. */ | 7989 | /* Keyword symbols. */ |
| 7990 | 7990 | ||
diff --git a/src/indent.c b/src/indent.c index b64eae1c429..de0026fe103 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -61,8 +61,8 @@ EMACS_INT last_known_column_point; | |||
| 61 | 61 | ||
| 62 | static int last_known_column_modified; | 62 | static int last_known_column_modified; |
| 63 | 63 | ||
| 64 | static double current_column_1 P_ ((void)); | 64 | static double current_column_1 (void); |
| 65 | static double position_indentation P_ ((int)); | 65 | static double position_indentation (int); |
| 66 | 66 | ||
| 67 | /* Cache of beginning of line found by the last call of | 67 | /* Cache of beginning of line found by the last call of |
| 68 | current_column. */ | 68 | current_column. */ |
| @@ -867,7 +867,7 @@ The return value is COLUMN. */) | |||
| 867 | } | 867 | } |
| 868 | 868 | ||
| 869 | 869 | ||
| 870 | static double position_indentation P_ ((int)); | 870 | static double position_indentation (int); |
| 871 | 871 | ||
| 872 | DEFUN ("current-indentation", Fcurrent_indentation, Scurrent_indentation, | 872 | DEFUN ("current-indentation", Fcurrent_indentation, Scurrent_indentation, |
| 873 | 0, 0, 0, | 873 | 0, 0, 0, |
diff --git a/src/intervals.c b/src/intervals.c index 9836f763489..4f12d711bf5 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -53,8 +53,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 53 | #define TMEM(sym, set) (CONSP (set) ? ! NILP (Fmemq (sym, set)) : ! NILP (set)) | 53 | #define TMEM(sym, set) (CONSP (set) ? ! NILP (Fmemq (sym, set)) : ! NILP (set)) |
| 54 | 54 | ||
| 55 | Lisp_Object merge_properties_sticky (); | 55 | Lisp_Object merge_properties_sticky (); |
| 56 | static INTERVAL reproduce_tree P_ ((INTERVAL, INTERVAL)); | 56 | static INTERVAL reproduce_tree (INTERVAL, INTERVAL); |
| 57 | static INTERVAL reproduce_tree_obj P_ ((INTERVAL, Lisp_Object)); | 57 | static INTERVAL reproduce_tree_obj (INTERVAL, Lisp_Object); |
| 58 | 58 | ||
| 59 | /* Utility functions for intervals. */ | 59 | /* Utility functions for intervals. */ |
| 60 | 60 | ||
| @@ -208,7 +208,7 @@ intervals_equal (i0, i1) | |||
| 208 | void | 208 | void |
| 209 | traverse_intervals_noorder (tree, function, arg) | 209 | traverse_intervals_noorder (tree, function, arg) |
| 210 | INTERVAL tree; | 210 | INTERVAL tree; |
| 211 | void (* function) P_ ((INTERVAL, Lisp_Object)); | 211 | void (* function) (INTERVAL, Lisp_Object); |
| 212 | Lisp_Object arg; | 212 | Lisp_Object arg; |
| 213 | { | 213 | { |
| 214 | /* Minimize stack usage. */ | 214 | /* Minimize stack usage. */ |
| @@ -232,7 +232,7 @@ void | |||
| 232 | traverse_intervals (tree, position, function, arg) | 232 | traverse_intervals (tree, position, function, arg) |
| 233 | INTERVAL tree; | 233 | INTERVAL tree; |
| 234 | int position; | 234 | int position; |
| 235 | void (* function) P_ ((INTERVAL, Lisp_Object)); | 235 | void (* function) (INTERVAL, Lisp_Object); |
| 236 | Lisp_Object arg; | 236 | Lisp_Object arg; |
| 237 | { | 237 | { |
| 238 | while (!NULL_INTERVAL_P (tree)) | 238 | while (!NULL_INTERVAL_P (tree)) |
diff --git a/src/keyboard.c b/src/keyboard.c index 63372d600e3..d7e01af0bc4 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -613,39 +613,39 @@ Lisp_Object Venable_disabled_menus_and_buttons; | |||
| 613 | /* Function for init_keyboard to call with no args (if nonzero). */ | 613 | /* Function for init_keyboard to call with no args (if nonzero). */ |
| 614 | void (*keyboard_init_hook) (); | 614 | void (*keyboard_init_hook) (); |
| 615 | 615 | ||
| 616 | static int read_avail_input P_ ((int)); | 616 | static int read_avail_input (int); |
| 617 | static void get_input_pending P_ ((int *, int)); | 617 | static void get_input_pending (int *, int); |
| 618 | static int readable_events P_ ((int)); | 618 | static int readable_events (int); |
| 619 | static Lisp_Object read_char_x_menu_prompt P_ ((int, Lisp_Object *, | 619 | static Lisp_Object read_char_x_menu_prompt (int, Lisp_Object *, |
| 620 | Lisp_Object, int *)); | 620 | Lisp_Object, int *); |
| 621 | static Lisp_Object read_char_x_menu_prompt (); | 621 | static Lisp_Object read_char_x_menu_prompt (); |
| 622 | static Lisp_Object read_char_minibuf_menu_prompt P_ ((int, int, | 622 | static Lisp_Object read_char_minibuf_menu_prompt (int, int, |
| 623 | Lisp_Object *)); | 623 | Lisp_Object *); |
| 624 | static Lisp_Object make_lispy_event P_ ((struct input_event *)); | 624 | static Lisp_Object make_lispy_event (struct input_event *); |
| 625 | #if defined (HAVE_MOUSE) || defined (HAVE_GPM) | 625 | #if defined (HAVE_MOUSE) || defined (HAVE_GPM) |
| 626 | static Lisp_Object make_lispy_movement P_ ((struct frame *, Lisp_Object, | 626 | static Lisp_Object make_lispy_movement (struct frame *, Lisp_Object, |
| 627 | enum scroll_bar_part, | 627 | enum scroll_bar_part, |
| 628 | Lisp_Object, Lisp_Object, | 628 | Lisp_Object, Lisp_Object, |
| 629 | unsigned long)); | 629 | unsigned long); |
| 630 | #endif | 630 | #endif |
| 631 | static Lisp_Object modify_event_symbol P_ ((int, unsigned, Lisp_Object, | 631 | static Lisp_Object modify_event_symbol (int, unsigned, Lisp_Object, |
| 632 | Lisp_Object, char **, | 632 | Lisp_Object, char **, |
| 633 | Lisp_Object *, unsigned)); | 633 | Lisp_Object *, unsigned); |
| 634 | static Lisp_Object make_lispy_switch_frame P_ ((Lisp_Object)); | 634 | static Lisp_Object make_lispy_switch_frame (Lisp_Object); |
| 635 | static void save_getcjmp P_ ((jmp_buf)); | 635 | static void save_getcjmp (jmp_buf); |
| 636 | static void save_getcjmp (); | 636 | static void save_getcjmp (); |
| 637 | static void restore_getcjmp P_ ((jmp_buf)); | 637 | static void restore_getcjmp (jmp_buf); |
| 638 | static Lisp_Object apply_modifiers P_ ((int, Lisp_Object)); | 638 | static Lisp_Object apply_modifiers (int, Lisp_Object); |
| 639 | static void clear_event P_ ((struct input_event *)); | 639 | static void clear_event (struct input_event *); |
| 640 | static Lisp_Object restore_kboard_configuration P_ ((Lisp_Object)); | 640 | static Lisp_Object restore_kboard_configuration (Lisp_Object); |
| 641 | static SIGTYPE interrupt_signal P_ ((int signalnum)); | 641 | static SIGTYPE interrupt_signal (int signalnum); |
| 642 | static void handle_interrupt P_ ((void)); | 642 | static void handle_interrupt (void); |
| 643 | static void timer_start_idle P_ ((void)); | 643 | static void timer_start_idle (void); |
| 644 | static void timer_stop_idle P_ ((void)); | 644 | static void timer_stop_idle (void); |
| 645 | static void timer_resume_idle P_ ((void)); | 645 | static void timer_resume_idle (void); |
| 646 | static SIGTYPE handle_user_signal P_ ((int)); | 646 | static SIGTYPE handle_user_signal (int); |
| 647 | static char *find_user_signal_name P_ ((int)); | 647 | static char *find_user_signal_name (int); |
| 648 | static int store_user_signal_events P_ ((void)); | 648 | static int store_user_signal_events (void); |
| 649 | 649 | ||
| 650 | /* Nonzero means don't try to suspend even if the operating system seems | 650 | /* Nonzero means don't try to suspend even if the operating system seems |
| 651 | to support it. */ | 651 | to support it. */ |
| @@ -1499,10 +1499,10 @@ some_mouse_moved () | |||
| 1499 | /* This is the actual command reading loop, | 1499 | /* This is the actual command reading loop, |
| 1500 | sans error-handling encapsulation. */ | 1500 | sans error-handling encapsulation. */ |
| 1501 | 1501 | ||
| 1502 | static int read_key_sequence P_ ((Lisp_Object *, int, Lisp_Object, | 1502 | static int read_key_sequence (Lisp_Object *, int, Lisp_Object, |
| 1503 | int, int, int)); | 1503 | int, int, int); |
| 1504 | void safe_run_hooks P_ ((Lisp_Object)); | 1504 | void safe_run_hooks (Lisp_Object); |
| 1505 | static void adjust_point_for_property P_ ((int, int)); | 1505 | static void adjust_point_for_property (int, int); |
| 1506 | 1506 | ||
| 1507 | /* Cancel hourglass from protect_unwind. | 1507 | /* Cancel hourglass from protect_unwind. |
| 1508 | ARG is not used. */ | 1508 | ARG is not used. */ |
| @@ -1862,7 +1862,7 @@ extern Lisp_Object Qcomposition, Qdisplay; | |||
| 1862 | LAST_PT is the last position of point. */ | 1862 | LAST_PT is the last position of point. */ |
| 1863 | 1863 | ||
| 1864 | extern Lisp_Object Qafter_string, Qbefore_string; | 1864 | extern Lisp_Object Qafter_string, Qbefore_string; |
| 1865 | extern Lisp_Object get_pos_property P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); | 1865 | extern Lisp_Object get_pos_property (Lisp_Object, Lisp_Object, Lisp_Object); |
| 1866 | 1866 | ||
| 1867 | static void | 1867 | static void |
| 1868 | adjust_point_for_property (last_pt, modified) | 1868 | adjust_point_for_property (last_pt, modified) |
| @@ -7509,7 +7509,7 @@ store_user_signal_events () | |||
| 7509 | } | 7509 | } |
| 7510 | 7510 | ||
| 7511 | 7511 | ||
| 7512 | static void menu_bar_item P_ ((Lisp_Object, Lisp_Object, Lisp_Object, void*)); | 7512 | static void menu_bar_item (Lisp_Object, Lisp_Object, Lisp_Object, void*); |
| 7513 | static Lisp_Object menu_bar_one_keymap_changed_items; | 7513 | static Lisp_Object menu_bar_one_keymap_changed_items; |
| 7514 | 7514 | ||
| 7515 | /* These variables hold the vector under construction within | 7515 | /* These variables hold the vector under construction within |
| @@ -8077,10 +8077,10 @@ Lisp_Object Qrtl; | |||
| 8077 | 8077 | ||
| 8078 | /* Function prototypes. */ | 8078 | /* Function prototypes. */ |
| 8079 | 8079 | ||
| 8080 | static void init_tool_bar_items P_ ((Lisp_Object)); | 8080 | static void init_tool_bar_items (Lisp_Object); |
| 8081 | static void process_tool_bar_item P_ ((Lisp_Object, Lisp_Object, Lisp_Object, void*)); | 8081 | static void process_tool_bar_item (Lisp_Object, Lisp_Object, Lisp_Object, void*); |
| 8082 | static int parse_tool_bar_item P_ ((Lisp_Object, Lisp_Object)); | 8082 | static int parse_tool_bar_item (Lisp_Object, Lisp_Object); |
| 8083 | static void append_tool_bar_item P_ ((void)); | 8083 | static void append_tool_bar_item (void); |
| 8084 | 8084 | ||
| 8085 | 8085 | ||
| 8086 | /* Return a vector of tool bar items for keymaps currently in effect. | 8086 | /* Return a vector of tool bar items for keymaps currently in effect. |
| @@ -10876,7 +10876,7 @@ On such systems, Emacs starts a subshell instead of suspending. */) | |||
| 10876 | reset_all_sys_modes (); | 10876 | reset_all_sys_modes (); |
| 10877 | /* sys_suspend can get an error if it tries to fork a subshell | 10877 | /* sys_suspend can get an error if it tries to fork a subshell |
| 10878 | and the system resources aren't available for that. */ | 10878 | and the system resources aren't available for that. */ |
| 10879 | record_unwind_protect ((Lisp_Object (*) P_ ((Lisp_Object))) init_all_sys_modes, | 10879 | record_unwind_protect ((Lisp_Object (*) (Lisp_Object)) init_all_sys_modes, |
| 10880 | Qnil); | 10880 | Qnil); |
| 10881 | stuff_buffered_input (stuffstring); | 10881 | stuff_buffered_input (stuffstring); |
| 10882 | if (cannot_suspend) | 10882 | if (cannot_suspend) |
diff --git a/src/keymap.c b/src/keymap.c index c3a9d9e5cc0..3aeeb1afc05 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -115,20 +115,20 @@ static Lisp_Object where_is_cache; | |||
| 115 | /* Which keymaps are reverse-stored in the cache. */ | 115 | /* Which keymaps are reverse-stored in the cache. */ |
| 116 | static Lisp_Object where_is_cache_keymaps; | 116 | static Lisp_Object where_is_cache_keymaps; |
| 117 | 117 | ||
| 118 | static Lisp_Object store_in_keymap P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); | 118 | static Lisp_Object store_in_keymap (Lisp_Object, Lisp_Object, Lisp_Object); |
| 119 | static void fix_submap_inheritance P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); | 119 | static void fix_submap_inheritance (Lisp_Object, Lisp_Object, Lisp_Object); |
| 120 | 120 | ||
| 121 | static Lisp_Object define_as_prefix P_ ((Lisp_Object, Lisp_Object)); | 121 | static Lisp_Object define_as_prefix (Lisp_Object, Lisp_Object); |
| 122 | static void describe_command P_ ((Lisp_Object, Lisp_Object)); | 122 | static void describe_command (Lisp_Object, Lisp_Object); |
| 123 | static void describe_translation P_ ((Lisp_Object, Lisp_Object)); | 123 | static void describe_translation (Lisp_Object, Lisp_Object); |
| 124 | static void describe_map P_ ((Lisp_Object, Lisp_Object, | 124 | static void describe_map (Lisp_Object, Lisp_Object, |
| 125 | void (*) P_ ((Lisp_Object, Lisp_Object)), | 125 | void (*) (Lisp_Object, Lisp_Object), |
| 126 | int, Lisp_Object, Lisp_Object*, int, int)); | 126 | int, Lisp_Object, Lisp_Object*, int, int); |
| 127 | static void describe_vector P_ ((Lisp_Object, Lisp_Object, Lisp_Object, | 127 | static void describe_vector (Lisp_Object, Lisp_Object, Lisp_Object, |
| 128 | void (*) (Lisp_Object, Lisp_Object), int, | 128 | void (*) (Lisp_Object, Lisp_Object), int, |
| 129 | Lisp_Object, Lisp_Object, int *, | 129 | Lisp_Object, Lisp_Object, int *, |
| 130 | int, int, int)); | 130 | int, int, int); |
| 131 | static void silly_event_symbol_error P_ ((Lisp_Object)); | 131 | static void silly_event_symbol_error (Lisp_Object); |
| 132 | 132 | ||
| 133 | /* Keymap object support - constructors and predicates. */ | 133 | /* Keymap object support - constructors and predicates. */ |
| 134 | 134 | ||
| @@ -2643,8 +2643,8 @@ preferred_sequence_p (seq) | |||
| 2643 | 2643 | ||
| 2644 | /* where-is - finding a command in a set of keymaps. */ | 2644 | /* where-is - finding a command in a set of keymaps. */ |
| 2645 | 2645 | ||
| 2646 | static void where_is_internal_1 P_ ((Lisp_Object key, Lisp_Object binding, | 2646 | static void where_is_internal_1 (Lisp_Object key, Lisp_Object binding, |
| 2647 | Lisp_Object args, void *data)); | 2647 | Lisp_Object args, void *data); |
| 2648 | 2648 | ||
| 2649 | /* Like Flookup_key, but uses a list of keymaps SHADOW instead of a single map. | 2649 | /* Like Flookup_key, but uses a list of keymaps SHADOW instead of a single map. |
| 2650 | Returns the first non-nil binding found in any of those maps. | 2650 | Returns the first non-nil binding found in any of those maps. |
| @@ -3440,7 +3440,7 @@ describe_map (map, prefix, elt_describer, partial, shadow, | |||
| 3440 | seen, nomenu, mention_shadow) | 3440 | seen, nomenu, mention_shadow) |
| 3441 | register Lisp_Object map; | 3441 | register Lisp_Object map; |
| 3442 | Lisp_Object prefix; | 3442 | Lisp_Object prefix; |
| 3443 | void (*elt_describer) P_ ((Lisp_Object, Lisp_Object)); | 3443 | void (*elt_describer) (Lisp_Object, Lisp_Object); |
| 3444 | int partial; | 3444 | int partial; |
| 3445 | Lisp_Object shadow; | 3445 | Lisp_Object shadow; |
| 3446 | Lisp_Object *seen; | 3446 | Lisp_Object *seen; |
| @@ -3692,7 +3692,7 @@ describe_vector (vector, prefix, args, elt_describer, | |||
| 3692 | mention_shadow) | 3692 | mention_shadow) |
| 3693 | register Lisp_Object vector; | 3693 | register Lisp_Object vector; |
| 3694 | Lisp_Object prefix, args; | 3694 | Lisp_Object prefix, args; |
| 3695 | void (*elt_describer) P_ ((Lisp_Object, Lisp_Object)); | 3695 | void (*elt_describer) (Lisp_Object, Lisp_Object); |
| 3696 | int partial; | 3696 | int partial; |
| 3697 | Lisp_Object shadow; | 3697 | Lisp_Object shadow; |
| 3698 | Lisp_Object entire_map; | 3698 | Lisp_Object entire_map; |
diff --git a/src/lisp.h b/src/lisp.h index f2867a53e64..2b25e153d30 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -21,9 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | #ifndef EMACS_LISP_H | 21 | #ifndef EMACS_LISP_H |
| 22 | #define EMACS_LISP_H | 22 | #define EMACS_LISP_H |
| 23 | 23 | ||
| 24 | /* Declare the prototype for a general external function. */ | ||
| 25 | #define P_(proto) proto | ||
| 26 | |||
| 27 | /* Use the configure flag --enable-checking[=LIST] to enable various | 24 | /* Use the configure flag --enable-checking[=LIST] to enable various |
| 28 | types of run time checks for Lisp objects. */ | 25 | types of run time checks for Lisp objects. */ |
| 29 | 26 | ||
diff --git a/src/lread.c b/src/lread.c index c73f7f32e51..16efd7114ea 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -219,18 +219,18 @@ int force_load_messages; | |||
| 219 | 219 | ||
| 220 | static Lisp_Object Vbytecomp_version_regexp; | 220 | static Lisp_Object Vbytecomp_version_regexp; |
| 221 | 221 | ||
| 222 | static int read_emacs_mule_char P_ ((int, int (*) (int, Lisp_Object), | 222 | static int read_emacs_mule_char (int, int (*) (int, Lisp_Object), |
| 223 | Lisp_Object)); | 223 | Lisp_Object); |
| 224 | 224 | ||
| 225 | static void readevalloop P_ ((Lisp_Object, FILE*, Lisp_Object, | 225 | static void readevalloop (Lisp_Object, FILE*, Lisp_Object, |
| 226 | Lisp_Object (*) (), int, | 226 | Lisp_Object (*) (), int, |
| 227 | Lisp_Object, Lisp_Object, | 227 | Lisp_Object, Lisp_Object, |
| 228 | Lisp_Object, Lisp_Object)); | 228 | Lisp_Object, Lisp_Object); |
| 229 | static Lisp_Object load_unwind P_ ((Lisp_Object)); | 229 | static Lisp_Object load_unwind (Lisp_Object); |
| 230 | static Lisp_Object load_descriptor_unwind P_ ((Lisp_Object)); | 230 | static Lisp_Object load_descriptor_unwind (Lisp_Object); |
| 231 | 231 | ||
| 232 | static void invalid_syntax P_ ((const char *, int)) NO_RETURN; | 232 | static void invalid_syntax (const char *, int) NO_RETURN; |
| 233 | static void end_of_file_error P_ (()) NO_RETURN; | 233 | static void end_of_file_error () NO_RETURN; |
| 234 | 234 | ||
| 235 | 235 | ||
| 236 | /* Functions that read one byte from the current source READCHARFUN | 236 | /* Functions that read one byte from the current source READCHARFUN |
| @@ -239,9 +239,9 @@ static void end_of_file_error P_ (()) NO_RETURN; | |||
| 239 | is 0 or positive, it unreads C, and the return value is not | 239 | is 0 or positive, it unreads C, and the return value is not |
| 240 | interesting. */ | 240 | interesting. */ |
| 241 | 241 | ||
| 242 | static int readbyte_for_lambda P_ ((int, Lisp_Object)); | 242 | static int readbyte_for_lambda (int, Lisp_Object); |
| 243 | static int readbyte_from_file P_ ((int, Lisp_Object)); | 243 | static int readbyte_from_file (int, Lisp_Object); |
| 244 | static int readbyte_from_string P_ ((int, Lisp_Object)); | 244 | static int readbyte_from_string (int, Lisp_Object); |
| 245 | 245 | ||
| 246 | /* Handle unreading and rereading of characters. | 246 | /* Handle unreading and rereading of characters. |
| 247 | Write READCHAR to read a character, | 247 | Write READCHAR to read a character, |
| @@ -268,7 +268,7 @@ readchar (readcharfun, multibyte) | |||
| 268 | { | 268 | { |
| 269 | Lisp_Object tem; | 269 | Lisp_Object tem; |
| 270 | register int c; | 270 | register int c; |
| 271 | int (*readbyte) P_ ((int, Lisp_Object)); | 271 | int (*readbyte) (int, Lisp_Object); |
| 272 | unsigned char buf[MAX_MULTIBYTE_LENGTH]; | 272 | unsigned char buf[MAX_MULTIBYTE_LENGTH]; |
| 273 | int i, len; | 273 | int i, len; |
| 274 | int emacs_mule_encoding = 0; | 274 | int emacs_mule_encoding = 0; |
| @@ -575,7 +575,7 @@ extern char emacs_mule_bytes[256]; | |||
| 575 | static int | 575 | static int |
| 576 | read_emacs_mule_char (c, readbyte, readcharfun) | 576 | read_emacs_mule_char (c, readbyte, readcharfun) |
| 577 | int c; | 577 | int c; |
| 578 | int (*readbyte) P_ ((int, Lisp_Object)); | 578 | int (*readbyte) (int, Lisp_Object); |
| 579 | Lisp_Object readcharfun; | 579 | Lisp_Object readcharfun; |
| 580 | { | 580 | { |
| 581 | /* Emacs-mule coding uses at most 4-byte for one character. */ | 581 | /* Emacs-mule coding uses at most 4-byte for one character. */ |
| @@ -635,19 +635,19 @@ read_emacs_mule_char (c, readbyte, readcharfun) | |||
| 635 | } | 635 | } |
| 636 | 636 | ||
| 637 | 637 | ||
| 638 | static Lisp_Object read_internal_start P_ ((Lisp_Object, Lisp_Object, | 638 | static Lisp_Object read_internal_start (Lisp_Object, Lisp_Object, |
| 639 | Lisp_Object)); | 639 | Lisp_Object); |
| 640 | static Lisp_Object read0 P_ ((Lisp_Object)); | 640 | static Lisp_Object read0 (Lisp_Object); |
| 641 | static Lisp_Object read1 P_ ((Lisp_Object, int *, int)); | 641 | static Lisp_Object read1 (Lisp_Object, int *, int); |
| 642 | 642 | ||
| 643 | static Lisp_Object read_list P_ ((int, Lisp_Object)); | 643 | static Lisp_Object read_list (int, Lisp_Object); |
| 644 | static Lisp_Object read_vector P_ ((Lisp_Object, int)); | 644 | static Lisp_Object read_vector (Lisp_Object, int); |
| 645 | 645 | ||
| 646 | static Lisp_Object substitute_object_recurse P_ ((Lisp_Object, Lisp_Object, | 646 | static Lisp_Object substitute_object_recurse (Lisp_Object, Lisp_Object, |
| 647 | Lisp_Object)); | 647 | Lisp_Object); |
| 648 | static void substitute_object_in_subtree P_ ((Lisp_Object, | 648 | static void substitute_object_in_subtree (Lisp_Object, |
| 649 | Lisp_Object)); | 649 | Lisp_Object); |
| 650 | static void substitute_in_interval P_ ((INTERVAL, Lisp_Object)); | 650 | static void substitute_in_interval (INTERVAL, Lisp_Object); |
| 651 | 651 | ||
| 652 | 652 | ||
| 653 | /* Get a character from the tty. */ | 653 | /* Get a character from the tty. */ |
| @@ -3873,7 +3873,7 @@ hash_string (ptr, len) | |||
| 3873 | void | 3873 | void |
| 3874 | map_obarray (obarray, fn, arg) | 3874 | map_obarray (obarray, fn, arg) |
| 3875 | Lisp_Object obarray; | 3875 | Lisp_Object obarray; |
| 3876 | void (*fn) P_ ((Lisp_Object, Lisp_Object)); | 3876 | void (*fn) (Lisp_Object, Lisp_Object); |
| 3877 | Lisp_Object arg; | 3877 | Lisp_Object arg; |
| 3878 | { | 3878 | { |
| 3879 | register int i; | 3879 | register int i; |
diff --git a/src/marker.c b/src/marker.c index b3381f9c369..354111d3081 100644 --- a/src/marker.c +++ b/src/marker.c | |||
| @@ -32,7 +32,7 @@ static int cached_bytepos; | |||
| 32 | static struct buffer *cached_buffer; | 32 | static struct buffer *cached_buffer; |
| 33 | static int cached_modiff; | 33 | static int cached_modiff; |
| 34 | 34 | ||
| 35 | static void byte_char_debug_check P_ ((struct buffer *, int, int)); | 35 | static void byte_char_debug_check (struct buffer *, int, int); |
| 36 | 36 | ||
| 37 | /* Nonzero means enable debugging checks on byte/char correspondences. */ | 37 | /* Nonzero means enable debugging checks on byte/char correspondences. */ |
| 38 | 38 | ||
diff --git a/src/menu.c b/src/menu.c index ca00c06a98b..55b1acb3fb9 100644 --- a/src/menu.c +++ b/src/menu.c | |||
| @@ -272,8 +272,8 @@ struct skp | |||
| 272 | int notbuttons; | 272 | int notbuttons; |
| 273 | }; | 273 | }; |
| 274 | 274 | ||
| 275 | static void single_menu_item P_ ((Lisp_Object, Lisp_Object, Lisp_Object, | 275 | static void single_menu_item (Lisp_Object, Lisp_Object, Lisp_Object, |
| 276 | void *)); | 276 | void *); |
| 277 | 277 | ||
| 278 | /* This is a recursive subroutine of keymap_panes. | 278 | /* This is a recursive subroutine of keymap_panes. |
| 279 | It handles one keymap, KEYMAP. | 279 | It handles one keymap, KEYMAP. |
| @@ -1164,12 +1164,12 @@ no quit occurs and `x-popup-menu' returns nil. */) | |||
| 1164 | Lisp_Object bar_window; | 1164 | Lisp_Object bar_window; |
| 1165 | enum scroll_bar_part part; | 1165 | enum scroll_bar_part part; |
| 1166 | unsigned long time; | 1166 | unsigned long time; |
| 1167 | void (*mouse_position_hook) P_ ((struct frame **, int, | 1167 | void (*mouse_position_hook) (struct frame **, int, |
| 1168 | Lisp_Object *, | 1168 | Lisp_Object *, |
| 1169 | enum scroll_bar_part *, | 1169 | enum scroll_bar_part *, |
| 1170 | Lisp_Object *, | 1170 | Lisp_Object *, |
| 1171 | Lisp_Object *, | 1171 | Lisp_Object *, |
| 1172 | unsigned long *)) = | 1172 | unsigned long *) = |
| 1173 | FRAME_TERMINAL (new_f)->mouse_position_hook; | 1173 | FRAME_TERMINAL (new_f)->mouse_position_hook; |
| 1174 | 1174 | ||
| 1175 | if (mouse_position_hook) | 1175 | if (mouse_position_hook) |
diff --git a/src/minibuf.c b/src/minibuf.c index 539a953f7ee..412d2550df8 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -220,19 +220,19 @@ without invoking the usual minibuffer commands. */) | |||
| 220 | 220 | ||
| 221 | /* Actual minibuffer invocation. */ | 221 | /* Actual minibuffer invocation. */ |
| 222 | 222 | ||
| 223 | static Lisp_Object read_minibuf_unwind P_ ((Lisp_Object)); | 223 | static Lisp_Object read_minibuf_unwind (Lisp_Object); |
| 224 | static Lisp_Object run_exit_minibuf_hook P_ ((Lisp_Object)); | 224 | static Lisp_Object run_exit_minibuf_hook (Lisp_Object); |
| 225 | static Lisp_Object read_minibuf P_ ((Lisp_Object, Lisp_Object, | 225 | static Lisp_Object read_minibuf (Lisp_Object, Lisp_Object, |
| 226 | Lisp_Object, Lisp_Object, | 226 | Lisp_Object, Lisp_Object, |
| 227 | int, Lisp_Object, | 227 | int, Lisp_Object, |
| 228 | Lisp_Object, Lisp_Object, | 228 | Lisp_Object, Lisp_Object, |
| 229 | int, int)); | 229 | int, int); |
| 230 | static Lisp_Object read_minibuf_noninteractive P_ ((Lisp_Object, Lisp_Object, | 230 | static Lisp_Object read_minibuf_noninteractive (Lisp_Object, Lisp_Object, |
| 231 | Lisp_Object, Lisp_Object, | 231 | Lisp_Object, Lisp_Object, |
| 232 | int, Lisp_Object, | 232 | int, Lisp_Object, |
| 233 | Lisp_Object, Lisp_Object, | 233 | Lisp_Object, Lisp_Object, |
| 234 | int, int)); | 234 | int, int); |
| 235 | static Lisp_Object string_to_object P_ ((Lisp_Object, Lisp_Object)); | 235 | static Lisp_Object string_to_object (Lisp_Object, Lisp_Object); |
| 236 | 236 | ||
| 237 | 237 | ||
| 238 | /* Read a Lisp object from VAL and return it. If VAL is an empty | 238 | /* Read a Lisp object from VAL and return it. If VAL is an empty |
diff --git a/src/print.c b/src/print.c index 6d403e00fe0..dedd58b99e3 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -618,7 +618,7 @@ temp_output_buffer_setup (bufname) | |||
| 618 | Lisp_Object | 618 | Lisp_Object |
| 619 | internal_with_output_to_temp_buffer (bufname, function, args) | 619 | internal_with_output_to_temp_buffer (bufname, function, args) |
| 620 | const char *bufname; | 620 | const char *bufname; |
| 621 | Lisp_Object (*function) P_ ((Lisp_Object)); | 621 | Lisp_Object (*function) (Lisp_Object); |
| 622 | Lisp_Object args; | 622 | Lisp_Object args; |
| 623 | { | 623 | { |
| 624 | int count = SPECPDL_INDEX (); | 624 | int count = SPECPDL_INDEX (); |
diff --git a/src/process.c b/src/process.c index 24f31220d0d..255803c92fd 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -285,11 +285,11 @@ static Lisp_Object Vprocess_adaptive_read_buffering; | |||
| 285 | 285 | ||
| 286 | #include "sysselect.h" | 286 | #include "sysselect.h" |
| 287 | 287 | ||
| 288 | static int keyboard_bit_set P_ ((SELECT_TYPE *)); | 288 | static int keyboard_bit_set (SELECT_TYPE *); |
| 289 | static void deactivate_process P_ ((Lisp_Object)); | 289 | static void deactivate_process (Lisp_Object); |
| 290 | static void status_notify P_ ((struct Lisp_Process *)); | 290 | static void status_notify (struct Lisp_Process *); |
| 291 | static int read_process_output P_ ((Lisp_Object, int)); | 291 | static int read_process_output (Lisp_Object, int); |
| 292 | static void create_pty P_ ((Lisp_Object)); | 292 | static void create_pty (Lisp_Object); |
| 293 | 293 | ||
| 294 | /* If we support a window system, turn on the code to poll periodically | 294 | /* If we support a window system, turn on the code to poll periodically |
| 295 | to detect C-g. It isn't actually used when doing interrupt input. */ | 295 | to detect C-g. It isn't actually used when doing interrupt input. */ |
diff --git a/src/scroll.c b/src/scroll.c index e2d3656dc43..5363ec3be42 100644 --- a/src/scroll.c +++ b/src/scroll.c | |||
| @@ -58,14 +58,14 @@ struct matrix_elt | |||
| 58 | unsigned char writecount; | 58 | unsigned char writecount; |
| 59 | }; | 59 | }; |
| 60 | 60 | ||
| 61 | static void do_direct_scrolling P_ ((struct frame *, | 61 | static void do_direct_scrolling (struct frame *, |
| 62 | struct glyph_matrix *, | 62 | struct glyph_matrix *, |
| 63 | struct matrix_elt *, | 63 | struct matrix_elt *, |
| 64 | int, int)); | 64 | int, int); |
| 65 | static void do_scrolling P_ ((struct frame *, | 65 | static void do_scrolling (struct frame *, |
| 66 | struct glyph_matrix *, | 66 | struct glyph_matrix *, |
| 67 | struct matrix_elt *, | 67 | struct matrix_elt *, |
| 68 | int, int)); | 68 | int, int); |
| 69 | 69 | ||
| 70 | 70 | ||
| 71 | /* Determine, in matrix[i,j], the cost of updating the first j old | 71 | /* Determine, in matrix[i,j], the cost of updating the first j old |
diff --git a/src/search.c b/src/search.c index 736a89258f5..69db94e9f1a 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -98,18 +98,18 @@ Lisp_Object Vsearch_spaces_regexp; | |||
| 98 | only. */ | 98 | only. */ |
| 99 | Lisp_Object Vinhibit_changing_match_data; | 99 | Lisp_Object Vinhibit_changing_match_data; |
| 100 | 100 | ||
| 101 | static void set_search_regs P_ ((EMACS_INT, EMACS_INT)); | 101 | static void set_search_regs (EMACS_INT, EMACS_INT); |
| 102 | static void save_search_regs P_ ((void)); | 102 | static void save_search_regs (void); |
| 103 | static EMACS_INT simple_search P_ ((int, unsigned char *, int, int, | 103 | static EMACS_INT simple_search (int, unsigned char *, int, int, |
| 104 | Lisp_Object, EMACS_INT, EMACS_INT, | 104 | Lisp_Object, EMACS_INT, EMACS_INT, |
| 105 | EMACS_INT, EMACS_INT)); | 105 | EMACS_INT, EMACS_INT); |
| 106 | static EMACS_INT boyer_moore P_ ((int, unsigned char *, int, int, | 106 | static EMACS_INT boyer_moore (int, unsigned char *, int, int, |
| 107 | Lisp_Object, Lisp_Object, | 107 | Lisp_Object, Lisp_Object, |
| 108 | EMACS_INT, EMACS_INT, | 108 | EMACS_INT, EMACS_INT, |
| 109 | EMACS_INT, EMACS_INT, int)); | 109 | EMACS_INT, EMACS_INT, int); |
| 110 | static EMACS_INT search_buffer P_ ((Lisp_Object, EMACS_INT, EMACS_INT, | 110 | static EMACS_INT search_buffer (Lisp_Object, EMACS_INT, EMACS_INT, |
| 111 | EMACS_INT, EMACS_INT, int, int, | 111 | EMACS_INT, EMACS_INT, int, int, |
| 112 | Lisp_Object, Lisp_Object, int)); | 112 | Lisp_Object, Lisp_Object, int); |
| 113 | static void matcher_overflow () NO_RETURN; | 113 | static void matcher_overflow () NO_RETURN; |
| 114 | 114 | ||
| 115 | static void | 115 | static void |
diff --git a/src/sound.c b/src/sound.c index af6daf2e268..b362fc8819e 100644 --- a/src/sound.c +++ b/src/sound.c | |||
| @@ -115,10 +115,10 @@ enum sound_attr | |||
| 115 | SOUND_ATTR_SENTINEL | 115 | SOUND_ATTR_SENTINEL |
| 116 | }; | 116 | }; |
| 117 | 117 | ||
| 118 | static void alsa_sound_perror P_ ((char *, int)) NO_RETURN; | 118 | static void alsa_sound_perror (char *, int) NO_RETURN; |
| 119 | static void sound_perror P_ ((char *)) NO_RETURN; | 119 | static void sound_perror (char *) NO_RETURN; |
| 120 | static void sound_warning P_ ((char *)); | 120 | static void sound_warning (char *); |
| 121 | static int parse_sound P_ ((Lisp_Object, Lisp_Object *)); | 121 | static int parse_sound (Lisp_Object, Lisp_Object *); |
| 122 | 122 | ||
| 123 | /* END: Common Definitions */ | 123 | /* END: Common Definitions */ |
| 124 | 124 | ||
| @@ -225,25 +225,25 @@ struct sound_device | |||
| 225 | int channels; | 225 | int channels; |
| 226 | 226 | ||
| 227 | /* Open device SD. */ | 227 | /* Open device SD. */ |
| 228 | void (* open) P_ ((struct sound_device *sd)); | 228 | void (* open) (struct sound_device *sd); |
| 229 | 229 | ||
| 230 | /* Close device SD. */ | 230 | /* Close device SD. */ |
| 231 | void (* close) P_ ((struct sound_device *sd)); | 231 | void (* close) (struct sound_device *sd); |
| 232 | 232 | ||
| 233 | /* Configure SD accoring to device-dependent parameters. */ | 233 | /* Configure SD accoring to device-dependent parameters. */ |
| 234 | void (* configure) P_ ((struct sound_device *device)); | 234 | void (* configure) (struct sound_device *device); |
| 235 | 235 | ||
| 236 | /* Choose a device-dependent format for outputting sound S. */ | 236 | /* Choose a device-dependent format for outputting sound S. */ |
| 237 | void (* choose_format) P_ ((struct sound_device *sd, | 237 | void (* choose_format) (struct sound_device *sd, |
| 238 | struct sound *s)); | 238 | struct sound *s); |
| 239 | 239 | ||
| 240 | /* Return a preferred data size in bytes to be sent to write (below) | 240 | /* Return a preferred data size in bytes to be sent to write (below) |
| 241 | each time. 2048 is used if this is NULL. */ | 241 | each time. 2048 is used if this is NULL. */ |
| 242 | int (* period_size) P_ ((struct sound_device *sd)); | 242 | int (* period_size) (struct sound_device *sd); |
| 243 | 243 | ||
| 244 | /* Write NYBTES bytes from BUFFER to device SD. */ | 244 | /* Write NYBTES bytes from BUFFER to device SD. */ |
| 245 | void (* write) P_ ((struct sound_device *sd, const char *buffer, | 245 | void (* write) (struct sound_device *sd, const char *buffer, |
| 246 | int nbytes)); | 246 | int nbytes); |
| 247 | 247 | ||
| 248 | /* A place for devices to store additional data. */ | 248 | /* A place for devices to store additional data. */ |
| 249 | void *data; | 249 | void *data; |
| @@ -279,7 +279,7 @@ struct sound | |||
| 279 | Lisp_Object data; | 279 | Lisp_Object data; |
| 280 | 280 | ||
| 281 | /* Play sound file S on device SD. */ | 281 | /* Play sound file S on device SD. */ |
| 282 | void (* play) P_ ((struct sound *s, struct sound_device *sd)); | 282 | void (* play) (struct sound *s, struct sound_device *sd); |
| 283 | }; | 283 | }; |
| 284 | 284 | ||
| 285 | /* These are set during `play-sound-internal' so that sound_cleanup has | 285 | /* These are set during `play-sound-internal' so that sound_cleanup has |
| @@ -290,30 +290,30 @@ struct sound *current_sound; | |||
| 290 | 290 | ||
| 291 | /* Function prototypes. */ | 291 | /* Function prototypes. */ |
| 292 | 292 | ||
| 293 | static void vox_open P_ ((struct sound_device *)); | 293 | static void vox_open (struct sound_device *); |
| 294 | static void vox_configure P_ ((struct sound_device *)); | 294 | static void vox_configure (struct sound_device *); |
| 295 | static void vox_close P_ ((struct sound_device *sd)); | 295 | static void vox_close (struct sound_device *sd); |
| 296 | static void vox_choose_format P_ ((struct sound_device *, struct sound *)); | 296 | static void vox_choose_format (struct sound_device *, struct sound *); |
| 297 | static int vox_init P_ ((struct sound_device *)); | 297 | static int vox_init (struct sound_device *); |
| 298 | static void vox_write P_ ((struct sound_device *, const char *, int)); | 298 | static void vox_write (struct sound_device *, const char *, int); |
| 299 | static void find_sound_type P_ ((struct sound *)); | 299 | static void find_sound_type (struct sound *); |
| 300 | static u_int32_t le2hl P_ ((u_int32_t)); | 300 | static u_int32_t le2hl (u_int32_t); |
| 301 | static u_int16_t le2hs P_ ((u_int16_t)); | 301 | static u_int16_t le2hs (u_int16_t); |
| 302 | static u_int32_t be2hl P_ ((u_int32_t)); | 302 | static u_int32_t be2hl (u_int32_t); |
| 303 | static int wav_init P_ ((struct sound *)); | 303 | static int wav_init (struct sound *); |
| 304 | static void wav_play P_ ((struct sound *, struct sound_device *)); | 304 | static void wav_play (struct sound *, struct sound_device *); |
| 305 | static int au_init P_ ((struct sound *)); | 305 | static int au_init (struct sound *); |
| 306 | static void au_play P_ ((struct sound *, struct sound_device *)); | 306 | static void au_play (struct sound *, struct sound_device *); |
| 307 | 307 | ||
| 308 | #if 0 /* Currently not used. */ | 308 | #if 0 /* Currently not used. */ |
| 309 | static u_int16_t be2hs P_ ((u_int16_t)); | 309 | static u_int16_t be2hs (u_int16_t); |
| 310 | #endif | 310 | #endif |
| 311 | 311 | ||
| 312 | /* END: Non Windows Definitions */ | 312 | /* END: Non Windows Definitions */ |
| 313 | #else /* WINDOWSNT */ | 313 | #else /* WINDOWSNT */ |
| 314 | 314 | ||
| 315 | /* BEGIN: Windows Specific Definitions */ | 315 | /* BEGIN: Windows Specific Definitions */ |
| 316 | static int do_play_sound P_ ((const char *, unsigned long)); | 316 | static int do_play_sound (const char *, unsigned long); |
| 317 | /* | 317 | /* |
| 318 | END: Windows Specific Definitions */ | 318 | END: Windows Specific Definitions */ |
| 319 | #endif /* WINDOWSNT */ | 319 | #endif /* WINDOWSNT */ |
diff --git a/src/strftime.c b/src/strftime.c index 7a9506e55d3..e96d8a92332 100644 --- a/src/strftime.c +++ b/src/strftime.c | |||
| @@ -187,7 +187,7 @@ extern char *tzname[]; | |||
| 187 | Similarly for localtime_r. */ | 187 | Similarly for localtime_r. */ |
| 188 | 188 | ||
| 189 | # if ! HAVE_TM_GMTOFF | 189 | # if ! HAVE_TM_GMTOFF |
| 190 | static struct tm *my_strftime_gmtime_r __P ((const time_t *, struct tm *)); | 190 | static struct tm *my_strftime_gmtime_r (const time_t *, struct tm *); |
| 191 | static struct tm * | 191 | static struct tm * |
| 192 | my_strftime_gmtime_r (t, tp) | 192 | my_strftime_gmtime_r (t, tp) |
| 193 | const time_t *t; | 193 | const time_t *t; |
| @@ -200,7 +200,7 @@ my_strftime_gmtime_r (t, tp) | |||
| 200 | return tp; | 200 | return tp; |
| 201 | } | 201 | } |
| 202 | 202 | ||
| 203 | static struct tm *my_strftime_localtime_r __P ((const time_t *, struct tm *)); | 203 | static struct tm *my_strftime_localtime_r (const time_t *, struct tm *); |
| 204 | static struct tm * | 204 | static struct tm * |
| 205 | my_strftime_localtime_r (t, tp) | 205 | my_strftime_localtime_r (t, tp) |
| 206 | const time_t *t; | 206 | const time_t *t; |
| @@ -371,8 +371,8 @@ static const CHAR_T zeroes[16] = /* "0000000000000000" */ | |||
| 371 | more reliable way to accept other sets of digits. */ | 371 | more reliable way to accept other sets of digits. */ |
| 372 | #define ISDIGIT(Ch) ((unsigned int) (Ch) - L_('0') <= 9) | 372 | #define ISDIGIT(Ch) ((unsigned int) (Ch) - L_('0') <= 9) |
| 373 | 373 | ||
| 374 | static CHAR_T *memcpy_lowcase __P ((CHAR_T *dest, const CHAR_T *src, | 374 | static CHAR_T *memcpy_lowcase (CHAR_T *dest, const CHAR_T *src, |
| 375 | size_t len LOCALE_PARAM_PROTO)); | 375 | size_t len LOCALE_PARAM_PROTO); |
| 376 | 376 | ||
| 377 | static CHAR_T * | 377 | static CHAR_T * |
| 378 | memcpy_lowcase (dest, src, len LOCALE_PARAM) | 378 | memcpy_lowcase (dest, src, len LOCALE_PARAM) |
| @@ -386,8 +386,8 @@ memcpy_lowcase (dest, src, len LOCALE_PARAM) | |||
| 386 | return dest; | 386 | return dest; |
| 387 | } | 387 | } |
| 388 | 388 | ||
| 389 | static CHAR_T *memcpy_uppcase __P ((CHAR_T *dest, const CHAR_T *src, | 389 | static CHAR_T *memcpy_uppcase (CHAR_T *dest, const CHAR_T *src, |
| 390 | size_t len LOCALE_PARAM_PROTO)); | 390 | size_t len LOCALE_PARAM_PROTO); |
| 391 | 391 | ||
| 392 | static CHAR_T * | 392 | static CHAR_T * |
| 393 | memcpy_uppcase (dest, src, len LOCALE_PARAM) | 393 | memcpy_uppcase (dest, src, len LOCALE_PARAM) |
| @@ -406,7 +406,7 @@ memcpy_uppcase (dest, src, len LOCALE_PARAM) | |||
| 406 | /* Yield the difference between *A and *B, | 406 | /* Yield the difference between *A and *B, |
| 407 | measured in seconds, ignoring leap seconds. */ | 407 | measured in seconds, ignoring leap seconds. */ |
| 408 | # define tm_diff ftime_tm_diff | 408 | # define tm_diff ftime_tm_diff |
| 409 | static int tm_diff __P ((const struct tm *, const struct tm *)); | 409 | static int tm_diff (const struct tm *, const struct tm *); |
| 410 | static int | 410 | static int |
| 411 | tm_diff (a, b) | 411 | tm_diff (a, b) |
| 412 | const struct tm *a; | 412 | const struct tm *a; |
| @@ -440,7 +440,7 @@ tm_diff (a, b) | |||
| 440 | #define ISO_WEEK_START_WDAY 1 /* Monday */ | 440 | #define ISO_WEEK_START_WDAY 1 /* Monday */ |
| 441 | #define ISO_WEEK1_WDAY 4 /* Thursday */ | 441 | #define ISO_WEEK1_WDAY 4 /* Thursday */ |
| 442 | #define YDAY_MINIMUM (-366) | 442 | #define YDAY_MINIMUM (-366) |
| 443 | static int iso_week_days __P ((int, int)); | 443 | static int iso_week_days (int, int); |
| 444 | #ifdef __GNUC__ | 444 | #ifdef __GNUC__ |
| 445 | __inline__ | 445 | __inline__ |
| 446 | #endif | 446 | #endif |
| @@ -499,8 +499,8 @@ static CHAR_T const month_name[][10] = | |||
| 499 | #if !defined _LIBC && !defined(WINDOWSNT) && HAVE_TZNAME && HAVE_TZSET | 499 | #if !defined _LIBC && !defined(WINDOWSNT) && HAVE_TZNAME && HAVE_TZSET |
| 500 | /* Solaris 2.5 tzset sometimes modifies the storage returned by localtime. | 500 | /* Solaris 2.5 tzset sometimes modifies the storage returned by localtime. |
| 501 | Work around this bug by copying *tp before it might be munged. */ | 501 | Work around this bug by copying *tp before it might be munged. */ |
| 502 | size_t _strftime_copytm __P ((char *, size_t, const char *, | 502 | size_t _strftime_copytm (char *, size_t, const char *, |
| 503 | const struct tm * extra_args_spec_iso)); | 503 | const struct tm * extra_args_spec_iso); |
| 504 | size_t | 504 | size_t |
| 505 | my_strftime (s, maxsize, format, tp extra_args) | 505 | my_strftime (s, maxsize, format, tp extra_args) |
| 506 | CHAR_T *s; | 506 | CHAR_T *s; |
diff --git a/src/syntax.c b/src/syntax.c index 4741fa260d2..4cead52f958 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -98,13 +98,13 @@ static EMACS_INT find_start_begv; | |||
| 98 | static int find_start_modiff; | 98 | static int find_start_modiff; |
| 99 | 99 | ||
| 100 | 100 | ||
| 101 | static Lisp_Object skip_chars P_ ((int, Lisp_Object, Lisp_Object, int)); | 101 | static Lisp_Object skip_chars (int, Lisp_Object, Lisp_Object, int); |
| 102 | static Lisp_Object skip_syntaxes P_ ((int, Lisp_Object, Lisp_Object)); | 102 | static Lisp_Object skip_syntaxes (int, Lisp_Object, Lisp_Object); |
| 103 | static Lisp_Object scan_lists P_ ((EMACS_INT, EMACS_INT, EMACS_INT, int)); | 103 | static Lisp_Object scan_lists (EMACS_INT, EMACS_INT, EMACS_INT, int); |
| 104 | static void scan_sexps_forward P_ ((struct lisp_parse_state *, | 104 | static void scan_sexps_forward (struct lisp_parse_state *, |
| 105 | EMACS_INT, EMACS_INT, EMACS_INT, int, | 105 | EMACS_INT, EMACS_INT, EMACS_INT, int, |
| 106 | int, Lisp_Object, int)); | 106 | int, Lisp_Object, int); |
| 107 | static int in_classes P_ ((int, Lisp_Object)); | 107 | static int in_classes (int, Lisp_Object); |
| 108 | 108 | ||
| 109 | 109 | ||
| 110 | struct gl_state_s gl_state; /* Global state of syntax parser. */ | 110 | struct gl_state_s gl_state; /* Global state of syntax parser. */ |
diff --git a/src/sysdep.c b/src/sysdep.c index e311d181c9c..a026cd014a2 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -169,7 +169,7 @@ static const int baud_convert[] = | |||
| 169 | 169 | ||
| 170 | int emacs_ospeed; | 170 | int emacs_ospeed; |
| 171 | 171 | ||
| 172 | void croak P_ ((char *)) NO_RETURN; | 172 | void croak (char *) NO_RETURN; |
| 173 | 173 | ||
| 174 | /* Temporary used by `sigblock' when defined in terms of signprocmask. */ | 174 | /* Temporary used by `sigblock' when defined in terms of signprocmask. */ |
| 175 | 175 | ||
| @@ -561,11 +561,11 @@ child_setup_tty (out) | |||
| 561 | struct save_signal | 561 | struct save_signal |
| 562 | { | 562 | { |
| 563 | int code; | 563 | int code; |
| 564 | SIGTYPE (*handler) P_ ((int)); | 564 | SIGTYPE (*handler) (int); |
| 565 | }; | 565 | }; |
| 566 | 566 | ||
| 567 | static void save_signal_handlers P_ ((struct save_signal *)); | 567 | static void save_signal_handlers (struct save_signal *); |
| 568 | static void restore_signal_handlers P_ ((struct save_signal *)); | 568 | static void restore_signal_handlers (struct save_signal *); |
| 569 | 569 | ||
| 570 | /* Suspend the Emacs process; give terminal to its superior. */ | 570 | /* Suspend the Emacs process; give terminal to its superior. */ |
| 571 | 571 | ||
| @@ -725,7 +725,7 @@ save_signal_handlers (saved_handlers) | |||
| 725 | while (saved_handlers->code) | 725 | while (saved_handlers->code) |
| 726 | { | 726 | { |
| 727 | saved_handlers->handler | 727 | saved_handlers->handler |
| 728 | = (SIGTYPE (*) P_ ((int))) signal (saved_handlers->code, SIG_IGN); | 728 | = (SIGTYPE (*) (int)) signal (saved_handlers->code, SIG_IGN); |
| 729 | saved_handlers++; | 729 | saved_handlers++; |
| 730 | } | 730 | } |
| 731 | } | 731 | } |
diff --git a/src/term.c b/src/term.c index fad6e3c80d7..64e329ec602 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -66,10 +66,10 @@ static int been_here = -1; | |||
| 66 | /* For now, don't try to include termcap.h. On some systems, | 66 | /* For now, don't try to include termcap.h. On some systems, |
| 67 | configure finds a non-standard termcap.h that the main build | 67 | configure finds a non-standard termcap.h that the main build |
| 68 | won't find. */ | 68 | won't find. */ |
| 69 | extern void tputs P_ ((const char *, int, int (*)(int))); | 69 | extern void tputs (const char *, int, int (*)(int)); |
| 70 | extern int tgetent P_ ((char *, const char *)); | 70 | extern int tgetent (char *, const char *); |
| 71 | extern int tgetflag P_ ((char *id)); | 71 | extern int tgetflag (char *id); |
| 72 | extern int tgetnum P_ ((char *id)); | 72 | extern int tgetnum (char *id); |
| 73 | 73 | ||
| 74 | #include "cm.h" | 74 | #include "cm.h" |
| 75 | #ifdef HAVE_X_WINDOWS | 75 | #ifdef HAVE_X_WINDOWS |
| @@ -91,16 +91,16 @@ extern int tgetnum P_ ((char *id)); | |||
| 91 | #define DEV_TTY "/dev/tty" | 91 | #define DEV_TTY "/dev/tty" |
| 92 | #endif | 92 | #endif |
| 93 | 93 | ||
| 94 | static void tty_set_scroll_region P_ ((struct frame *f, int start, int stop)); | 94 | static void tty_set_scroll_region (struct frame *f, int start, int stop); |
| 95 | static void turn_on_face P_ ((struct frame *, int face_id)); | 95 | static void turn_on_face (struct frame *, int face_id); |
| 96 | static void turn_off_face P_ ((struct frame *, int face_id)); | 96 | static void turn_off_face (struct frame *, int face_id); |
| 97 | static void tty_show_cursor P_ ((struct tty_display_info *)); | 97 | static void tty_show_cursor (struct tty_display_info *); |
| 98 | static void tty_hide_cursor P_ ((struct tty_display_info *)); | 98 | static void tty_hide_cursor (struct tty_display_info *); |
| 99 | static void tty_background_highlight P_ ((struct tty_display_info *tty)); | 99 | static void tty_background_highlight (struct tty_display_info *tty); |
| 100 | static void clear_tty_hooks P_ ((struct terminal *terminal)); | 100 | static void clear_tty_hooks (struct terminal *terminal); |
| 101 | static void set_tty_hooks P_ ((struct terminal *terminal)); | 101 | static void set_tty_hooks (struct terminal *terminal); |
| 102 | static void dissociate_if_controlling_tty P_ ((int fd)); | 102 | static void dissociate_if_controlling_tty (int fd); |
| 103 | static void delete_tty P_ ((struct terminal *)); | 103 | static void delete_tty (struct terminal *); |
| 104 | 104 | ||
| 105 | #define OUTPUT(tty, a) \ | 105 | #define OUTPUT(tty, a) \ |
| 106 | emacs_tputs ((tty), a, \ | 106 | emacs_tputs ((tty), a, \ |
| @@ -1517,10 +1517,10 @@ term_get_fkeys_1 () | |||
| 1517 | #define produce_composite_glyph produce_composite_glyph_term | 1517 | #define produce_composite_glyph produce_composite_glyph_term |
| 1518 | #endif | 1518 | #endif |
| 1519 | 1519 | ||
| 1520 | static void append_glyph P_ ((struct it *)); | 1520 | static void append_glyph (struct it *); |
| 1521 | static void produce_stretch_glyph P_ ((struct it *)); | 1521 | static void produce_stretch_glyph (struct it *); |
| 1522 | static void append_composite_glyph P_ ((struct it *)); | 1522 | static void append_composite_glyph (struct it *); |
| 1523 | static void produce_composite_glyph P_ ((struct it *)); | 1523 | static void produce_composite_glyph (struct it *); |
| 1524 | 1524 | ||
| 1525 | /* Append glyphs to IT's glyph_row. Called from produce_glyphs for | 1525 | /* Append glyphs to IT's glyph_row. Called from produce_glyphs for |
| 1526 | terminal frames if IT->glyph_row != NULL. IT->char_to_display is | 1526 | terminal frames if IT->glyph_row != NULL. IT->char_to_display is |
diff --git a/src/terminal.c b/src/terminal.c index 45d918a2bd4..7693bc3ad40 100644 --- a/src/terminal.c +++ b/src/terminal.c | |||
| @@ -40,7 +40,7 @@ struct terminal *initial_terminal; | |||
| 40 | /* Function to use to ring the bell. */ | 40 | /* Function to use to ring the bell. */ |
| 41 | Lisp_Object Vring_bell_function; | 41 | Lisp_Object Vring_bell_function; |
| 42 | 42 | ||
| 43 | static void delete_initial_terminal P_ ((struct terminal *)); | 43 | static void delete_initial_terminal (struct terminal *); |
| 44 | 44 | ||
| 45 | 45 | ||
| 46 | 46 | ||
diff --git a/src/textprop.c b/src/textprop.c index 83d09cce558..7e2f2b8f4db 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -78,7 +78,7 @@ Lisp_Object Vtext_property_default_nonsticky; | |||
| 78 | Lisp_Object interval_insert_behind_hooks; | 78 | Lisp_Object interval_insert_behind_hooks; |
| 79 | Lisp_Object interval_insert_in_front_hooks; | 79 | Lisp_Object interval_insert_in_front_hooks; |
| 80 | 80 | ||
| 81 | static void text_read_only P_ ((Lisp_Object)) NO_RETURN; | 81 | static void text_read_only (Lisp_Object) NO_RETURN; |
| 82 | 82 | ||
| 83 | 83 | ||
| 84 | /* Signal a `text-read-only' error. This function makes it easier | 84 | /* Signal a `text-read-only' error. This function makes it easier |
diff --git a/src/unexalpha.c b/src/unexalpha.c index 13c1def5714..196742a19aa 100644 --- a/src/unexalpha.c +++ b/src/unexalpha.c | |||
| @@ -81,10 +81,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 81 | #define _SBSS ".sbss" | 81 | #define _SBSS ".sbss" |
| 82 | #endif /* __NetBSD__ || __OpenBSD__ */ | 82 | #endif /* __NetBSD__ || __OpenBSD__ */ |
| 83 | 83 | ||
| 84 | static void fatal_unexec __P ((char *, char *)); | 84 | static void fatal_unexec (char *, char *); |
| 85 | static void mark_x __P ((char *)); | 85 | static void mark_x (char *); |
| 86 | 86 | ||
| 87 | static void update_dynamic_symbols __P ((char *, char *, int, struct aouthdr)); | 87 | static void update_dynamic_symbols (char *, char *, int, struct aouthdr); |
| 88 | 88 | ||
| 89 | #define READ(_fd, _buffer, _size, _error_message, _error_arg) \ | 89 | #define READ(_fd, _buffer, _size, _error_message, _error_arg) \ |
| 90 | errno = EEOF; \ | 90 | errno = EEOF; \ |
diff --git a/src/w32console.c b/src/w32console.c index dcebe466e32..34715ccfd52 100644 --- a/src/w32console.c +++ b/src/w32console.c | |||
| @@ -286,8 +286,8 @@ w32con_insert_glyphs (struct frame *f, register struct glyph *start, register in | |||
| 286 | } | 286 | } |
| 287 | } | 287 | } |
| 288 | 288 | ||
| 289 | extern unsigned char *encode_terminal_code P_ ((struct glyph *, int, | 289 | extern unsigned char *encode_terminal_code (struct glyph *, int, |
| 290 | struct coding_system *)); | 290 | struct coding_system *); |
| 291 | 291 | ||
| 292 | static void | 292 | static void |
| 293 | w32con_write_glyphs (struct frame *f, register struct glyph *string, | 293 | w32con_write_glyphs (struct frame *f, register struct glyph *string, |
diff --git a/src/w32fns.c b/src/w32fns.c index f498539a568..f371bd36fa5 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -74,10 +74,10 @@ void globals_of_w32fns (); | |||
| 74 | 74 | ||
| 75 | extern void free_frame_menubar (); | 75 | extern void free_frame_menubar (); |
| 76 | extern double atof (); | 76 | extern double atof (); |
| 77 | extern int w32_console_toggle_lock_key P_ ((int, Lisp_Object)); | 77 | extern int w32_console_toggle_lock_key (int, Lisp_Object); |
| 78 | extern void w32_menu_display_help P_ ((HWND, HMENU, UINT, UINT)); | 78 | extern void w32_menu_display_help (HWND, HMENU, UINT, UINT); |
| 79 | extern void w32_free_menu_strings P_ ((HWND)); | 79 | extern void w32_free_menu_strings (HWND); |
| 80 | extern const char *map_w32_filename P_ ((const char *, const char **)); | 80 | extern const char *map_w32_filename (const char *, const char **); |
| 81 | 81 | ||
| 82 | extern int quit_char; | 82 | extern int quit_char; |
| 83 | 83 | ||
| @@ -320,8 +320,8 @@ extern void syms_of_w32uniscribe (); | |||
| 320 | extern int uniscribe_available; | 320 | extern int uniscribe_available; |
| 321 | 321 | ||
| 322 | /* Function prototypes for hourglass support. */ | 322 | /* Function prototypes for hourglass support. */ |
| 323 | static void w32_show_hourglass P_ ((struct frame *)); | 323 | static void w32_show_hourglass (struct frame *); |
| 324 | static void w32_hide_hourglass P_ ((void)); | 324 | static void w32_hide_hourglass (void); |
| 325 | 325 | ||
| 326 | 326 | ||
| 327 | 327 | ||
| @@ -420,26 +420,26 @@ x_window_to_frame (dpyinfo, wdesc) | |||
| 420 | } | 420 | } |
| 421 | 421 | ||
| 422 | 422 | ||
| 423 | static Lisp_Object unwind_create_frame P_ ((Lisp_Object)); | 423 | static Lisp_Object unwind_create_frame (Lisp_Object); |
| 424 | static Lisp_Object unwind_create_tip_frame P_ ((Lisp_Object)); | 424 | static Lisp_Object unwind_create_tip_frame (Lisp_Object); |
| 425 | static void my_create_window P_ ((struct frame *)); | 425 | static void my_create_window (struct frame *); |
| 426 | static void my_create_tip_window P_ ((struct frame *)); | 426 | static void my_create_tip_window (struct frame *); |
| 427 | 427 | ||
| 428 | /* TODO: Native Input Method support; see x_create_im. */ | 428 | /* TODO: Native Input Method support; see x_create_im. */ |
| 429 | void x_set_foreground_color P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 429 | void x_set_foreground_color (struct frame *, Lisp_Object, Lisp_Object); |
| 430 | void x_set_background_color P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 430 | void x_set_background_color (struct frame *, Lisp_Object, Lisp_Object); |
| 431 | void x_set_mouse_color P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 431 | void x_set_mouse_color (struct frame *, Lisp_Object, Lisp_Object); |
| 432 | void x_set_cursor_color P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 432 | void x_set_cursor_color (struct frame *, Lisp_Object, Lisp_Object); |
| 433 | void x_set_border_color P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 433 | void x_set_border_color (struct frame *, Lisp_Object, Lisp_Object); |
| 434 | void x_set_cursor_type P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 434 | void x_set_cursor_type (struct frame *, Lisp_Object, Lisp_Object); |
| 435 | void x_set_icon_type P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 435 | void x_set_icon_type (struct frame *, Lisp_Object, Lisp_Object); |
| 436 | void x_set_icon_name P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 436 | void x_set_icon_name (struct frame *, Lisp_Object, Lisp_Object); |
| 437 | void x_explicitly_set_name P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 437 | void x_explicitly_set_name (struct frame *, Lisp_Object, Lisp_Object); |
| 438 | void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 438 | void x_set_menu_bar_lines (struct frame *, Lisp_Object, Lisp_Object); |
| 439 | void x_set_title P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 439 | void x_set_title (struct frame *, Lisp_Object, Lisp_Object); |
| 440 | void x_set_tool_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 440 | void x_set_tool_bar_lines (struct frame *, Lisp_Object, Lisp_Object); |
| 441 | static void x_edge_detection P_ ((struct frame *, struct image *, Lisp_Object, | 441 | static void x_edge_detection (struct frame *, struct image *, Lisp_Object, |
| 442 | Lisp_Object)); | 442 | Lisp_Object); |
| 443 | 443 | ||
| 444 | 444 | ||
| 445 | 445 | ||
| @@ -5360,10 +5360,10 @@ w32_hide_hourglass () | |||
| 5360 | Tool tips | 5360 | Tool tips |
| 5361 | ***********************************************************************/ | 5361 | ***********************************************************************/ |
| 5362 | 5362 | ||
| 5363 | static Lisp_Object x_create_tip_frame P_ ((struct w32_display_info *, | 5363 | static Lisp_Object x_create_tip_frame (struct w32_display_info *, |
| 5364 | Lisp_Object, Lisp_Object)); | 5364 | Lisp_Object, Lisp_Object); |
| 5365 | static void compute_tip_xy P_ ((struct frame *, Lisp_Object, Lisp_Object, | 5365 | static void compute_tip_xy (struct frame *, Lisp_Object, Lisp_Object, |
| 5366 | Lisp_Object, int, int, int *, int *)); | 5366 | Lisp_Object, int, int, int *, int *); |
| 5367 | 5367 | ||
| 5368 | /* The frame of a currently visible tooltip. */ | 5368 | /* The frame of a currently visible tooltip. */ |
| 5369 | 5369 | ||
diff --git a/src/w32font.c b/src/w32font.c index e93dbca2ddb..ab56eb9e4d2 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -106,28 +106,28 @@ static Lisp_Object Vw32_charset_info_alist; | |||
| 106 | /* Font spacing symbols - defined in font.c. */ | 106 | /* Font spacing symbols - defined in font.c. */ |
| 107 | extern Lisp_Object Qc, Qp, Qm; | 107 | extern Lisp_Object Qc, Qp, Qm; |
| 108 | 108 | ||
| 109 | static void fill_in_logfont P_ ((FRAME_PTR, LOGFONT *, Lisp_Object)); | 109 | static void fill_in_logfont (FRAME_PTR, LOGFONT *, Lisp_Object); |
| 110 | 110 | ||
| 111 | static BYTE w32_antialias_type P_ ((Lisp_Object)); | 111 | static BYTE w32_antialias_type (Lisp_Object); |
| 112 | static Lisp_Object lispy_antialias_type P_ ((BYTE)); | 112 | static Lisp_Object lispy_antialias_type (BYTE); |
| 113 | 113 | ||
| 114 | static Lisp_Object font_supported_scripts P_ ((FONTSIGNATURE *)); | 114 | static Lisp_Object font_supported_scripts (FONTSIGNATURE *); |
| 115 | static int w32font_full_name P_ ((LOGFONT *, Lisp_Object, int, char *, int)); | 115 | static int w32font_full_name (LOGFONT *, Lisp_Object, int, char *, int); |
| 116 | static void compute_metrics P_ ((HDC, struct w32font_info *, unsigned int, | 116 | static void compute_metrics (HDC, struct w32font_info *, unsigned int, |
| 117 | struct w32_metric_cache *)); | 117 | struct w32_metric_cache *); |
| 118 | 118 | ||
| 119 | static Lisp_Object w32_registry P_ ((LONG, DWORD)); | 119 | static Lisp_Object w32_registry (LONG, DWORD); |
| 120 | 120 | ||
| 121 | /* EnumFontFamiliesEx callbacks. */ | 121 | /* EnumFontFamiliesEx callbacks. */ |
| 122 | static int CALLBACK add_font_entity_to_list P_ ((ENUMLOGFONTEX *, | 122 | static int CALLBACK add_font_entity_to_list (ENUMLOGFONTEX *, |
| 123 | NEWTEXTMETRICEX *, | ||
| 124 | DWORD, LPARAM); | ||
| 125 | static int CALLBACK add_one_font_entity_to_list (ENUMLOGFONTEX *, | ||
| 123 | NEWTEXTMETRICEX *, | 126 | NEWTEXTMETRICEX *, |
| 124 | DWORD, LPARAM)); | 127 | DWORD, LPARAM); |
| 125 | static int CALLBACK add_one_font_entity_to_list P_ ((ENUMLOGFONTEX *, | 128 | static int CALLBACK add_font_name_to_list (ENUMLOGFONTEX *, |
| 126 | NEWTEXTMETRICEX *, | 129 | NEWTEXTMETRICEX *, |
| 127 | DWORD, LPARAM)); | 130 | DWORD, LPARAM); |
| 128 | static int CALLBACK add_font_name_to_list P_ ((ENUMLOGFONTEX *, | ||
| 129 | NEWTEXTMETRICEX *, | ||
| 130 | DWORD, LPARAM)); | ||
| 131 | 131 | ||
| 132 | /* struct passed in as LPARAM arg to EnumFontFamiliesEx, for keeping track | 132 | /* struct passed in as LPARAM arg to EnumFontFamiliesEx, for keeping track |
| 133 | of what we really want. */ | 133 | of what we really want. */ |
| @@ -149,7 +149,7 @@ struct font_callback_data | |||
| 149 | 149 | ||
| 150 | /* Handles the problem that EnumFontFamiliesEx will not return all | 150 | /* Handles the problem that EnumFontFamiliesEx will not return all |
| 151 | style variations if the font name is not specified. */ | 151 | style variations if the font name is not specified. */ |
| 152 | static void list_all_matching_fonts P_ ((struct font_callback_data *)); | 152 | static void list_all_matching_fonts (struct font_callback_data *); |
| 153 | 153 | ||
| 154 | 154 | ||
| 155 | static int | 155 | static int |
| @@ -971,8 +971,8 @@ add_font_name_to_list (logical_font, physical_font, font_type, list_object) | |||
| 971 | return 1; | 971 | return 1; |
| 972 | } | 972 | } |
| 973 | 973 | ||
| 974 | static int w32_decode_weight P_ ((int)); | 974 | static int w32_decode_weight (int); |
| 975 | static int w32_encode_weight P_ ((int)); | 975 | static int w32_encode_weight (int); |
| 976 | 976 | ||
| 977 | /* Convert an enumerated Windows font to an Emacs font entity. */ | 977 | /* Convert an enumerated Windows font to an Emacs font entity. */ |
| 978 | static Lisp_Object | 978 | static Lisp_Object |
diff --git a/src/w32menu.c b/src/w32menu.c index 73fba8108c6..2c8a5308d3b 100644 --- a/src/w32menu.c +++ b/src/w32menu.c | |||
| @@ -90,16 +90,16 @@ extern Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; | |||
| 90 | 90 | ||
| 91 | extern Lisp_Object Qmenu_bar_update_hook; | 91 | extern Lisp_Object Qmenu_bar_update_hook; |
| 92 | 92 | ||
| 93 | void set_frame_menubar P_ ((FRAME_PTR, int, int)); | 93 | void set_frame_menubar (FRAME_PTR, int, int); |
| 94 | 94 | ||
| 95 | #ifdef HAVE_DIALOGS | 95 | #ifdef HAVE_DIALOGS |
| 96 | static Lisp_Object w32_dialog_show P_ ((FRAME_PTR, int, Lisp_Object, char**)); | 96 | static Lisp_Object w32_dialog_show (FRAME_PTR, int, Lisp_Object, char**); |
| 97 | #else | 97 | #else |
| 98 | static int is_simple_dialog P_ ((Lisp_Object)); | 98 | static int is_simple_dialog (Lisp_Object); |
| 99 | static Lisp_Object simple_dialog_show P_ ((FRAME_PTR, Lisp_Object, Lisp_Object)); | 99 | static Lisp_Object simple_dialog_show (FRAME_PTR, Lisp_Object, Lisp_Object); |
| 100 | #endif | 100 | #endif |
| 101 | 101 | ||
| 102 | void w32_free_menu_strings P_((HWND)); | 102 | void w32_free_menu_strings (HWND); |
| 103 | 103 | ||
| 104 | 104 | ||
| 105 | /* This is set nonzero after the user activates the menu bar, and set | 105 | /* This is set nonzero after the user activates the menu bar, and set |
diff --git a/src/w32term.c b/src/w32term.c index 0b71b7e02b7..1acb77e7b16 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -234,43 +234,43 @@ extern EMACS_INT extra_keyboard_modifiers; | |||
| 234 | /* Keyboard code page - may be changed by language-change events. */ | 234 | /* Keyboard code page - may be changed by language-change events. */ |
| 235 | static int keyboard_codepage; | 235 | static int keyboard_codepage; |
| 236 | 236 | ||
| 237 | static void x_update_window_end P_ ((struct window *, int, int)); | 237 | static void x_update_window_end (struct window *, int, int); |
| 238 | static void w32_handle_tool_bar_click P_ ((struct frame *, | 238 | static void w32_handle_tool_bar_click (struct frame *, |
| 239 | struct input_event *)); | 239 | struct input_event *); |
| 240 | static void w32_define_cursor P_ ((Window, Cursor)); | 240 | static void w32_define_cursor (Window, Cursor); |
| 241 | 241 | ||
| 242 | void x_lower_frame P_ ((struct frame *)); | 242 | void x_lower_frame (struct frame *); |
| 243 | void x_scroll_bar_clear P_ ((struct frame *)); | 243 | void x_scroll_bar_clear (struct frame *); |
| 244 | void x_wm_set_size_hint P_ ((struct frame *, long, int)); | 244 | void x_wm_set_size_hint (struct frame *, long, int); |
| 245 | void x_raise_frame P_ ((struct frame *)); | 245 | void x_raise_frame (struct frame *); |
| 246 | void x_set_window_size P_ ((struct frame *, int, int, int)); | 246 | void x_set_window_size (struct frame *, int, int, int); |
| 247 | void x_wm_set_window_state P_ ((struct frame *, int)); | 247 | void x_wm_set_window_state (struct frame *, int); |
| 248 | void x_wm_set_icon_pixmap P_ ((struct frame *, int)); | 248 | void x_wm_set_icon_pixmap (struct frame *, int); |
| 249 | static void w32_initialize P_ ((void)); | 249 | static void w32_initialize (void); |
| 250 | static void x_update_end P_ ((struct frame *)); | 250 | static void x_update_end (struct frame *); |
| 251 | static void w32_frame_up_to_date P_ ((struct frame *)); | 251 | static void w32_frame_up_to_date (struct frame *); |
| 252 | static void w32_set_terminal_modes P_ ((struct terminal *)); | 252 | static void w32_set_terminal_modes (struct terminal *); |
| 253 | static void w32_reset_terminal_modes P_ ((struct terminal *)); | 253 | static void w32_reset_terminal_modes (struct terminal *); |
| 254 | static void x_clear_frame P_ ((struct frame *)); | 254 | static void x_clear_frame (struct frame *); |
| 255 | static void frame_highlight P_ ((struct frame *)); | 255 | static void frame_highlight (struct frame *); |
| 256 | static void frame_unhighlight P_ ((struct frame *)); | 256 | static void frame_unhighlight (struct frame *); |
| 257 | static void x_new_focus_frame P_ ((struct w32_display_info *, | 257 | static void x_new_focus_frame (struct w32_display_info *, |
| 258 | struct frame *)); | 258 | struct frame *); |
| 259 | static void x_focus_changed P_ ((int, int, struct w32_display_info *, | 259 | static void x_focus_changed (int, int, struct w32_display_info *, |
| 260 | struct frame *, struct input_event *)); | 260 | struct frame *, struct input_event *); |
| 261 | static void w32_detect_focus_change P_ ((struct w32_display_info *, | 261 | static void w32_detect_focus_change (struct w32_display_info *, |
| 262 | W32Msg *, struct input_event *)); | 262 | W32Msg *, struct input_event *); |
| 263 | static void w32_frame_rehighlight P_ ((struct frame *)); | 263 | static void w32_frame_rehighlight (struct frame *); |
| 264 | static void x_frame_rehighlight P_ ((struct w32_display_info *)); | 264 | static void x_frame_rehighlight (struct w32_display_info *); |
| 265 | static void x_draw_hollow_cursor P_ ((struct window *, struct glyph_row *)); | 265 | static void x_draw_hollow_cursor (struct window *, struct glyph_row *); |
| 266 | static void x_draw_bar_cursor P_ ((struct window *, struct glyph_row *, int, | 266 | static void x_draw_bar_cursor (struct window *, struct glyph_row *, int, |
| 267 | enum text_cursor_kinds)); | 267 | enum text_cursor_kinds); |
| 268 | static void w32_clip_to_row P_ ((struct window *, struct glyph_row *, int, HDC)); | 268 | static void w32_clip_to_row (struct window *, struct glyph_row *, int, HDC); |
| 269 | static BOOL my_show_window P_ ((struct frame *, HWND, int)); | 269 | static BOOL my_show_window (struct frame *, HWND, int); |
| 270 | static void my_set_window_pos P_ ((HWND, HWND, int, int, int, int, UINT)); | 270 | static void my_set_window_pos (HWND, HWND, int, int, int, int, UINT); |
| 271 | static void my_set_focus P_ ((struct frame *, HWND)); | 271 | static void my_set_focus (struct frame *, HWND); |
| 272 | static void my_set_foreground_window P_ ((HWND)); | 272 | static void my_set_foreground_window (HWND); |
| 273 | static void my_destroy_window P_ ((struct frame *, HWND)); | 273 | static void my_destroy_window (struct frame *, HWND); |
| 274 | 274 | ||
| 275 | static Lisp_Object Qvendor_specific_keysyms; | 275 | static Lisp_Object Qvendor_specific_keysyms; |
| 276 | 276 | ||
| @@ -947,32 +947,32 @@ w32_reset_terminal_modes (struct terminal *term) | |||
| 947 | 947 | ||
| 948 | /* Function prototypes of this page. */ | 948 | /* Function prototypes of this page. */ |
| 949 | 949 | ||
| 950 | static void x_set_glyph_string_clipping P_ ((struct glyph_string *)); | 950 | static void x_set_glyph_string_clipping (struct glyph_string *); |
| 951 | static void x_set_glyph_string_gc P_ ((struct glyph_string *)); | 951 | static void x_set_glyph_string_gc (struct glyph_string *); |
| 952 | static void x_draw_glyph_string_background P_ ((struct glyph_string *, | 952 | static void x_draw_glyph_string_background (struct glyph_string *, |
| 953 | int)); | 953 | int); |
| 954 | static void x_draw_glyph_string_foreground P_ ((struct glyph_string *)); | 954 | static void x_draw_glyph_string_foreground (struct glyph_string *); |
| 955 | static void x_draw_composite_glyph_string_foreground P_ ((struct glyph_string *)); | 955 | static void x_draw_composite_glyph_string_foreground (struct glyph_string *); |
| 956 | static void x_draw_glyph_string_box P_ ((struct glyph_string *)); | 956 | static void x_draw_glyph_string_box (struct glyph_string *); |
| 957 | static void x_draw_glyph_string P_ ((struct glyph_string *)); | 957 | static void x_draw_glyph_string (struct glyph_string *); |
| 958 | static void x_set_cursor_gc P_ ((struct glyph_string *)); | 958 | static void x_set_cursor_gc (struct glyph_string *); |
| 959 | static void x_set_mode_line_face_gc P_ ((struct glyph_string *)); | 959 | static void x_set_mode_line_face_gc (struct glyph_string *); |
| 960 | static void x_set_mouse_face_gc P_ ((struct glyph_string *)); | 960 | static void x_set_mouse_face_gc (struct glyph_string *); |
| 961 | static int w32_alloc_lighter_color (struct frame *, COLORREF *, double, int); | 961 | static int w32_alloc_lighter_color (struct frame *, COLORREF *, double, int); |
| 962 | static void w32_setup_relief_color P_ ((struct frame *, struct relief *, | 962 | static void w32_setup_relief_color (struct frame *, struct relief *, |
| 963 | double, int, COLORREF)); | 963 | double, int, COLORREF); |
| 964 | static void x_setup_relief_colors P_ ((struct glyph_string *)); | 964 | static void x_setup_relief_colors (struct glyph_string *); |
| 965 | static void x_draw_image_glyph_string P_ ((struct glyph_string *)); | 965 | static void x_draw_image_glyph_string (struct glyph_string *); |
| 966 | static void x_draw_image_relief P_ ((struct glyph_string *)); | 966 | static void x_draw_image_relief (struct glyph_string *); |
| 967 | static void x_draw_image_foreground P_ ((struct glyph_string *)); | 967 | static void x_draw_image_foreground (struct glyph_string *); |
| 968 | static void w32_draw_image_foreground_1 P_ ((struct glyph_string *, HBITMAP)); | 968 | static void w32_draw_image_foreground_1 (struct glyph_string *, HBITMAP); |
| 969 | static void x_clear_glyph_string_rect P_ ((struct glyph_string *, int, | 969 | static void x_clear_glyph_string_rect (struct glyph_string *, int, |
| 970 | int, int, int)); | 970 | int, int, int); |
| 971 | static void w32_draw_relief_rect P_ ((struct frame *, int, int, int, int, | 971 | static void w32_draw_relief_rect (struct frame *, int, int, int, int, |
| 972 | int, int, int, int, int, int, | 972 | int, int, int, int, int, int, |
| 973 | RECT *)); | 973 | RECT *); |
| 974 | static void w32_draw_box_rect P_ ((struct glyph_string *, int, int, int, int, | 974 | static void w32_draw_box_rect (struct glyph_string *, int, int, int, int, |
| 975 | int, int, int, RECT *)); | 975 | int, int, int, RECT *); |
| 976 | 976 | ||
| 977 | 977 | ||
| 978 | /* Set S->gc to a suitable GC for drawing glyph string S in cursor | 978 | /* Set S->gc to a suitable GC for drawing glyph string S in cursor |
| @@ -3170,7 +3170,7 @@ note_mouse_movement (frame, msg) | |||
| 3170 | 3170 | ||
| 3171 | static struct scroll_bar *x_window_to_scroll_bar (); | 3171 | static struct scroll_bar *x_window_to_scroll_bar (); |
| 3172 | static void x_scroll_bar_report_motion (); | 3172 | static void x_scroll_bar_report_motion (); |
| 3173 | static void x_check_fullscreen P_ ((struct frame *)); | 3173 | static void x_check_fullscreen (struct frame *); |
| 3174 | 3174 | ||
| 3175 | static void | 3175 | static void |
| 3176 | redo_mouse_highlight () | 3176 | redo_mouse_highlight () |
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c index cfdf629ceee..9b5bd141d77 100644 --- a/src/w32uniscribe.c +++ b/src/w32uniscribe.c | |||
| @@ -57,9 +57,9 @@ extern int initialized; | |||
| 57 | extern struct font_driver uniscribe_font_driver; | 57 | extern struct font_driver uniscribe_font_driver; |
| 58 | 58 | ||
| 59 | /* EnumFontFamiliesEx callback. */ | 59 | /* EnumFontFamiliesEx callback. */ |
| 60 | static int CALLBACK add_opentype_font_name_to_list P_ ((ENUMLOGFONTEX *, | 60 | static int CALLBACK add_opentype_font_name_to_list (ENUMLOGFONTEX *, |
| 61 | NEWTEXTMETRICEX *, | 61 | NEWTEXTMETRICEX *, |
| 62 | DWORD, LPARAM)); | 62 | DWORD, LPARAM); |
| 63 | /* Used by uniscribe_otf_capability. */ | 63 | /* Used by uniscribe_otf_capability. */ |
| 64 | static Lisp_Object otf_features (HDC context, char *table); | 64 | static Lisp_Object otf_features (HDC context, char *table); |
| 65 | 65 | ||
diff --git a/src/window.c b/src/window.c index d77c6208693..950b9936497 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -59,32 +59,32 @@ Lisp_Object Qwindow_size_fixed; | |||
| 59 | 59 | ||
| 60 | extern Lisp_Object Qleft_margin, Qright_margin; | 60 | extern Lisp_Object Qleft_margin, Qright_margin; |
| 61 | 61 | ||
| 62 | static int displayed_window_lines P_ ((struct window *)); | 62 | static int displayed_window_lines (struct window *); |
| 63 | static struct window *decode_window P_ ((Lisp_Object)); | 63 | static struct window *decode_window (Lisp_Object); |
| 64 | static int count_windows P_ ((struct window *)); | 64 | static int count_windows (struct window *); |
| 65 | static int get_leaf_windows P_ ((struct window *, struct window **, int)); | 65 | static int get_leaf_windows (struct window *, struct window **, int); |
| 66 | static void window_scroll P_ ((Lisp_Object, int, int, int)); | 66 | static void window_scroll (Lisp_Object, int, int, int); |
| 67 | static void window_scroll_pixel_based P_ ((Lisp_Object, int, int, int)); | 67 | static void window_scroll_pixel_based (Lisp_Object, int, int, int); |
| 68 | static void window_scroll_line_based P_ ((Lisp_Object, int, int, int)); | 68 | static void window_scroll_line_based (Lisp_Object, int, int, int); |
| 69 | static int window_min_size_1 P_ ((struct window *, int, int)); | 69 | static int window_min_size_1 (struct window *, int, int); |
| 70 | static int window_min_size_2 P_ ((struct window *, int, int)); | 70 | static int window_min_size_2 (struct window *, int, int); |
| 71 | static int window_min_size P_ ((struct window *, int, int, int, int *)); | 71 | static int window_min_size (struct window *, int, int, int, int *); |
| 72 | static void size_window P_ ((Lisp_Object, int, int, int, int, int)); | 72 | static void size_window (Lisp_Object, int, int, int, int, int); |
| 73 | static int freeze_window_start P_ ((struct window *, void *)); | 73 | static int freeze_window_start (struct window *, void *); |
| 74 | static int window_fixed_size_p P_ ((struct window *, int, int)); | 74 | static int window_fixed_size_p (struct window *, int, int); |
| 75 | static void enlarge_window P_ ((Lisp_Object, int, int)); | 75 | static void enlarge_window (Lisp_Object, int, int); |
| 76 | static Lisp_Object window_list P_ ((void)); | 76 | static Lisp_Object window_list (void); |
| 77 | static int add_window_to_list P_ ((struct window *, void *)); | 77 | static int add_window_to_list (struct window *, void *); |
| 78 | static int candidate_window_p P_ ((Lisp_Object, Lisp_Object, Lisp_Object, | 78 | static int candidate_window_p (Lisp_Object, Lisp_Object, Lisp_Object, |
| 79 | Lisp_Object)); | 79 | Lisp_Object); |
| 80 | static Lisp_Object next_window P_ ((Lisp_Object, Lisp_Object, | 80 | static Lisp_Object next_window (Lisp_Object, Lisp_Object, |
| 81 | Lisp_Object, int)); | 81 | Lisp_Object, int); |
| 82 | static void decode_next_window_args P_ ((Lisp_Object *, Lisp_Object *, | 82 | static void decode_next_window_args (Lisp_Object *, Lisp_Object *, |
| 83 | Lisp_Object *)); | 83 | Lisp_Object *); |
| 84 | static int foreach_window_1 P_ ((struct window *, | 84 | static int foreach_window_1 (struct window *, |
| 85 | int (* fn) (struct window *, void *), | 85 | int (* fn) (struct window *, void *), |
| 86 | void *)); | 86 | void *); |
| 87 | static Lisp_Object window_list_1 P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); | 87 | static Lisp_Object window_list_1 (Lisp_Object, Lisp_Object, Lisp_Object); |
| 88 | 88 | ||
| 89 | /* This is the window in which the terminal's cursor should | 89 | /* This is the window in which the terminal's cursor should |
| 90 | be left when nothing is being done with it. This must | 90 | be left when nothing is being done with it. This must |
| @@ -4126,9 +4126,9 @@ enlarge_window (window, delta, horiz_flag) | |||
| 4126 | struct window *p; | 4126 | struct window *p; |
| 4127 | Lisp_Object *sizep; | 4127 | Lisp_Object *sizep; |
| 4128 | int maximum; | 4128 | int maximum; |
| 4129 | int (*sizefun) P_ ((Lisp_Object)) | 4129 | int (*sizefun) (Lisp_Object) |
| 4130 | = horiz_flag ? window_width : window_height; | 4130 | = horiz_flag ? window_width : window_height; |
| 4131 | void (*setsizefun) P_ ((Lisp_Object, int, int)) | 4131 | void (*setsizefun) (Lisp_Object, int, int) |
| 4132 | = (horiz_flag ? set_window_width : set_window_height); | 4132 | = (horiz_flag ? set_window_width : set_window_height); |
| 4133 | 4133 | ||
| 4134 | /* Give up if this window cannot be resized. */ | 4134 | /* Give up if this window cannot be resized. */ |
| @@ -4554,7 +4554,7 @@ are not deleted; instead, we signal an error. */) | |||
| 4554 | Resizing Mini-Windows | 4554 | Resizing Mini-Windows |
| 4555 | ***********************************************************************/ | 4555 | ***********************************************************************/ |
| 4556 | 4556 | ||
| 4557 | static void shrink_window_lowest_first P_ ((struct window *, int)); | 4557 | static void shrink_window_lowest_first (struct window *, int); |
| 4558 | 4558 | ||
| 4559 | enum save_restore_action | 4559 | enum save_restore_action |
| 4560 | { | 4560 | { |
| @@ -4563,8 +4563,8 @@ enum save_restore_action | |||
| 4563 | RESTORE_ORIG_SIZES | 4563 | RESTORE_ORIG_SIZES |
| 4564 | }; | 4564 | }; |
| 4565 | 4565 | ||
| 4566 | static int save_restore_orig_size P_ ((struct window *, | 4566 | static int save_restore_orig_size (struct window *, |
| 4567 | enum save_restore_action)); | 4567 | enum save_restore_action); |
| 4568 | 4568 | ||
| 4569 | /* Shrink windows rooted in window W to HEIGHT. Take the space needed | 4569 | /* Shrink windows rooted in window W to HEIGHT. Take the space needed |
| 4570 | from lowest windows first. */ | 4570 | from lowest windows first. */ |
| @@ -7012,7 +7012,7 @@ If PIXELS-P is non-nil, the return value is VSCROLL. */) | |||
| 7012 | void | 7012 | void |
| 7013 | foreach_window (f, fn, user_data) | 7013 | foreach_window (f, fn, user_data) |
| 7014 | struct frame *f; | 7014 | struct frame *f; |
| 7015 | int (* fn) P_ ((struct window *, void *)); | 7015 | int (* fn) (struct window *, void *); |
| 7016 | void *user_data; | 7016 | void *user_data; |
| 7017 | { | 7017 | { |
| 7018 | /* delete_frame may set FRAME_ROOT_WINDOW (f) to Qnil. */ | 7018 | /* delete_frame may set FRAME_ROOT_WINDOW (f) to Qnil. */ |
| @@ -7029,7 +7029,7 @@ foreach_window (f, fn, user_data) | |||
| 7029 | static int | 7029 | static int |
| 7030 | foreach_window_1 (w, fn, user_data) | 7030 | foreach_window_1 (w, fn, user_data) |
| 7031 | struct window *w; | 7031 | struct window *w; |
| 7032 | int (* fn) P_ ((struct window *, void *)); | 7032 | int (* fn) (struct window *, void *); |
| 7033 | void *user_data; | 7033 | void *user_data; |
| 7034 | { | 7034 | { |
| 7035 | int cont; | 7035 | int cont; |
diff --git a/src/xdisp.c b/src/xdisp.c index 795e13e6f1a..cea8c625819 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -270,7 +270,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 270 | 270 | ||
| 271 | #if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) \ | 271 | #if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) \ |
| 272 | || defined(HAVE_NS) || defined (USE_GTK) | 272 | || defined(HAVE_NS) || defined (USE_GTK) |
| 273 | extern void set_frame_menubar P_ ((struct frame *f, int, int)); | 273 | extern void set_frame_menubar (struct frame *f, int, int); |
| 274 | extern int pending_menu_activation; | 274 | extern int pending_menu_activation; |
| 275 | #endif | 275 | #endif |
| 276 | 276 | ||
| @@ -831,15 +831,15 @@ struct props | |||
| 831 | 831 | ||
| 832 | /* A handler function called to set up iterator IT from the property | 832 | /* A handler function called to set up iterator IT from the property |
| 833 | at IT's current position. Value is used to steer handle_stop. */ | 833 | at IT's current position. Value is used to steer handle_stop. */ |
| 834 | enum prop_handled (*handler) P_ ((struct it *it)); | 834 | enum prop_handled (*handler) (struct it *it); |
| 835 | }; | 835 | }; |
| 836 | 836 | ||
| 837 | static enum prop_handled handle_face_prop P_ ((struct it *)); | 837 | static enum prop_handled handle_face_prop (struct it *); |
| 838 | static enum prop_handled handle_invisible_prop P_ ((struct it *)); | 838 | static enum prop_handled handle_invisible_prop (struct it *); |
| 839 | static enum prop_handled handle_display_prop P_ ((struct it *)); | 839 | static enum prop_handled handle_display_prop (struct it *); |
| 840 | static enum prop_handled handle_composition_prop P_ ((struct it *)); | 840 | static enum prop_handled handle_composition_prop (struct it *); |
| 841 | static enum prop_handled handle_overlay_change P_ ((struct it *)); | 841 | static enum prop_handled handle_overlay_change (struct it *); |
| 842 | static enum prop_handled handle_fontified_prop P_ ((struct it *)); | 842 | static enum prop_handled handle_fontified_prop (struct it *); |
| 843 | 843 | ||
| 844 | /* Properties handled by iterators. */ | 844 | /* Properties handled by iterators. */ |
| 845 | 845 | ||
| @@ -949,149 +949,149 @@ Lisp_Object Vhourglass_delay; | |||
| 949 | 949 | ||
| 950 | /* Function prototypes. */ | 950 | /* Function prototypes. */ |
| 951 | 951 | ||
| 952 | static void setup_for_ellipsis P_ ((struct it *, int)); | 952 | static void setup_for_ellipsis (struct it *, int); |
| 953 | static void mark_window_display_accurate_1 P_ ((struct window *, int)); | 953 | static void mark_window_display_accurate_1 (struct window *, int); |
| 954 | static int single_display_spec_string_p P_ ((Lisp_Object, Lisp_Object)); | 954 | static int single_display_spec_string_p (Lisp_Object, Lisp_Object); |
| 955 | static int display_prop_string_p P_ ((Lisp_Object, Lisp_Object)); | 955 | static int display_prop_string_p (Lisp_Object, Lisp_Object); |
| 956 | static int cursor_row_p P_ ((struct window *, struct glyph_row *)); | 956 | static int cursor_row_p (struct window *, struct glyph_row *); |
| 957 | static int redisplay_mode_lines P_ ((Lisp_Object, int)); | 957 | static int redisplay_mode_lines (Lisp_Object, int); |
| 958 | static char *decode_mode_spec_coding P_ ((Lisp_Object, char *, int)); | 958 | static char *decode_mode_spec_coding (Lisp_Object, char *, int); |
| 959 | 959 | ||
| 960 | static Lisp_Object get_it_property P_ ((struct it *it, Lisp_Object prop)); | 960 | static Lisp_Object get_it_property (struct it *it, Lisp_Object prop); |
| 961 | 961 | ||
| 962 | static void handle_line_prefix P_ ((struct it *)); | 962 | static void handle_line_prefix (struct it *); |
| 963 | 963 | ||
| 964 | static void pint2str P_ ((char *, int, int)); | 964 | static void pint2str (char *, int, int); |
| 965 | static void pint2hrstr P_ ((char *, int, int)); | 965 | static void pint2hrstr (char *, int, int); |
| 966 | static struct text_pos run_window_scroll_functions P_ ((Lisp_Object, | 966 | static struct text_pos run_window_scroll_functions (Lisp_Object, |
| 967 | struct text_pos)); | 967 | struct text_pos); |
| 968 | static void reconsider_clip_changes P_ ((struct window *, struct buffer *)); | 968 | static void reconsider_clip_changes (struct window *, struct buffer *); |
| 969 | static int text_outside_line_unchanged_p P_ ((struct window *, int, int)); | 969 | static int text_outside_line_unchanged_p (struct window *, int, int); |
| 970 | static void store_mode_line_noprop_char P_ ((char)); | 970 | static void store_mode_line_noprop_char (char); |
| 971 | static int store_mode_line_noprop P_ ((const unsigned char *, int, int)); | 971 | static int store_mode_line_noprop (const unsigned char *, int, int); |
| 972 | static void x_consider_frame_title P_ ((Lisp_Object)); | 972 | static void x_consider_frame_title (Lisp_Object); |
| 973 | static void handle_stop P_ ((struct it *)); | 973 | static void handle_stop (struct it *); |
| 974 | static void handle_stop_backwards P_ ((struct it *, EMACS_INT)); | 974 | static void handle_stop_backwards (struct it *, EMACS_INT); |
| 975 | static int tool_bar_lines_needed P_ ((struct frame *, int *)); | 975 | static int tool_bar_lines_needed (struct frame *, int *); |
| 976 | static int single_display_spec_intangible_p P_ ((Lisp_Object)); | 976 | static int single_display_spec_intangible_p (Lisp_Object); |
| 977 | static void ensure_echo_area_buffers P_ ((void)); | 977 | static void ensure_echo_area_buffers (void); |
| 978 | static Lisp_Object unwind_with_echo_area_buffer P_ ((Lisp_Object)); | 978 | static Lisp_Object unwind_with_echo_area_buffer (Lisp_Object); |
| 979 | static Lisp_Object with_echo_area_buffer_unwind_data P_ ((struct window *)); | 979 | static Lisp_Object with_echo_area_buffer_unwind_data (struct window *); |
| 980 | static int with_echo_area_buffer P_ ((struct window *, int, | 980 | static int with_echo_area_buffer (struct window *, int, |
| 981 | int (*) (EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT), | 981 | int (*) (EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT), |
| 982 | EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT)); | 982 | EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT); |
| 983 | static void clear_garbaged_frames P_ ((void)); | 983 | static void clear_garbaged_frames (void); |
| 984 | static int current_message_1 P_ ((EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT)); | 984 | static int current_message_1 (EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT); |
| 985 | static int truncate_message_1 P_ ((EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT)); | 985 | static int truncate_message_1 (EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT); |
| 986 | static int set_message_1 P_ ((EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT)); | 986 | static int set_message_1 (EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT); |
| 987 | static int display_echo_area P_ ((struct window *)); | 987 | static int display_echo_area (struct window *); |
| 988 | static int display_echo_area_1 P_ ((EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT)); | 988 | static int display_echo_area_1 (EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT); |
| 989 | static int resize_mini_window_1 P_ ((EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT)); | 989 | static int resize_mini_window_1 (EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT); |
| 990 | static Lisp_Object unwind_redisplay P_ ((Lisp_Object)); | 990 | static Lisp_Object unwind_redisplay (Lisp_Object); |
| 991 | static int string_char_and_length P_ ((const unsigned char *, int *)); | 991 | static int string_char_and_length (const unsigned char *, int *); |
| 992 | static struct text_pos display_prop_end P_ ((struct it *, Lisp_Object, | 992 | static struct text_pos display_prop_end (struct it *, Lisp_Object, |
| 993 | struct text_pos)); | 993 | struct text_pos); |
| 994 | static int compute_window_start_on_continuation_line P_ ((struct window *)); | 994 | static int compute_window_start_on_continuation_line (struct window *); |
| 995 | static Lisp_Object safe_eval_handler P_ ((Lisp_Object)); | 995 | static Lisp_Object safe_eval_handler (Lisp_Object); |
| 996 | static void insert_left_trunc_glyphs P_ ((struct it *)); | 996 | static void insert_left_trunc_glyphs (struct it *); |
| 997 | static struct glyph_row *get_overlay_arrow_glyph_row P_ ((struct window *, | 997 | static struct glyph_row *get_overlay_arrow_glyph_row (struct window *, |
| 998 | Lisp_Object)); | 998 | Lisp_Object); |
| 999 | static void extend_face_to_end_of_line P_ ((struct it *)); | 999 | static void extend_face_to_end_of_line (struct it *); |
| 1000 | static int append_space_for_newline P_ ((struct it *, int)); | 1000 | static int append_space_for_newline (struct it *, int); |
| 1001 | static int cursor_row_fully_visible_p P_ ((struct window *, int, int)); | 1001 | static int cursor_row_fully_visible_p (struct window *, int, int); |
| 1002 | static int try_scrolling P_ ((Lisp_Object, int, EMACS_INT, EMACS_INT, int, int)); | 1002 | static int try_scrolling (Lisp_Object, int, EMACS_INT, EMACS_INT, int, int); |
| 1003 | static int try_cursor_movement P_ ((Lisp_Object, struct text_pos, int *)); | 1003 | static int try_cursor_movement (Lisp_Object, struct text_pos, int *); |
| 1004 | static int trailing_whitespace_p P_ ((int)); | 1004 | static int trailing_whitespace_p (int); |
| 1005 | static int message_log_check_duplicate P_ ((int, int, int, int)); | 1005 | static int message_log_check_duplicate (int, int, int, int); |
| 1006 | static void push_it P_ ((struct it *)); | 1006 | static void push_it (struct it *); |
| 1007 | static void pop_it P_ ((struct it *)); | 1007 | static void pop_it (struct it *); |
| 1008 | static void sync_frame_with_window_matrix_rows P_ ((struct window *)); | 1008 | static void sync_frame_with_window_matrix_rows (struct window *); |
| 1009 | static void select_frame_for_redisplay P_ ((Lisp_Object)); | 1009 | static void select_frame_for_redisplay (Lisp_Object); |
| 1010 | static void redisplay_internal P_ ((int)); | 1010 | static void redisplay_internal (int); |
| 1011 | static int echo_area_display P_ ((int)); | 1011 | static int echo_area_display (int); |
| 1012 | static void redisplay_windows P_ ((Lisp_Object)); | 1012 | static void redisplay_windows (Lisp_Object); |
| 1013 | static void redisplay_window P_ ((Lisp_Object, int)); | 1013 | static void redisplay_window (Lisp_Object, int); |
| 1014 | static Lisp_Object redisplay_window_error (); | 1014 | static Lisp_Object redisplay_window_error (); |
| 1015 | static Lisp_Object redisplay_window_0 P_ ((Lisp_Object)); | 1015 | static Lisp_Object redisplay_window_0 (Lisp_Object); |
| 1016 | static Lisp_Object redisplay_window_1 P_ ((Lisp_Object)); | 1016 | static Lisp_Object redisplay_window_1 (Lisp_Object); |
| 1017 | static int update_menu_bar P_ ((struct frame *, int, int)); | 1017 | static int update_menu_bar (struct frame *, int, int); |
| 1018 | static int try_window_reusing_current_matrix P_ ((struct window *)); | 1018 | static int try_window_reusing_current_matrix (struct window *); |
| 1019 | static int try_window_id P_ ((struct window *)); | 1019 | static int try_window_id (struct window *); |
| 1020 | static int display_line P_ ((struct it *)); | 1020 | static int display_line (struct it *); |
| 1021 | static int display_mode_lines P_ ((struct window *)); | 1021 | static int display_mode_lines (struct window *); |
| 1022 | static int display_mode_line P_ ((struct window *, enum face_id, Lisp_Object)); | 1022 | static int display_mode_line (struct window *, enum face_id, Lisp_Object); |
| 1023 | static int display_mode_element P_ ((struct it *, int, int, int, Lisp_Object, Lisp_Object, int)); | 1023 | static int display_mode_element (struct it *, int, int, int, Lisp_Object, Lisp_Object, int); |
| 1024 | static int store_mode_line_string P_ ((char *, Lisp_Object, int, int, int, Lisp_Object)); | 1024 | static int store_mode_line_string (char *, Lisp_Object, int, int, int, Lisp_Object); |
| 1025 | static char *decode_mode_spec P_ ((struct window *, int, int, int, | 1025 | static char *decode_mode_spec (struct window *, int, int, int, |
| 1026 | Lisp_Object *)); | 1026 | Lisp_Object *); |
| 1027 | static void display_menu_bar P_ ((struct window *)); | 1027 | static void display_menu_bar (struct window *); |
| 1028 | static int display_count_lines P_ ((int, int, int, int, int *)); | 1028 | static int display_count_lines (int, int, int, int, int *); |
| 1029 | static int display_string P_ ((unsigned char *, Lisp_Object, Lisp_Object, | 1029 | static int display_string (unsigned char *, Lisp_Object, Lisp_Object, |
| 1030 | EMACS_INT, EMACS_INT, struct it *, int, int, int, int)); | 1030 | EMACS_INT, EMACS_INT, struct it *, int, int, int, int); |
| 1031 | static void compute_line_metrics P_ ((struct it *)); | 1031 | static void compute_line_metrics (struct it *); |
| 1032 | static void run_redisplay_end_trigger_hook P_ ((struct it *)); | 1032 | static void run_redisplay_end_trigger_hook (struct it *); |
| 1033 | static int get_overlay_strings P_ ((struct it *, int)); | 1033 | static int get_overlay_strings (struct it *, int); |
| 1034 | static int get_overlay_strings_1 P_ ((struct it *, int, int)); | 1034 | static int get_overlay_strings_1 (struct it *, int, int); |
| 1035 | static void next_overlay_string P_ ((struct it *)); | 1035 | static void next_overlay_string (struct it *); |
| 1036 | static void reseat P_ ((struct it *, struct text_pos, int)); | 1036 | static void reseat (struct it *, struct text_pos, int); |
| 1037 | static void reseat_1 P_ ((struct it *, struct text_pos, int)); | 1037 | static void reseat_1 (struct it *, struct text_pos, int); |
| 1038 | static void back_to_previous_visible_line_start P_ ((struct it *)); | 1038 | static void back_to_previous_visible_line_start (struct it *); |
| 1039 | void reseat_at_previous_visible_line_start P_ ((struct it *)); | 1039 | void reseat_at_previous_visible_line_start (struct it *); |
| 1040 | static void reseat_at_next_visible_line_start P_ ((struct it *, int)); | 1040 | static void reseat_at_next_visible_line_start (struct it *, int); |
| 1041 | static int next_element_from_ellipsis P_ ((struct it *)); | 1041 | static int next_element_from_ellipsis (struct it *); |
| 1042 | static int next_element_from_display_vector P_ ((struct it *)); | 1042 | static int next_element_from_display_vector (struct it *); |
| 1043 | static int next_element_from_string P_ ((struct it *)); | 1043 | static int next_element_from_string (struct it *); |
| 1044 | static int next_element_from_c_string P_ ((struct it *)); | 1044 | static int next_element_from_c_string (struct it *); |
| 1045 | static int next_element_from_buffer P_ ((struct it *)); | 1045 | static int next_element_from_buffer (struct it *); |
| 1046 | static int next_element_from_composition P_ ((struct it *)); | 1046 | static int next_element_from_composition (struct it *); |
| 1047 | static int next_element_from_image P_ ((struct it *)); | 1047 | static int next_element_from_image (struct it *); |
| 1048 | static int next_element_from_stretch P_ ((struct it *)); | 1048 | static int next_element_from_stretch (struct it *); |
| 1049 | static void load_overlay_strings P_ ((struct it *, int)); | 1049 | static void load_overlay_strings (struct it *, int); |
| 1050 | static int init_from_display_pos P_ ((struct it *, struct window *, | 1050 | static int init_from_display_pos (struct it *, struct window *, |
| 1051 | struct display_pos *)); | 1051 | struct display_pos *); |
| 1052 | static void reseat_to_string P_ ((struct it *, unsigned char *, | 1052 | static void reseat_to_string (struct it *, unsigned char *, |
| 1053 | Lisp_Object, int, int, int, int)); | 1053 | Lisp_Object, int, int, int, int); |
| 1054 | static enum move_it_result | 1054 | static enum move_it_result |
| 1055 | move_it_in_display_line_to (struct it *, EMACS_INT, int, | 1055 | move_it_in_display_line_to (struct it *, EMACS_INT, int, |
| 1056 | enum move_operation_enum); | 1056 | enum move_operation_enum); |
| 1057 | void move_it_vertically_backward P_ ((struct it *, int)); | 1057 | void move_it_vertically_backward (struct it *, int); |
| 1058 | static void init_to_row_start P_ ((struct it *, struct window *, | 1058 | static void init_to_row_start (struct it *, struct window *, |
| 1059 | struct glyph_row *)); | 1059 | struct glyph_row *); |
| 1060 | static int init_to_row_end P_ ((struct it *, struct window *, | 1060 | static int init_to_row_end (struct it *, struct window *, |
| 1061 | struct glyph_row *)); | 1061 | struct glyph_row *); |
| 1062 | static void back_to_previous_line_start P_ ((struct it *)); | 1062 | static void back_to_previous_line_start (struct it *); |
| 1063 | static int forward_to_next_line_start P_ ((struct it *, int *)); | 1063 | static int forward_to_next_line_start (struct it *, int *); |
| 1064 | static struct text_pos string_pos_nchars_ahead P_ ((struct text_pos, | 1064 | static struct text_pos string_pos_nchars_ahead (struct text_pos, |
| 1065 | Lisp_Object, int)); | 1065 | Lisp_Object, int); |
| 1066 | static struct text_pos string_pos P_ ((int, Lisp_Object)); | 1066 | static struct text_pos string_pos (int, Lisp_Object); |
| 1067 | static struct text_pos c_string_pos P_ ((int, unsigned char *, int)); | 1067 | static struct text_pos c_string_pos (int, unsigned char *, int); |
| 1068 | static int number_of_chars P_ ((unsigned char *, int)); | 1068 | static int number_of_chars (unsigned char *, int); |
| 1069 | static void compute_stop_pos P_ ((struct it *)); | 1069 | static void compute_stop_pos (struct it *); |
| 1070 | static void compute_string_pos P_ ((struct text_pos *, struct text_pos, | 1070 | static void compute_string_pos (struct text_pos *, struct text_pos, |
| 1071 | Lisp_Object)); | 1071 | Lisp_Object); |
| 1072 | static int face_before_or_after_it_pos P_ ((struct it *, int)); | 1072 | static int face_before_or_after_it_pos (struct it *, int); |
| 1073 | static EMACS_INT next_overlay_change P_ ((EMACS_INT)); | 1073 | static EMACS_INT next_overlay_change (EMACS_INT); |
| 1074 | static int handle_single_display_spec P_ ((struct it *, Lisp_Object, | 1074 | static int handle_single_display_spec (struct it *, Lisp_Object, |
| 1075 | Lisp_Object, Lisp_Object, | 1075 | Lisp_Object, Lisp_Object, |
| 1076 | struct text_pos *, int)); | 1076 | struct text_pos *, int); |
| 1077 | static int underlying_face_id P_ ((struct it *)); | 1077 | static int underlying_face_id (struct it *); |
| 1078 | static int in_ellipses_for_invisible_text_p P_ ((struct display_pos *, | 1078 | static int in_ellipses_for_invisible_text_p (struct display_pos *, |
| 1079 | struct window *)); | 1079 | struct window *); |
| 1080 | 1080 | ||
| 1081 | #define face_before_it_pos(IT) face_before_or_after_it_pos ((IT), 1) | 1081 | #define face_before_it_pos(IT) face_before_or_after_it_pos ((IT), 1) |
| 1082 | #define face_after_it_pos(IT) face_before_or_after_it_pos ((IT), 0) | 1082 | #define face_after_it_pos(IT) face_before_or_after_it_pos ((IT), 0) |
| 1083 | 1083 | ||
| 1084 | #ifdef HAVE_WINDOW_SYSTEM | 1084 | #ifdef HAVE_WINDOW_SYSTEM |
| 1085 | 1085 | ||
| 1086 | static void update_tool_bar P_ ((struct frame *, int)); | 1086 | static void update_tool_bar (struct frame *, int); |
| 1087 | static void build_desired_tool_bar_string P_ ((struct frame *f)); | 1087 | static void build_desired_tool_bar_string (struct frame *f); |
| 1088 | static int redisplay_tool_bar P_ ((struct frame *)); | 1088 | static int redisplay_tool_bar (struct frame *); |
| 1089 | static void display_tool_bar_line P_ ((struct it *, int)); | 1089 | static void display_tool_bar_line (struct it *, int); |
| 1090 | static void notice_overwritten_cursor P_ ((struct window *, | 1090 | static void notice_overwritten_cursor (struct window *, |
| 1091 | enum glyph_row_area, | 1091 | enum glyph_row_area, |
| 1092 | int, int, int, int)); | 1092 | int, int, int, int); |
| 1093 | static void append_stretch_glyph P_ ((struct it *, Lisp_Object, | 1093 | static void append_stretch_glyph (struct it *, Lisp_Object, |
| 1094 | int, int, int)); | 1094 | int, int, int); |
| 1095 | 1095 | ||
| 1096 | 1096 | ||
| 1097 | 1097 | ||
| @@ -5839,7 +5839,7 @@ reseat_to_string (it, s, string, charpos, precision, field_width, multibyte) | |||
| 5839 | 5839 | ||
| 5840 | /* Map enum it_method value to corresponding next_element_from_* function. */ | 5840 | /* Map enum it_method value to corresponding next_element_from_* function. */ |
| 5841 | 5841 | ||
| 5842 | static int (* get_next_element[NUM_IT_METHODS]) P_ ((struct it *it)) = | 5842 | static int (* get_next_element[NUM_IT_METHODS]) (struct it *it) = |
| 5843 | { | 5843 | { |
| 5844 | next_element_from_buffer, | 5844 | next_element_from_buffer, |
| 5845 | next_element_from_display_vector, | 5845 | next_element_from_display_vector, |
| @@ -8813,7 +8813,7 @@ static int | |||
| 8813 | with_echo_area_buffer (w, which, fn, a1, a2, a3, a4) | 8813 | with_echo_area_buffer (w, which, fn, a1, a2, a3, a4) |
| 8814 | struct window *w; | 8814 | struct window *w; |
| 8815 | int which; | 8815 | int which; |
| 8816 | int (*fn) P_ ((EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT)); | 8816 | int (*fn) (EMACS_INT, Lisp_Object, EMACS_INT, EMACS_INT); |
| 8817 | EMACS_INT a1; | 8817 | EMACS_INT a1; |
| 8818 | Lisp_Object a2; | 8818 | Lisp_Object a2; |
| 8819 | EMACS_INT a3, a4; | 8819 | EMACS_INT a3, a4; |
| @@ -11204,8 +11204,8 @@ note_tool_bar_highlight (f, x, y) | |||
| 11204 | Horizontal scrolling | 11204 | Horizontal scrolling |
| 11205 | ************************************************************************/ | 11205 | ************************************************************************/ |
| 11206 | 11206 | ||
| 11207 | static int hscroll_window_tree P_ ((Lisp_Object)); | 11207 | static int hscroll_window_tree (Lisp_Object); |
| 11208 | static int hscroll_windows P_ ((Lisp_Object)); | 11208 | static int hscroll_windows (Lisp_Object); |
| 11209 | 11209 | ||
| 11210 | /* For all leaf windows in the window tree rooted at WINDOW, set their | 11210 | /* For all leaf windows in the window tree rooted at WINDOW, set their |
| 11211 | hscroll value so that PT is (i) visible in the window, and (ii) so | 11211 | hscroll value so that PT is (i) visible in the window, and (ii) so |
| @@ -15384,12 +15384,12 @@ try_window_reusing_current_matrix (w) | |||
| 15384 | Window redisplay reusing current matrix when buffer has changed | 15384 | Window redisplay reusing current matrix when buffer has changed |
| 15385 | ************************************************************************/ | 15385 | ************************************************************************/ |
| 15386 | 15386 | ||
| 15387 | static struct glyph_row *find_last_unchanged_at_beg_row P_ ((struct window *)); | 15387 | static struct glyph_row *find_last_unchanged_at_beg_row (struct window *); |
| 15388 | static struct glyph_row *find_first_unchanged_at_end_row P_ ((struct window *, | 15388 | static struct glyph_row *find_first_unchanged_at_end_row (struct window *, |
| 15389 | int *, int *)); | 15389 | int *, int *); |
| 15390 | static struct glyph_row * | 15390 | static struct glyph_row * |
| 15391 | find_last_row_displaying_text P_ ((struct glyph_matrix *, struct it *, | 15391 | find_last_row_displaying_text (struct glyph_matrix *, struct it *, |
| 15392 | struct glyph_row *)); | 15392 | struct glyph_row *); |
| 15393 | 15393 | ||
| 15394 | 15394 | ||
| 15395 | /* Return the last row in MATRIX displaying text. If row START is | 15395 | /* Return the last row in MATRIX displaying text. If row START is |
| @@ -16447,9 +16447,9 @@ try_window_id (w) | |||
| 16447 | 16447 | ||
| 16448 | #if GLYPH_DEBUG | 16448 | #if GLYPH_DEBUG |
| 16449 | 16449 | ||
| 16450 | void dump_glyph_row P_ ((struct glyph_row *, int, int)); | 16450 | void dump_glyph_row (struct glyph_row *, int, int); |
| 16451 | void dump_glyph_matrix P_ ((struct glyph_matrix *, int)); | 16451 | void dump_glyph_matrix (struct glyph_matrix *, int); |
| 16452 | void dump_glyph P_ ((struct glyph_row *, struct glyph *, int)); | 16452 | void dump_glyph (struct glyph_row *, struct glyph *, int); |
| 16453 | 16453 | ||
| 16454 | 16454 | ||
| 16455 | /* Dump the contents of glyph matrix MATRIX on stderr. | 16455 | /* Dump the contents of glyph matrix MATRIX on stderr. |
diff --git a/src/xfaces.c b/src/xfaces.c index 6bde1c121d2..714b07c0800 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -510,56 +510,56 @@ int menu_face_changed_default; | |||
| 510 | struct table_entry; | 510 | struct table_entry; |
| 511 | struct named_merge_point; | 511 | struct named_merge_point; |
| 512 | 512 | ||
| 513 | static void map_tty_color P_ ((struct frame *, struct face *, | 513 | static void map_tty_color (struct frame *, struct face *, |
| 514 | enum lface_attribute_index, int *)); | 514 | enum lface_attribute_index, int *); |
| 515 | static Lisp_Object resolve_face_name P_ ((Lisp_Object, int)); | 515 | static Lisp_Object resolve_face_name (Lisp_Object, int); |
| 516 | static int may_use_scalable_font_p P_ ((const char *)); | 516 | static int may_use_scalable_font_p (const char *); |
| 517 | static void set_font_frame_param P_ ((Lisp_Object, Lisp_Object)); | 517 | static void set_font_frame_param (Lisp_Object, Lisp_Object); |
| 518 | static int get_lface_attributes P_ ((struct frame *, Lisp_Object, Lisp_Object *, | 518 | static int get_lface_attributes (struct frame *, Lisp_Object, Lisp_Object *, |
| 519 | int, struct named_merge_point *)); | 519 | int, struct named_merge_point *); |
| 520 | static int load_pixmap P_ ((struct frame *, Lisp_Object, unsigned *, unsigned *)); | 520 | static int load_pixmap (struct frame *, Lisp_Object, unsigned *, unsigned *); |
| 521 | static struct frame *frame_or_selected_frame P_ ((Lisp_Object, int)); | 521 | static struct frame *frame_or_selected_frame (Lisp_Object, int); |
| 522 | static void load_face_colors P_ ((struct frame *, struct face *, Lisp_Object *)); | 522 | static void load_face_colors (struct frame *, struct face *, Lisp_Object *); |
| 523 | static void free_face_colors P_ ((struct frame *, struct face *)); | 523 | static void free_face_colors (struct frame *, struct face *); |
| 524 | static int face_color_gray_p P_ ((struct frame *, char *)); | 524 | static int face_color_gray_p (struct frame *, char *); |
| 525 | static struct face *realize_face P_ ((struct face_cache *, Lisp_Object *, | 525 | static struct face *realize_face (struct face_cache *, Lisp_Object *, |
| 526 | int)); | 526 | int); |
| 527 | static struct face *realize_non_ascii_face P_ ((struct frame *, Lisp_Object, | 527 | static struct face *realize_non_ascii_face (struct frame *, Lisp_Object, |
| 528 | struct face *)); | 528 | struct face *); |
| 529 | static struct face *realize_x_face P_ ((struct face_cache *, Lisp_Object *)); | 529 | static struct face *realize_x_face (struct face_cache *, Lisp_Object *); |
| 530 | static struct face *realize_tty_face P_ ((struct face_cache *, Lisp_Object *)); | 530 | static struct face *realize_tty_face (struct face_cache *, Lisp_Object *); |
| 531 | static int realize_basic_faces P_ ((struct frame *)); | 531 | static int realize_basic_faces (struct frame *); |
| 532 | static int realize_default_face P_ ((struct frame *)); | 532 | static int realize_default_face (struct frame *); |
| 533 | static void realize_named_face P_ ((struct frame *, Lisp_Object, int)); | 533 | static void realize_named_face (struct frame *, Lisp_Object, int); |
| 534 | static int lface_fully_specified_p P_ ((Lisp_Object *)); | 534 | static int lface_fully_specified_p (Lisp_Object *); |
| 535 | static int lface_equal_p P_ ((Lisp_Object *, Lisp_Object *)); | 535 | static int lface_equal_p (Lisp_Object *, Lisp_Object *); |
| 536 | static unsigned hash_string_case_insensitive P_ ((Lisp_Object)); | 536 | static unsigned hash_string_case_insensitive (Lisp_Object); |
| 537 | static unsigned lface_hash P_ ((Lisp_Object *)); | 537 | static unsigned lface_hash (Lisp_Object *); |
| 538 | static int lface_same_font_attributes_p P_ ((Lisp_Object *, Lisp_Object *)); | 538 | static int lface_same_font_attributes_p (Lisp_Object *, Lisp_Object *); |
| 539 | static struct face_cache *make_face_cache P_ ((struct frame *)); | 539 | static struct face_cache *make_face_cache (struct frame *); |
| 540 | static void clear_face_gcs P_ ((struct face_cache *)); | 540 | static void clear_face_gcs (struct face_cache *); |
| 541 | static void free_face_cache P_ ((struct face_cache *)); | 541 | static void free_face_cache (struct face_cache *); |
| 542 | static int face_fontset P_ ((Lisp_Object *)); | 542 | static int face_fontset (Lisp_Object *); |
| 543 | static void merge_face_vectors P_ ((struct frame *, Lisp_Object *, Lisp_Object*, | 543 | static void merge_face_vectors (struct frame *, Lisp_Object *, Lisp_Object*, |
| 544 | struct named_merge_point *)); | 544 | struct named_merge_point *); |
| 545 | static int merge_face_ref P_ ((struct frame *, Lisp_Object, Lisp_Object *, | 545 | static int merge_face_ref (struct frame *, Lisp_Object, Lisp_Object *, |
| 546 | int, struct named_merge_point *)); | 546 | int, struct named_merge_point *); |
| 547 | static int set_lface_from_font P_ ((struct frame *, Lisp_Object, Lisp_Object, | 547 | static int set_lface_from_font (struct frame *, Lisp_Object, Lisp_Object, |
| 548 | int)); | 548 | int); |
| 549 | static Lisp_Object lface_from_face_name P_ ((struct frame *, Lisp_Object, int)); | 549 | static Lisp_Object lface_from_face_name (struct frame *, Lisp_Object, int); |
| 550 | static struct face *make_realized_face P_ ((Lisp_Object *)); | 550 | static struct face *make_realized_face (Lisp_Object *); |
| 551 | static void cache_face P_ ((struct face_cache *, struct face *, unsigned)); | 551 | static void cache_face (struct face_cache *, struct face *, unsigned); |
| 552 | static void uncache_face P_ ((struct face_cache *, struct face *)); | 552 | static void uncache_face (struct face_cache *, struct face *); |
| 553 | 553 | ||
| 554 | #ifdef HAVE_WINDOW_SYSTEM | 554 | #ifdef HAVE_WINDOW_SYSTEM |
| 555 | 555 | ||
| 556 | static GC x_create_gc P_ ((struct frame *, unsigned long, XGCValues *)); | 556 | static GC x_create_gc (struct frame *, unsigned long, XGCValues *); |
| 557 | static void x_free_gc P_ ((struct frame *, GC)); | 557 | static void x_free_gc (struct frame *, GC); |
| 558 | 558 | ||
| 559 | #ifdef USE_X_TOOLKIT | 559 | #ifdef USE_X_TOOLKIT |
| 560 | static void x_update_menu_appearance P_ ((struct frame *)); | 560 | static void x_update_menu_appearance (struct frame *); |
| 561 | 561 | ||
| 562 | extern void free_frame_menubar P_ ((struct frame *)); | 562 | extern void free_frame_menubar (struct frame *); |
| 563 | #endif /* USE_X_TOOLKIT */ | 563 | #endif /* USE_X_TOOLKIT */ |
| 564 | 564 | ||
| 565 | #endif /* HAVE_WINDOW_SYSTEM */ | 565 | #endif /* HAVE_WINDOW_SYSTEM */ |
| @@ -3778,7 +3778,7 @@ x_update_menu_appearance (f) | |||
| 3778 | { | 3778 | { |
| 3779 | #if defined HAVE_X_I18N | 3779 | #if defined HAVE_X_I18N |
| 3780 | extern char *xic_create_fontsetname | 3780 | extern char *xic_create_fontsetname |
| 3781 | P_ ((char *base_fontname, Bool motif)); | 3781 | (char *base_fontname, Bool motif); |
| 3782 | char *fontsetname = xic_create_fontsetname (SDATA (xlfd), motif); | 3782 | char *fontsetname = xic_create_fontsetname (SDATA (xlfd), motif); |
| 3783 | #else | 3783 | #else |
| 3784 | char *fontsetname = (char *) SDATA (xlfd); | 3784 | char *fontsetname = (char *) SDATA (xlfd); |
diff --git a/src/xfns.c b/src/xfns.c index ea592417d1f..74ddce6cf56 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -499,33 +499,33 @@ x_top_window_to_frame (dpyinfo, wdesc) | |||
| 499 | 499 | ||
| 500 | 500 | ||
| 501 | 501 | ||
| 502 | static void x_default_font_parameter P_ ((struct frame *, Lisp_Object)); | 502 | static void x_default_font_parameter (struct frame *, Lisp_Object); |
| 503 | 503 | ||
| 504 | static Lisp_Object unwind_create_frame P_ ((Lisp_Object)); | 504 | static Lisp_Object unwind_create_frame (Lisp_Object); |
| 505 | static Lisp_Object unwind_create_tip_frame P_ ((Lisp_Object)); | 505 | static Lisp_Object unwind_create_tip_frame (Lisp_Object); |
| 506 | 506 | ||
| 507 | void x_set_foreground_color P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 507 | void x_set_foreground_color (struct frame *, Lisp_Object, Lisp_Object); |
| 508 | static void x_set_wait_for_wm P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 508 | static void x_set_wait_for_wm (struct frame *, Lisp_Object, Lisp_Object); |
| 509 | void x_set_background_color P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 509 | void x_set_background_color (struct frame *, Lisp_Object, Lisp_Object); |
| 510 | void x_set_mouse_color P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 510 | void x_set_mouse_color (struct frame *, Lisp_Object, Lisp_Object); |
| 511 | void x_set_cursor_color P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 511 | void x_set_cursor_color (struct frame *, Lisp_Object, Lisp_Object); |
| 512 | void x_set_border_color P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 512 | void x_set_border_color (struct frame *, Lisp_Object, Lisp_Object); |
| 513 | void x_set_cursor_type P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 513 | void x_set_cursor_type (struct frame *, Lisp_Object, Lisp_Object); |
| 514 | void x_set_icon_type P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 514 | void x_set_icon_type (struct frame *, Lisp_Object, Lisp_Object); |
| 515 | void x_set_icon_name P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 515 | void x_set_icon_name (struct frame *, Lisp_Object, Lisp_Object); |
| 516 | void x_explicitly_set_name P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 516 | void x_explicitly_set_name (struct frame *, Lisp_Object, Lisp_Object); |
| 517 | void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 517 | void x_set_menu_bar_lines (struct frame *, Lisp_Object, Lisp_Object); |
| 518 | void x_set_title P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 518 | void x_set_title (struct frame *, Lisp_Object, Lisp_Object); |
| 519 | void x_set_tool_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 519 | void x_set_tool_bar_lines (struct frame *, Lisp_Object, Lisp_Object); |
| 520 | void x_set_scroll_bar_foreground P_ ((struct frame *, Lisp_Object, | 520 | void x_set_scroll_bar_foreground (struct frame *, Lisp_Object, |
| 521 | Lisp_Object)); | 521 | Lisp_Object); |
| 522 | void x_set_scroll_bar_background P_ ((struct frame *, Lisp_Object, | 522 | void x_set_scroll_bar_background (struct frame *, Lisp_Object, |
| 523 | Lisp_Object)); | 523 | Lisp_Object); |
| 524 | static Lisp_Object x_default_scroll_bar_color_parameter P_ ((struct frame *, | 524 | static Lisp_Object x_default_scroll_bar_color_parameter (struct frame *, |
| 525 | Lisp_Object, | 525 | Lisp_Object, |
| 526 | Lisp_Object, | 526 | Lisp_Object, |
| 527 | char *, char *, | 527 | char *, char *, |
| 528 | int)); | 528 | int); |
| 529 | 529 | ||
| 530 | 530 | ||
| 531 | /* Store the screen positions of frame F into XPTR and YPTR. | 531 | /* Store the screen positions of frame F into XPTR and YPTR. |
| @@ -1938,8 +1938,8 @@ hack_wm_protocols (f, widget) | |||
| 1938 | 1938 | ||
| 1939 | #ifdef HAVE_X_I18N | 1939 | #ifdef HAVE_X_I18N |
| 1940 | 1940 | ||
| 1941 | static XFontSet xic_create_xfontset P_ ((struct frame *)); | 1941 | static XFontSet xic_create_xfontset (struct frame *); |
| 1942 | static XIMStyle best_xim_style P_ ((XIMStyles *, XIMStyles *)); | 1942 | static XIMStyle best_xim_style (XIMStyles *, XIMStyles *); |
| 1943 | 1943 | ||
| 1944 | 1944 | ||
| 1945 | /* Supported XIM styles, ordered by preference. */ | 1945 | /* Supported XIM styles, ordered by preference. */ |
| @@ -4665,10 +4665,10 @@ hide_hourglass () | |||
| 4665 | Tool tips | 4665 | Tool tips |
| 4666 | ***********************************************************************/ | 4666 | ***********************************************************************/ |
| 4667 | 4667 | ||
| 4668 | static Lisp_Object x_create_tip_frame P_ ((struct x_display_info *, | 4668 | static Lisp_Object x_create_tip_frame (struct x_display_info *, |
| 4669 | Lisp_Object, Lisp_Object)); | 4669 | Lisp_Object, Lisp_Object); |
| 4670 | static void compute_tip_xy P_ ((struct frame *, Lisp_Object, Lisp_Object, | 4670 | static void compute_tip_xy (struct frame *, Lisp_Object, Lisp_Object, |
| 4671 | Lisp_Object, int, int, int *, int *)); | 4671 | Lisp_Object, int, int, int *, int *); |
| 4672 | 4672 | ||
| 4673 | /* The frame of a currently visible tooltip. */ | 4673 | /* The frame of a currently visible tooltip. */ |
| 4674 | 4674 | ||
| @@ -5341,7 +5341,7 @@ Value is t if tooltip was open, nil otherwise. */) | |||
| 5341 | { | 5341 | { |
| 5342 | struct frame *f = SELECTED_FRAME (); | 5342 | struct frame *f = SELECTED_FRAME (); |
| 5343 | Widget w = f->output_data.x->menubar_widget; | 5343 | Widget w = f->output_data.x->menubar_widget; |
| 5344 | extern void xlwmenu_redisplay P_ ((Widget)); | 5344 | extern void xlwmenu_redisplay (Widget); |
| 5345 | 5345 | ||
| 5346 | if (!DoesSaveUnders (FRAME_X_DISPLAY_INFO (f)->screen) | 5346 | if (!DoesSaveUnders (FRAME_X_DISPLAY_INFO (f)->screen) |
| 5347 | && w != NULL) | 5347 | && w != NULL) |
diff --git a/src/xfont.c b/src/xfont.c index d8fe40eaa93..8a1d960343c 100644 --- a/src/xfont.c +++ b/src/xfont.c | |||
| @@ -47,9 +47,9 @@ struct xfont_info | |||
| 47 | }; | 47 | }; |
| 48 | 48 | ||
| 49 | /* Prototypes of support functions. */ | 49 | /* Prototypes of support functions. */ |
| 50 | extern void x_clear_errors P_ ((Display *)); | 50 | extern void x_clear_errors (Display *); |
| 51 | 51 | ||
| 52 | static XCharStruct *xfont_get_pcm P_ ((XFontStruct *, XChar2b *)); | 52 | static XCharStruct *xfont_get_pcm (XFontStruct *, XChar2b *); |
| 53 | 53 | ||
| 54 | /* Get metrics of character CHAR2B in XFONT. Value is null if CHAR2B | 54 | /* Get metrics of character CHAR2B in XFONT. Value is null if CHAR2B |
| 55 | is not contained in the font. */ | 55 | is not contained in the font. */ |
| @@ -119,19 +119,19 @@ xfont_get_pcm (xfont, char2b) | |||
| 119 | ? NULL : pcm); | 119 | ? NULL : pcm); |
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | static Lisp_Object xfont_get_cache P_ ((FRAME_PTR)); | 122 | static Lisp_Object xfont_get_cache (FRAME_PTR); |
| 123 | static Lisp_Object xfont_list P_ ((Lisp_Object, Lisp_Object)); | 123 | static Lisp_Object xfont_list (Lisp_Object, Lisp_Object); |
| 124 | static Lisp_Object xfont_match P_ ((Lisp_Object, Lisp_Object)); | 124 | static Lisp_Object xfont_match (Lisp_Object, Lisp_Object); |
| 125 | static Lisp_Object xfont_list_family P_ ((Lisp_Object)); | 125 | static Lisp_Object xfont_list_family (Lisp_Object); |
| 126 | static Lisp_Object xfont_open P_ ((FRAME_PTR, Lisp_Object, int)); | 126 | static Lisp_Object xfont_open (FRAME_PTR, Lisp_Object, int); |
| 127 | static void xfont_close P_ ((FRAME_PTR, struct font *)); | 127 | static void xfont_close (FRAME_PTR, struct font *); |
| 128 | static int xfont_prepare_face P_ ((FRAME_PTR, struct face *)); | 128 | static int xfont_prepare_face (FRAME_PTR, struct face *); |
| 129 | static int xfont_has_char P_ ((Lisp_Object, int)); | 129 | static int xfont_has_char (Lisp_Object, int); |
| 130 | static unsigned xfont_encode_char P_ ((struct font *, int)); | 130 | static unsigned xfont_encode_char (struct font *, int); |
| 131 | static int xfont_text_extents P_ ((struct font *, unsigned *, int, | 131 | static int xfont_text_extents (struct font *, unsigned *, int, |
| 132 | struct font_metrics *)); | 132 | struct font_metrics *); |
| 133 | static int xfont_draw P_ ((struct glyph_string *, int, int, int, int, int)); | 133 | static int xfont_draw (struct glyph_string *, int, int, int, int, int); |
| 134 | static int xfont_check P_ ((FRAME_PTR, struct font *)); | 134 | static int xfont_check (FRAME_PTR, struct font *); |
| 135 | 135 | ||
| 136 | struct font_driver xfont_driver = | 136 | struct font_driver xfont_driver = |
| 137 | { | 137 | { |
diff --git a/src/xftfont.c b/src/xftfont.c index 197cc9c1f5b..8aeb6397f07 100644 --- a/src/xftfont.c +++ b/src/xftfont.c | |||
| @@ -70,9 +70,9 @@ struct xftface_info | |||
| 70 | XftColor xft_bg; /* color for face->background */ | 70 | XftColor xft_bg; /* color for face->background */ |
| 71 | }; | 71 | }; |
| 72 | 72 | ||
| 73 | static void xftfont_get_colors P_ ((FRAME_PTR, struct face *, GC gc, | 73 | static void xftfont_get_colors (FRAME_PTR, struct face *, GC gc, |
| 74 | struct xftface_info *, | 74 | struct xftface_info *, |
| 75 | XftColor *fg, XftColor *bg)); | 75 | XftColor *fg, XftColor *bg); |
| 76 | 76 | ||
| 77 | 77 | ||
| 78 | /* Setup foreground and background colors of GC into FG and BG. If | 78 | /* Setup foreground and background colors of GC into FG and BG. If |
| @@ -141,18 +141,18 @@ xftfont_get_colors (f, face, gc, xftface_info, fg, bg) | |||
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | 143 | ||
| 144 | static Lisp_Object xftfont_list P_ ((Lisp_Object, Lisp_Object)); | 144 | static Lisp_Object xftfont_list (Lisp_Object, Lisp_Object); |
| 145 | static Lisp_Object xftfont_match P_ ((Lisp_Object, Lisp_Object)); | 145 | static Lisp_Object xftfont_match (Lisp_Object, Lisp_Object); |
| 146 | static Lisp_Object xftfont_open P_ ((FRAME_PTR, Lisp_Object, int)); | 146 | static Lisp_Object xftfont_open (FRAME_PTR, Lisp_Object, int); |
| 147 | static void xftfont_close P_ ((FRAME_PTR, struct font *)); | 147 | static void xftfont_close (FRAME_PTR, struct font *); |
| 148 | static int xftfont_prepare_face P_ ((FRAME_PTR, struct face *)); | 148 | static int xftfont_prepare_face (FRAME_PTR, struct face *); |
| 149 | static void xftfont_done_face P_ ((FRAME_PTR, struct face *)); | 149 | static void xftfont_done_face (FRAME_PTR, struct face *); |
| 150 | static int xftfont_has_char P_ ((Lisp_Object, int)); | 150 | static int xftfont_has_char (Lisp_Object, int); |
| 151 | static unsigned xftfont_encode_char P_ ((struct font *, int)); | 151 | static unsigned xftfont_encode_char (struct font *, int); |
| 152 | static int xftfont_text_extents P_ ((struct font *, unsigned *, int, | 152 | static int xftfont_text_extents (struct font *, unsigned *, int, |
| 153 | struct font_metrics *)); | 153 | struct font_metrics *); |
| 154 | static int xftfont_draw P_ ((struct glyph_string *, int, int, int, int, int)); | 154 | static int xftfont_draw (struct glyph_string *, int, int, int, int, int); |
| 155 | static int xftfont_end_for_frame P_ ((FRAME_PTR f)); | 155 | static int xftfont_end_for_frame (FRAME_PTR f); |
| 156 | 156 | ||
| 157 | struct font_driver xftfont_driver; | 157 | struct font_driver xftfont_driver; |
| 158 | 158 | ||
| @@ -180,8 +180,8 @@ xftfont_match (frame, spec) | |||
| 180 | return entity; | 180 | return entity; |
| 181 | } | 181 | } |
| 182 | 182 | ||
| 183 | extern Lisp_Object ftfont_font_format P_ ((FcPattern *, Lisp_Object)); | 183 | extern Lisp_Object ftfont_font_format (FcPattern *, Lisp_Object); |
| 184 | extern FcCharSet *ftfont_get_fc_charset P_ ((Lisp_Object)); | 184 | extern FcCharSet *ftfont_get_fc_charset (Lisp_Object); |
| 185 | extern Lisp_Object QCantialias; | 185 | extern Lisp_Object QCantialias; |
| 186 | 186 | ||
| 187 | static FcChar8 ascii_printable[95]; | 187 | static FcChar8 ascii_printable[95]; |
diff --git a/src/xmenu.c b/src/xmenu.c index 53b6b8de48a..189bcbf9a25 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -122,22 +122,22 @@ extern Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; | |||
| 122 | extern Lisp_Object Qmenu_bar_update_hook; | 122 | extern Lisp_Object Qmenu_bar_update_hook; |
| 123 | 123 | ||
| 124 | #ifdef USE_X_TOOLKIT | 124 | #ifdef USE_X_TOOLKIT |
| 125 | extern void set_frame_menubar P_ ((FRAME_PTR, int, int)); | 125 | extern void set_frame_menubar (FRAME_PTR, int, int); |
| 126 | extern XtAppContext Xt_app_con; | 126 | extern XtAppContext Xt_app_con; |
| 127 | 127 | ||
| 128 | static Lisp_Object xdialog_show P_ ((FRAME_PTR, int, Lisp_Object, Lisp_Object, | 128 | static Lisp_Object xdialog_show (FRAME_PTR, int, Lisp_Object, Lisp_Object, |
| 129 | char **)); | 129 | char **); |
| 130 | static void popup_get_selection P_ ((XEvent *, struct x_display_info *, | 130 | static void popup_get_selection (XEvent *, struct x_display_info *, |
| 131 | LWLIB_ID, int)); | 131 | LWLIB_ID, int); |
| 132 | #endif /* USE_X_TOOLKIT */ | 132 | #endif /* USE_X_TOOLKIT */ |
| 133 | 133 | ||
| 134 | #ifdef USE_GTK | 134 | #ifdef USE_GTK |
| 135 | extern void set_frame_menubar P_ ((FRAME_PTR, int, int)); | 135 | extern void set_frame_menubar (FRAME_PTR, int, int); |
| 136 | static Lisp_Object xdialog_show P_ ((FRAME_PTR, int, Lisp_Object, Lisp_Object, | 136 | static Lisp_Object xdialog_show (FRAME_PTR, int, Lisp_Object, Lisp_Object, |
| 137 | char **)); | 137 | char **); |
| 138 | #endif | 138 | #endif |
| 139 | 139 | ||
| 140 | static int update_frame_menubar P_ ((struct frame *)); | 140 | static int update_frame_menubar (struct frame *); |
| 141 | 141 | ||
| 142 | /* Flag which when set indicates a dialog or menu has been posted by | 142 | /* Flag which when set indicates a dialog or menu has been posted by |
| 143 | Xt on behalf of one of the widget sets. */ | 143 | Xt on behalf of one of the widget sets. */ |
| @@ -147,8 +147,8 @@ static int next_menubar_widget_id; | |||
| 147 | 147 | ||
| 148 | /* For NS and NTGUI, these prototypes are defined in keyboard.h. */ | 148 | /* For NS and NTGUI, these prototypes are defined in keyboard.h. */ |
| 149 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) | 149 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) |
| 150 | extern widget_value *xmalloc_widget_value P_ ((void)); | 150 | extern widget_value *xmalloc_widget_value (void); |
| 151 | extern widget_value *digest_single_submenu P_ ((int, int, int)); | 151 | extern widget_value *digest_single_submenu (int, int, int); |
| 152 | #endif | 152 | #endif |
| 153 | 153 | ||
| 154 | /* This is set nonzero after the user activates the menu bar, and set | 154 | /* This is set nonzero after the user activates the menu bar, and set |
diff --git a/src/xselect.c b/src/xselect.c index e2027736855..459e5335123 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -45,44 +45,44 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 45 | 45 | ||
| 46 | struct prop_location; | 46 | struct prop_location; |
| 47 | 47 | ||
| 48 | static Lisp_Object x_atom_to_symbol P_ ((Display *dpy, Atom atom)); | 48 | static Lisp_Object x_atom_to_symbol (Display *dpy, Atom atom); |
| 49 | static Atom symbol_to_x_atom P_ ((struct x_display_info *, Display *, | 49 | static Atom symbol_to_x_atom (struct x_display_info *, Display *, |
| 50 | Lisp_Object)); | 50 | Lisp_Object); |
| 51 | static void x_own_selection P_ ((Lisp_Object, Lisp_Object)); | 51 | static void x_own_selection (Lisp_Object, Lisp_Object); |
| 52 | static Lisp_Object x_get_local_selection P_ ((Lisp_Object, Lisp_Object, int)); | 52 | static Lisp_Object x_get_local_selection (Lisp_Object, Lisp_Object, int); |
| 53 | static void x_decline_selection_request P_ ((struct input_event *)); | 53 | static void x_decline_selection_request (struct input_event *); |
| 54 | static Lisp_Object x_selection_request_lisp_error P_ ((Lisp_Object)); | 54 | static Lisp_Object x_selection_request_lisp_error (Lisp_Object); |
| 55 | static Lisp_Object queue_selection_requests_unwind P_ ((Lisp_Object)); | 55 | static Lisp_Object queue_selection_requests_unwind (Lisp_Object); |
| 56 | static Lisp_Object some_frame_on_display P_ ((struct x_display_info *)); | 56 | static Lisp_Object some_frame_on_display (struct x_display_info *); |
| 57 | static Lisp_Object x_catch_errors_unwind P_ ((Lisp_Object)); | 57 | static Lisp_Object x_catch_errors_unwind (Lisp_Object); |
| 58 | static void x_reply_selection_request P_ ((struct input_event *, int, | 58 | static void x_reply_selection_request (struct input_event *, int, |
| 59 | unsigned char *, int, Atom)); | 59 | unsigned char *, int, Atom); |
| 60 | static int waiting_for_other_props_on_window P_ ((Display *, Window)); | 60 | static int waiting_for_other_props_on_window (Display *, Window); |
| 61 | static struct prop_location *expect_property_change P_ ((Display *, Window, | 61 | static struct prop_location *expect_property_change (Display *, Window, |
| 62 | Atom, int)); | 62 | Atom, int); |
| 63 | static void unexpect_property_change P_ ((struct prop_location *)); | 63 | static void unexpect_property_change (struct prop_location *); |
| 64 | static Lisp_Object wait_for_property_change_unwind P_ ((Lisp_Object)); | 64 | static Lisp_Object wait_for_property_change_unwind (Lisp_Object); |
| 65 | static void wait_for_property_change P_ ((struct prop_location *)); | 65 | static void wait_for_property_change (struct prop_location *); |
| 66 | static Lisp_Object x_get_foreign_selection P_ ((Lisp_Object, | 66 | static Lisp_Object x_get_foreign_selection (Lisp_Object, |
| 67 | Lisp_Object, | 67 | Lisp_Object, |
| 68 | Lisp_Object)); | 68 | Lisp_Object); |
| 69 | static void x_get_window_property P_ ((Display *, Window, Atom, | 69 | static void x_get_window_property (Display *, Window, Atom, |
| 70 | unsigned char **, int *, | 70 | unsigned char **, int *, |
| 71 | Atom *, int *, unsigned long *, int)); | 71 | Atom *, int *, unsigned long *, int); |
| 72 | static void receive_incremental_selection P_ ((Display *, Window, Atom, | 72 | static void receive_incremental_selection (Display *, Window, Atom, |
| 73 | Lisp_Object, unsigned, | 73 | Lisp_Object, unsigned, |
| 74 | unsigned char **, int *, | 74 | unsigned char **, int *, |
| 75 | Atom *, int *, unsigned long *)); | 75 | Atom *, int *, unsigned long *); |
| 76 | static Lisp_Object x_get_window_property_as_lisp_data P_ ((Display *, | 76 | static Lisp_Object x_get_window_property_as_lisp_data (Display *, |
| 77 | Window, Atom, | 77 | Window, Atom, |
| 78 | Lisp_Object, Atom)); | 78 | Lisp_Object, Atom); |
| 79 | static Lisp_Object selection_data_to_lisp_data P_ ((Display *, unsigned char *, | 79 | static Lisp_Object selection_data_to_lisp_data (Display *, unsigned char *, |
| 80 | int, Atom, int)); | 80 | int, Atom, int); |
| 81 | static void lisp_data_to_selection_data P_ ((Display *, Lisp_Object, | 81 | static void lisp_data_to_selection_data (Display *, Lisp_Object, |
| 82 | unsigned char **, Atom *, | 82 | unsigned char **, Atom *, |
| 83 | unsigned *, int *, int *)); | 83 | unsigned *, int *, int *); |
| 84 | static Lisp_Object clean_local_selection_data P_ ((Lisp_Object)); | 84 | static Lisp_Object clean_local_selection_data (Lisp_Object); |
| 85 | static void initialize_cut_buffers P_ ((Display *, Window)); | 85 | static void initialize_cut_buffers (Display *, Window); |
| 86 | 86 | ||
| 87 | 87 | ||
| 88 | /* Printing traces to stderr. */ | 88 | /* Printing traces to stderr. */ |
diff --git a/src/xterm.c b/src/xterm.c index e3ce7bb6538..2279f71189f 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -104,13 +104,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 104 | #endif | 104 | #endif |
| 105 | 105 | ||
| 106 | #ifdef USE_LUCID | 106 | #ifdef USE_LUCID |
| 107 | extern int xlwmenu_window_p P_ ((Widget w, Window window)); | 107 | extern int xlwmenu_window_p (Widget w, Window window); |
| 108 | extern void xlwmenu_redisplay P_ ((Widget)); | 108 | extern void xlwmenu_redisplay (Widget); |
| 109 | #endif | 109 | #endif |
| 110 | 110 | ||
| 111 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) | 111 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) |
| 112 | 112 | ||
| 113 | extern void free_frame_menubar P_ ((struct frame *)); | 113 | extern void free_frame_menubar (struct frame *); |
| 114 | #endif | 114 | #endif |
| 115 | 115 | ||
| 116 | #ifdef USE_X_TOOLKIT | 116 | #ifdef USE_X_TOOLKIT |
| @@ -332,54 +332,54 @@ Lisp_Object Qx_gtk_map_stock; | |||
| 332 | 332 | ||
| 333 | extern Lisp_Object Vinhibit_redisplay; | 333 | extern Lisp_Object Vinhibit_redisplay; |
| 334 | 334 | ||
| 335 | extern XrmDatabase x_load_resources P_ ((Display *, char *, char *, char *)); | 335 | extern XrmDatabase x_load_resources (Display *, char *, char *, char *); |
| 336 | extern int x_bitmap_mask P_ ((FRAME_PTR, int)); | 336 | extern int x_bitmap_mask (FRAME_PTR, int); |
| 337 | 337 | ||
| 338 | static int x_alloc_nearest_color_1 P_ ((Display *, Colormap, XColor *)); | 338 | static int x_alloc_nearest_color_1 (Display *, Colormap, XColor *); |
| 339 | static void x_set_window_size_1 P_ ((struct frame *, int, int, int)); | 339 | static void x_set_window_size_1 (struct frame *, int, int, int); |
| 340 | static const XColor *x_color_cells P_ ((Display *, int *)); | 340 | static const XColor *x_color_cells (Display *, int *); |
| 341 | static void x_update_window_end P_ ((struct window *, int, int)); | 341 | static void x_update_window_end (struct window *, int, int); |
| 342 | 342 | ||
| 343 | static int x_io_error_quitter P_ ((Display *)); | 343 | static int x_io_error_quitter (Display *); |
| 344 | static struct terminal *x_create_terminal P_ ((struct x_display_info *)); | 344 | static struct terminal *x_create_terminal (struct x_display_info *); |
| 345 | void x_delete_terminal P_ ((struct terminal *)); | 345 | void x_delete_terminal (struct terminal *); |
| 346 | static void x_update_end P_ ((struct frame *)); | 346 | static void x_update_end (struct frame *); |
| 347 | static void XTframe_up_to_date P_ ((struct frame *)); | 347 | static void XTframe_up_to_date (struct frame *); |
| 348 | static void XTset_terminal_modes P_ ((struct terminal *)); | 348 | static void XTset_terminal_modes (struct terminal *); |
| 349 | static void XTreset_terminal_modes P_ ((struct terminal *)); | 349 | static void XTreset_terminal_modes (struct terminal *); |
| 350 | static void x_clear_frame P_ ((struct frame *)); | 350 | static void x_clear_frame (struct frame *); |
| 351 | static void frame_highlight P_ ((struct frame *)); | 351 | static void frame_highlight (struct frame *); |
| 352 | static void frame_unhighlight P_ ((struct frame *)); | 352 | static void frame_unhighlight (struct frame *); |
| 353 | static void x_new_focus_frame P_ ((struct x_display_info *, struct frame *)); | 353 | static void x_new_focus_frame (struct x_display_info *, struct frame *); |
| 354 | static void x_focus_changed P_ ((int, int, struct x_display_info *, | 354 | static void x_focus_changed (int, int, struct x_display_info *, |
| 355 | struct frame *, struct input_event *)); | 355 | struct frame *, struct input_event *); |
| 356 | static void x_detect_focus_change P_ ((struct x_display_info *, | 356 | static void x_detect_focus_change (struct x_display_info *, |
| 357 | XEvent *, struct input_event *)); | 357 | XEvent *, struct input_event *); |
| 358 | static void XTframe_rehighlight P_ ((struct frame *)); | 358 | static void XTframe_rehighlight (struct frame *); |
| 359 | static void x_frame_rehighlight P_ ((struct x_display_info *)); | 359 | static void x_frame_rehighlight (struct x_display_info *); |
| 360 | static void x_draw_hollow_cursor P_ ((struct window *, struct glyph_row *)); | 360 | static void x_draw_hollow_cursor (struct window *, struct glyph_row *); |
| 361 | static void x_draw_bar_cursor P_ ((struct window *, struct glyph_row *, int, | 361 | static void x_draw_bar_cursor (struct window *, struct glyph_row *, int, |
| 362 | enum text_cursor_kinds)); | 362 | enum text_cursor_kinds); |
| 363 | 363 | ||
| 364 | static void x_clip_to_row P_ ((struct window *, struct glyph_row *, int, GC)); | 364 | static void x_clip_to_row (struct window *, struct glyph_row *, int, GC); |
| 365 | static void x_flush P_ ((struct frame *f)); | 365 | static void x_flush (struct frame *f); |
| 366 | static void x_update_begin P_ ((struct frame *)); | 366 | static void x_update_begin (struct frame *); |
| 367 | static void x_update_window_begin P_ ((struct window *)); | 367 | static void x_update_window_begin (struct window *); |
| 368 | static void x_after_update_window_line P_ ((struct glyph_row *)); | 368 | static void x_after_update_window_line (struct glyph_row *); |
| 369 | static struct scroll_bar *x_window_to_scroll_bar P_ ((Display *, Window)); | 369 | static struct scroll_bar *x_window_to_scroll_bar (Display *, Window); |
| 370 | static void x_scroll_bar_report_motion P_ ((struct frame **, Lisp_Object *, | 370 | static void x_scroll_bar_report_motion (struct frame **, Lisp_Object *, |
| 371 | enum scroll_bar_part *, | 371 | enum scroll_bar_part *, |
| 372 | Lisp_Object *, Lisp_Object *, | 372 | Lisp_Object *, Lisp_Object *, |
| 373 | unsigned long *)); | 373 | unsigned long *); |
| 374 | static void x_handle_net_wm_state P_ ((struct frame *, XPropertyEvent *)); | 374 | static void x_handle_net_wm_state (struct frame *, XPropertyEvent *); |
| 375 | static void x_check_fullscreen P_ ((struct frame *)); | 375 | static void x_check_fullscreen (struct frame *); |
| 376 | static void x_check_expected_move P_ ((struct frame *, int, int)); | 376 | static void x_check_expected_move (struct frame *, int, int); |
| 377 | static void x_sync_with_move P_ ((struct frame *, int, int, int)); | 377 | static void x_sync_with_move (struct frame *, int, int, int); |
| 378 | static int handle_one_xevent P_ ((struct x_display_info *, XEvent *, | 378 | static int handle_one_xevent (struct x_display_info *, XEvent *, |
| 379 | int *, struct input_event *)); | 379 | int *, struct input_event *); |
| 380 | /* Don't declare this NO_RETURN because we want no | 380 | /* Don't declare this NO_RETURN because we want no |
| 381 | interference with debugging failing X calls. */ | 381 | interference with debugging failing X calls. */ |
| 382 | static SIGTYPE x_connection_closed P_ ((Display *, char *)); | 382 | static SIGTYPE x_connection_closed (Display *, char *); |
| 383 | 383 | ||
| 384 | 384 | ||
| 385 | /* Flush display of frame F, or of all frames if F is null. */ | 385 | /* Flush display of frame F, or of all frames if F is null. */ |
| @@ -931,37 +931,37 @@ XTreset_terminal_modes (struct terminal *terminal) | |||
| 931 | 931 | ||
| 932 | 932 | ||
| 933 | 933 | ||
| 934 | static void x_set_glyph_string_clipping P_ ((struct glyph_string *)); | 934 | static void x_set_glyph_string_clipping (struct glyph_string *); |
| 935 | static void x_set_glyph_string_gc P_ ((struct glyph_string *)); | 935 | static void x_set_glyph_string_gc (struct glyph_string *); |
| 936 | static void x_draw_glyph_string_background P_ ((struct glyph_string *, | 936 | static void x_draw_glyph_string_background (struct glyph_string *, |
| 937 | int)); | 937 | int); |
| 938 | static void x_draw_glyph_string_foreground P_ ((struct glyph_string *)); | 938 | static void x_draw_glyph_string_foreground (struct glyph_string *); |
| 939 | static void x_draw_composite_glyph_string_foreground P_ ((struct glyph_string *)); | 939 | static void x_draw_composite_glyph_string_foreground (struct glyph_string *); |
| 940 | static void x_draw_glyph_string_box P_ ((struct glyph_string *)); | 940 | static void x_draw_glyph_string_box (struct glyph_string *); |
| 941 | static void x_draw_glyph_string P_ ((struct glyph_string *)); | 941 | static void x_draw_glyph_string (struct glyph_string *); |
| 942 | static void x_compute_glyph_string_overhangs P_ ((struct glyph_string *)); | 942 | static void x_compute_glyph_string_overhangs (struct glyph_string *); |
| 943 | static void x_set_cursor_gc P_ ((struct glyph_string *)); | 943 | static void x_set_cursor_gc (struct glyph_string *); |
| 944 | static void x_set_mode_line_face_gc P_ ((struct glyph_string *)); | 944 | static void x_set_mode_line_face_gc (struct glyph_string *); |
| 945 | static void x_set_mouse_face_gc P_ ((struct glyph_string *)); | 945 | static void x_set_mouse_face_gc (struct glyph_string *); |
| 946 | static int x_alloc_lighter_color P_ ((struct frame *, Display *, Colormap, | 946 | static int x_alloc_lighter_color (struct frame *, Display *, Colormap, |
| 947 | unsigned long *, double, int)); | 947 | unsigned long *, double, int); |
| 948 | static void x_setup_relief_color P_ ((struct frame *, struct relief *, | 948 | static void x_setup_relief_color (struct frame *, struct relief *, |
| 949 | double, int, unsigned long)); | 949 | double, int, unsigned long); |
| 950 | static void x_setup_relief_colors P_ ((struct glyph_string *)); | 950 | static void x_setup_relief_colors (struct glyph_string *); |
| 951 | static void x_draw_image_glyph_string P_ ((struct glyph_string *)); | 951 | static void x_draw_image_glyph_string (struct glyph_string *); |
| 952 | static void x_draw_image_relief P_ ((struct glyph_string *)); | 952 | static void x_draw_image_relief (struct glyph_string *); |
| 953 | static void x_draw_image_foreground P_ ((struct glyph_string *)); | 953 | static void x_draw_image_foreground (struct glyph_string *); |
| 954 | static void x_draw_image_foreground_1 P_ ((struct glyph_string *, Pixmap)); | 954 | static void x_draw_image_foreground_1 (struct glyph_string *, Pixmap); |
| 955 | static void x_clear_glyph_string_rect P_ ((struct glyph_string *, int, | 955 | static void x_clear_glyph_string_rect (struct glyph_string *, int, |
| 956 | int, int, int)); | 956 | int, int, int); |
| 957 | static void x_draw_relief_rect P_ ((struct frame *, int, int, int, int, | 957 | static void x_draw_relief_rect (struct frame *, int, int, int, int, |
| 958 | int, int, int, int, int, int, | 958 | int, int, int, int, int, int, |
| 959 | XRectangle *)); | 959 | XRectangle *); |
| 960 | static void x_draw_box_rect P_ ((struct glyph_string *, int, int, int, int, | 960 | static void x_draw_box_rect (struct glyph_string *, int, int, int, int, |
| 961 | int, int, int, XRectangle *)); | 961 | int, int, int, XRectangle *); |
| 962 | 962 | ||
| 963 | #if GLYPH_DEBUG | 963 | #if GLYPH_DEBUG |
| 964 | static void x_check_font P_ ((struct frame *, struct font *)); | 964 | static void x_check_font (struct frame *, struct font *); |
| 965 | #endif | 965 | #endif |
| 966 | 966 | ||
| 967 | 967 | ||
| @@ -1401,11 +1401,11 @@ x_draw_composite_glyph_string_foreground (s) | |||
| 1401 | 1401 | ||
| 1402 | #ifdef USE_X_TOOLKIT | 1402 | #ifdef USE_X_TOOLKIT |
| 1403 | 1403 | ||
| 1404 | static struct frame *x_frame_of_widget P_ ((Widget)); | 1404 | static struct frame *x_frame_of_widget (Widget); |
| 1405 | static Boolean cvt_string_to_pixel P_ ((Display *, XrmValue *, Cardinal *, | 1405 | static Boolean cvt_string_to_pixel (Display *, XrmValue *, Cardinal *, |
| 1406 | XrmValue *, XrmValue *, XtPointer *)); | 1406 | XrmValue *, XrmValue *, XtPointer *); |
| 1407 | static void cvt_pixel_dtor P_ ((XtAppContext, XrmValue *, XtPointer, | 1407 | static void cvt_pixel_dtor (XtAppContext, XrmValue *, XtPointer, |
| 1408 | XrmValue *, Cardinal *)); | 1408 | XrmValue *, Cardinal *); |
| 1409 | 1409 | ||
| 1410 | 1410 | ||
| 1411 | /* Return the frame on which widget WIDGET is used.. Abort if frame | 1411 | /* Return the frame on which widget WIDGET is used.. Abort if frame |
| @@ -4125,12 +4125,12 @@ x_window_to_menu_bar (window) | |||
| 4125 | 4125 | ||
| 4126 | #ifdef USE_TOOLKIT_SCROLL_BARS | 4126 | #ifdef USE_TOOLKIT_SCROLL_BARS |
| 4127 | 4127 | ||
| 4128 | static void x_scroll_bar_to_input_event P_ ((XEvent *, struct input_event *)); | 4128 | static void x_scroll_bar_to_input_event (XEvent *, struct input_event *); |
| 4129 | static void x_send_scroll_bar_event P_ ((Lisp_Object, int, int, int)); | 4129 | static void x_send_scroll_bar_event (Lisp_Object, int, int, int); |
| 4130 | static void x_create_toolkit_scroll_bar P_ ((struct frame *, | 4130 | static void x_create_toolkit_scroll_bar (struct frame *, |
| 4131 | struct scroll_bar *)); | 4131 | struct scroll_bar *); |
| 4132 | static void x_set_toolkit_scroll_bar_thumb P_ ((struct scroll_bar *, | 4132 | static void x_set_toolkit_scroll_bar_thumb (struct scroll_bar *, |
| 4133 | int, int, int)); | 4133 | int, int, int); |
| 4134 | 4134 | ||
| 4135 | 4135 | ||
| 4136 | /* Lisp window being scrolled. Set when starting to interact with | 4136 | /* Lisp window being scrolled. Set when starting to interact with |
| @@ -7919,7 +7919,7 @@ x_connection_closed (dpy, error_message) | |||
| 7919 | /* If DPYINFO is null, this means we didn't open the display | 7919 | /* If DPYINFO is null, this means we didn't open the display |
| 7920 | in the first place, so don't try to close it. */ | 7920 | in the first place, so don't try to close it. */ |
| 7921 | { | 7921 | { |
| 7922 | extern void (*fatal_error_signal_hook) P_ ((void)); | 7922 | extern void (*fatal_error_signal_hook) (void); |
| 7923 | fatal_error_signal_hook = x_fatal_error_signal; | 7923 | fatal_error_signal_hook = x_fatal_error_signal; |
| 7924 | XtCloseDisplay (dpy); | 7924 | XtCloseDisplay (dpy); |
| 7925 | fatal_error_signal_hook = NULL; | 7925 | fatal_error_signal_hook = NULL; |
| @@ -7980,7 +7980,7 @@ x_connection_closed (dpy, error_message) | |||
| 7980 | 7980 | ||
| 7981 | /* We specifically use it before defining it, so that gcc doesn't inline it, | 7981 | /* We specifically use it before defining it, so that gcc doesn't inline it, |
| 7982 | otherwise gdb doesn't know how to properly put a breakpoint on it. */ | 7982 | otherwise gdb doesn't know how to properly put a breakpoint on it. */ |
| 7983 | static void x_error_quitter P_ ((Display *, XErrorEvent *)); | 7983 | static void x_error_quitter (Display *, XErrorEvent *); |
| 7984 | 7984 | ||
| 7985 | /* This is the first-level handler for X protocol errors. | 7985 | /* This is the first-level handler for X protocol errors. |
| 7986 | It calls x_error_quitter or x_error_catcher. */ | 7986 | It calls x_error_quitter or x_error_catcher. */ |
| @@ -8167,7 +8167,7 @@ xim_destroy_callback (xim, client_data, call_data) | |||
| 8167 | 8167 | ||
| 8168 | #ifdef HAVE_X11R6 | 8168 | #ifdef HAVE_X11R6 |
| 8169 | /* This isn't prototyped in OSF 5.0 or 5.1a. */ | 8169 | /* This isn't prototyped in OSF 5.0 or 5.1a. */ |
| 8170 | extern char *XSetIMValues P_ ((XIM, ...)); | 8170 | extern char *XSetIMValues (XIM, ...); |
| 8171 | #endif | 8171 | #endif |
| 8172 | 8172 | ||
| 8173 | /* Open the connection to the XIM server on display DPYINFO. | 8173 | /* Open the connection to the XIM server on display DPYINFO. |
| @@ -9357,7 +9357,7 @@ x_make_frame_visible (f) | |||
| 9357 | /* It could be confusing if a real alarm arrives while | 9357 | /* It could be confusing if a real alarm arrives while |
| 9358 | processing the fake one. Turn it off and let the | 9358 | processing the fake one. Turn it off and let the |
| 9359 | handler reset it. */ | 9359 | handler reset it. */ |
| 9360 | extern void poll_for_input_1 P_ ((void)); | 9360 | extern void poll_for_input_1 (void); |
| 9361 | int old_poll_suppress_count = poll_suppress_count; | 9361 | int old_poll_suppress_count = poll_suppress_count; |
| 9362 | poll_suppress_count = 1; | 9362 | poll_suppress_count = 1; |
| 9363 | poll_for_input_1 (); | 9363 | poll_for_input_1 (); |