Add prototypes.
authorAndreas Schwab <schwab@suse.de>
Tue, 25 Nov 1997 13:44:34 +0000 (13:44 +0000)
committerAndreas Schwab <schwab@suse.de>
Tue, 25 Nov 1997 13:44:34 +0000 (13:44 +0000)
src/region-cache.h
src/syntax.h
src/systty.h
src/window.h

index e950bf0..b4a0b64 100644 (file)
@@ -62,17 +62,17 @@ Boston, MA 02111-1307, USA.  */
 
 
 /* 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 @@ extern void know_region_cache ( /* struct buffer *BUF,
    (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 @@ extern void invalidate_region_cache ( /* struct buffer *BUF,
 /* 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));
index 0fa3994..7269938 100644 (file)
@@ -20,8 +20,7 @@ Boston, MA 02111-1307, USA.  */
 
 
 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 @@ enum syntaxcode
      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 @@ struct gl_state_s
 
 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));
index 4b8c226..adc5f5f 100644 (file)
@@ -392,6 +392,10 @@ struct emacs_tty {
    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
 
 \f
 /* Define EMACS_TTY_TABS_OK.  */
index 0e35ad0..c04d654 100644 (file)
@@ -265,13 +265,20 @@ extern Lisp_Object Vmouse_window;
 /* 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 @@ extern int buffer_shared;
 
 /* 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));