changeset 20349:6ab8801244c2

Add prototypes.
author Andreas Schwab <schwab@suse.de>
date Tue, 25 Nov 1997 13:44:34 +0000
parents 3665989afd33
children fb6a03e51808
files src/region-cache.h src/syntax.h src/systty.h src/window.h
diffstat 4 files changed, 35 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/src/region-cache.h	Tue Nov 25 13:38:04 1997 +0000
+++ b/src/region-cache.h	Tue Nov 25 13:44:34 1997 +0000
@@ -62,17 +62,17 @@
 
 
 /* Allocate, initialize and return a new, empty region cache.  */
-struct region_cache *new_region_cache ( /* void */ );
+struct region_cache *new_region_cache P_ ((void));
 
 /* Free a region cache.  */
-void free_region_cache ( /* struct region_cache * */ );
+void free_region_cache P_ ((struct region_cache *));
 
 /* Assert that the region of BUF between START and END (absolute
    buffer positions) is "known," for the purposes of CACHE (e.g. "has
    no newlines", in the case of the line cache).  */
-extern void know_region_cache ( /* struct buffer *BUF,
+extern void know_region_cache P_ ((struct buffer *BUF,
                                    struct region_cache *CACHE,
-                                   int START, END */ );
+                                   int START, int END));
 
 /* Indicate that a section of BUF has changed, to invalidate CACHE.
    HEAD is the number of chars unchanged at the beginning of the buffer.
@@ -82,9 +82,9 @@
    (This way of specifying regions makes more sense than absolute
    buffer positions in the presence of insertions and deletions; the
    args to pass are the same before and after such an operation.)  */
-extern void invalidate_region_cache ( /* struct buffer *BUF,
-                                       struct region_cache *CACHE,
-                                       int HEAD, TAIL */ );
+extern void invalidate_region_cache P_ ((struct buffer *BUF,
+					 struct region_cache *CACHE,
+					 int HEAD, int TAIL));
 
 /* The scanning functions. 
 
@@ -98,15 +98,15 @@
 /* Return true if the text immediately after POS in BUF is known, for
    the purposes of CACHE.  If NEXT is non-zero, set *NEXT to the nearest 
    position after POS where the knownness changes.  */
-extern int region_cache_forward ( /* struct buffer *BUF,
+extern int region_cache_forward P_ ((struct buffer *BUF,
                                      struct region_cache *CACHE,
                                      int POS,
-                                     int *NEXT */ );
+                                     int *NEXT));
 
 /* Return true if the text immediately before POS in BUF is known, for
    the purposes of CACHE.  If NEXT is non-zero, set *NEXT to the nearest
    position before POS where the knownness changes.  */
-extern int region_cache_backward ( /* struct buffer *BUF,
+extern int region_cache_backward P_ ((struct buffer *BUF,
                                       struct region_cache *CACHE,
                                       int POS,
-                                      int *NEXT */ );
+                                      int *NEXT));
--- a/src/syntax.h	Tue Nov 25 13:38:04 1997 +0000
+++ b/src/syntax.h	Tue Nov 25 13:44:34 1997 +0000
@@ -20,8 +20,7 @@
 
 
 extern Lisp_Object Qsyntax_table_p;
-extern Lisp_Object Fsyntax_table_p (), Fsyntax_table (), Fset_syntax_table ();
-extern void update_syntax_table ();
+extern void update_syntax_table P_ ((int, int, int, Lisp_Object));
 
 /* The standard syntax table is stored where it will automatically
    be used in all new buffers.  */
@@ -81,7 +80,7 @@
      temp; })
 #else
 extern Lisp_Object syntax_temp;
-extern Lisp_Object syntax_parent_lookup ();
+extern Lisp_Object syntax_parent_lookup P_ ((Lisp_Object, int));
 
 #define SYNTAX_ENTRY_FOLLOW_PARENT(table, c)	    	\
   (syntax_temp = XCHAR_TABLE (table)->contents[(c)],	\
@@ -294,4 +293,6 @@
 
 extern struct gl_state_s gl_state;
 extern int parse_sexp_lookup_properties;
-extern INTERVAL interval_of ();
+extern INTERVAL interval_of P_ ((int, Lisp_Object));
+
+extern int scan_words P_ ((int, int));
--- a/src/systty.h	Tue Nov 25 13:38:04 1997 +0000
+++ b/src/systty.h	Tue Nov 25 13:44:34 1997 +0000
@@ -392,6 +392,10 @@
    expression, so we moved them out to their own functions in sysdep.c.  */
 #define EMACS_GET_TTY(fd, p)        (emacs_get_tty ((fd), (p)))
 #define EMACS_SET_TTY(fd, p, waitp) (emacs_set_tty ((fd), (p), (waitp)))
+#ifdef P_  /* Unfortunately this file is sometimes included before lisp.h */
+extern int emacs_get_tty P_ ((int, struct emacs_tty *));
+extern int emacs_set_tty P_ ((int, struct emacs_tty *, int));
+#endif
 
 
 /* Define EMACS_TTY_TABS_OK.  */
--- a/src/window.h	Tue Nov 25 13:38:04 1997 +0000
+++ b/src/window.h	Tue Nov 25 13:44:34 1997 +0000
@@ -265,13 +265,20 @@
 /* Last mouse-click event (nil if no mouse support).  */
 extern Lisp_Object Vmouse_event;
 
-extern Lisp_Object Fnext_window ();
-extern Lisp_Object Fselect_window ();
-extern Lisp_Object Fdisplay_buffer ();
-extern Lisp_Object Fset_window_buffer ();
-extern Lisp_Object make_window ();
-extern Lisp_Object window_from_coordinates ();
-extern Lisp_Object Fwindow_dedicated_p ();
+EXFUN (Fnext_window, 3);
+EXFUN (Fselect_window, 1);
+EXFUN (Fdisplay_buffer, 2);
+EXFUN (Fset_window_buffer, 2);
+extern Lisp_Object make_window P_ ((void));
+extern void delete_window P_ ((Lisp_Object));
+extern Lisp_Object window_from_coordinates P_ ((struct frame *, int, int, int *));
+EXFUN (Fwindow_dedicated_p, 1);
+extern int window_height P_ ((Lisp_Object));
+extern int window_width P_ ((Lisp_Object));
+extern void set_window_height P_ ((Lisp_Object, int, int));
+extern void set_window_width P_ ((Lisp_Object, int, int));
+extern void change_window_height P_ ((int, int));
+extern void delete_all_subwindows P_ ((struct window *));
 
 /* Prompt to display in front of the minibuffer contents.  */
 extern Lisp_Object minibuf_prompt;
@@ -340,4 +347,4 @@
 
 /* If *ROWS or *COLS are too small a size for FRAME, set them to the
    minimum allowable size.  */
-extern void check_frame_size ( /* FRAME_PTR frame, int *rows, int *cols */ );
+extern void check_frame_size P_ ((struct frame *frame, int *rows, int *cols));