aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab1997-11-21 12:49:52 +0000
committerAndreas Schwab1997-11-21 12:49:52 +0000
commit526a2be77bff3e4aee77513de2ba0cc405ab42b5 (patch)
tree19f7ef03656f5942adcbfe46803750ccaf32da07 /src
parent1a3ce5c4663378934ba7fa43444da7b6d7b7836f (diff)
downloademacs-526a2be77bff3e4aee77513de2ba0cc405ab42b5.tar.gz
emacs-526a2be77bff3e4aee77513de2ba0cc405ab42b5.zip
Add more prototypes and declarations. Forward declare
struct window and struct frame so that it can be used in prototypes.
Diffstat (limited to 'src')
-rw-r--r--src/lisp.h196
1 files changed, 171 insertions, 25 deletions
diff --git a/src/lisp.h b/src/lisp.h
index 4119ea78bf6..97c7efdc3cd 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -1222,17 +1222,26 @@ typedef unsigned char UCHAR;
1222 Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object) 1222 Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object)
1223#endif 1223#endif
1224 1224
1225/* Declare the prototype for a general external function. */
1226#ifdef __STDC__
1227#define P_(proto) proto
1228#else
1229#define P_(proto) ()
1230#endif
1231
1225/* defsubr (Sname); 1232/* defsubr (Sname);
1226 is how we define the symbol for function `name' at start-up time. */ 1233 is how we define the symbol for function `name' at start-up time. */
1227extern void defsubr (); 1234extern void defsubr P_ ((struct Lisp_Subr *));
1228 1235
1229#define MANY -2 1236#define MANY -2
1230#define UNEVALLED -1 1237#define UNEVALLED -1
1231 1238
1232extern void defvar_lisp (); 1239extern void defvar_lisp P_ ((char *, Lisp_Object *));
1233extern void defvar_bool (); 1240extern void defvar_lisp_nopro P_ ((char *, Lisp_Object *));
1234extern void defvar_int (); 1241extern void defvar_bool P_ ((char *, int *));
1235extern void defvar_kboard (); 1242extern void defvar_int P_ ((char *, int *));
1243extern void defvar_per_buffer P_ ((char *, Lisp_Object *, Lisp_Object, char *));
1244extern void defvar_kboard P_ ((char *, int));
1236 1245
1237/* Macros we use to define forwarded Lisp variables. 1246/* Macros we use to define forwarded Lisp variables.
1238 These are used in the syms_of_FILENAME functions. */ 1247 These are used in the syms_of_FILENAME functions. */
@@ -1265,7 +1274,7 @@ extern void defvar_kboard ();
1265struct specbinding 1274struct specbinding
1266 { 1275 {
1267 Lisp_Object symbol, old_value; 1276 Lisp_Object symbol, old_value;
1268 Lisp_Object (*func) (); 1277 Lisp_Object (*func) P_ ((Lisp_Object));
1269 Lisp_Object unused; /* Dividing by 16 is faster than by 12 */ 1278 Lisp_Object unused; /* Dividing by 16 is faster than by 12 */
1270 }; 1279 };
1271 1280
@@ -1419,7 +1428,7 @@ struct gcpro
1419 1428
1420/* Call staticpro (&var) to protect static variable `var'. */ 1429/* Call staticpro (&var) to protect static variable `var'. */
1421 1430
1422void staticpro(); 1431void staticpro P_ ((Lisp_Object *));
1423 1432
1424#define UNGCPRO (gcprolist = gcpro1.next) 1433#define UNGCPRO (gcprolist = gcpro1.next)
1425 1434
@@ -1446,12 +1455,9 @@ else
1446 extern Lisp_Object fnname DEFUN_ARGS_ ## maxargs 1455 extern Lisp_Object fnname DEFUN_ARGS_ ## maxargs
1447#endif 1456#endif
1448 1457
1449/* Declare the prototype for a general external function. */ 1458/* Forward declarations for prototypes. */
1450#ifdef __STDC__ 1459struct window;
1451#define P_(proto) proto 1460struct frame;
1452#else
1453#define P_(proto) ()
1454#endif
1455 1461
1456/* Defined in data.c */ 1462/* Defined in data.c */
1457extern Lisp_Object Qnil, Qt, Qquote, Qlambda, Qsubr, Qunbound; 1463extern Lisp_Object Qnil, Qt, Qquote, Qlambda, Qsubr, Qunbound;
@@ -1570,11 +1576,14 @@ extern void args_out_of_range_3 P_ ((Lisp_Object, Lisp_Object, Lisp_Object));
1570extern Lisp_Object wrong_type_argument P_ ((Lisp_Object, Lisp_Object)); 1576extern Lisp_Object wrong_type_argument P_ ((Lisp_Object, Lisp_Object));
1571extern void store_symval_forwarding P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); 1577extern void store_symval_forwarding P_ ((Lisp_Object, Lisp_Object, Lisp_Object));
1572extern Lisp_Object do_symval_forwarding P_ ((Lisp_Object)); 1578extern Lisp_Object do_symval_forwarding P_ ((Lisp_Object));
1579extern Lisp_Object set_internal P_ ((Lisp_Object, Lisp_Object, int));
1573 1580
1574/* Defined in cmds.c */ 1581/* Defined in cmds.c */
1575EXFUN (Fend_of_line, 1); 1582EXFUN (Fend_of_line, 1);
1576EXFUN (Fforward_char, 1); 1583EXFUN (Fforward_char, 1);
1577EXFUN (Fforward_line, 1); 1584EXFUN (Fforward_line, 1);
1585extern int forward_point P_ ((int));
1586extern int internal_self_insert P_ ((int, int));
1578 1587
1579/* Defined in coding.c */ 1588/* Defined in coding.c */
1580EXFUN (Fcoding_system_p, 1); 1589EXFUN (Fcoding_system_p, 1);
@@ -1582,6 +1591,8 @@ EXFUN (Fcheck_coding_system, 1);
1582EXFUN (Fread_coding_system, 2); 1591EXFUN (Fread_coding_system, 2);
1583EXFUN (Fread_non_nil_coding_system, 1); 1592EXFUN (Fread_non_nil_coding_system, 1);
1584EXFUN (Ffind_operation_coding_system, MANY); 1593EXFUN (Ffind_operation_coding_system, MANY);
1594EXFUN (Fencode_coding_string, 3);
1595EXFUN (Fdecode_coding_string, 3);
1585 1596
1586/* Defined in charset.c */ 1597/* Defined in charset.c */
1587EXFUN (Fchar_bytes, 1); 1598EXFUN (Fchar_bytes, 1);
@@ -1590,6 +1601,9 @@ EXFUN (Fchar_bytes, 1);
1590EXFUN (Fforward_word, 1); 1601EXFUN (Fforward_word, 1);
1591EXFUN (Fskip_chars_forward, 2); 1602EXFUN (Fskip_chars_forward, 2);
1592EXFUN (Fskip_chars_backward, 2); 1603EXFUN (Fskip_chars_backward, 2);
1604EXFUN (Fsyntax_table_p, 1);
1605EXFUN (Fsyntax_table, 0);
1606EXFUN (Fset_syntax_table, 1);
1593 1607
1594/* Defined in fns.c */ 1608/* Defined in fns.c */
1595extern Lisp_Object Qstring_lessp; 1609extern Lisp_Object Qstring_lessp;
@@ -1635,9 +1649,13 @@ EXFUN (Fcopy_alist, 1);
1635EXFUN (Fplist_get, 2); 1649EXFUN (Fplist_get, 2);
1636EXFUN (Fset_char_table_parent, 2); 1650EXFUN (Fset_char_table_parent, 2);
1637EXFUN (Fchar_table_extra_slot, 2); 1651EXFUN (Fchar_table_extra_slot, 2);
1652EXFUN (Fset_char_table_extra_slot, 3);
1638EXFUN (Frassoc, 2); 1653EXFUN (Frassoc, 2);
1639EXFUN (Fstring_equal, 2); 1654EXFUN (Fstring_equal, 2);
1640EXFUN (Fstring_lessp, 2); 1655EXFUN (Fstring_lessp, 2);
1656extern void map_char_table P_ ((void (*) (Lisp_Object, Lisp_Object, Lisp_Object),
1657 Lisp_Object, Lisp_Object, Lisp_Object, int,
1658 Lisp_Object *));
1641 1659
1642/* Defined in floatfns.c */ 1660/* Defined in floatfns.c */
1643#ifdef LISP_FLOAT_TYPE 1661#ifdef LISP_FLOAT_TYPE
@@ -1665,12 +1683,15 @@ extern void modify_region P_ ((struct buffer *, int, int));
1665extern void prepare_to_modify_buffer P_ ((int, int, int *)); 1683extern void prepare_to_modify_buffer P_ ((int, int, int *));
1666extern void signal_before_change P_ ((int, int, int *)); 1684extern void signal_before_change P_ ((int, int, int *));
1667extern void signal_after_change P_ ((int, int, int)); 1685extern void signal_after_change P_ ((int, int, int));
1686extern void replace_range P_ ((int, int, Lisp_Object, int, int));
1668 1687
1669/* Defined in dispnew.c */ 1688/* Defined in dispnew.c */
1670EXFUN (Fding, 1); 1689EXFUN (Fding, 1);
1671EXFUN (Fredraw_display, 0); 1690EXFUN (Fredraw_display, 0);
1672EXFUN (Fsleep_for, 2); 1691EXFUN (Fsleep_for, 2);
1673EXFUN (Fsit_for, 3); 1692EXFUN (Fsit_for, 3);
1693extern Lisp_Object sit_for P_ ((int, int, int, int, int));
1694extern void quit_error_check P_ ((void));
1674 1695
1675/* Defined in xdisp.c */ 1696/* Defined in xdisp.c */
1676extern Lisp_Object Vmessage_log_max; 1697extern Lisp_Object Vmessage_log_max;
@@ -1682,8 +1703,18 @@ extern void message2 P_ ((char *, int));
1682extern void message2_nolog P_ ((char *, int)); 1703extern void message2_nolog P_ ((char *, int));
1683extern void message_dolog P_ ((char *, int, int)); 1704extern void message_dolog P_ ((char *, int, int));
1684extern void message_log_maybe_newline P_ ((void)); 1705extern void message_log_maybe_newline P_ ((void));
1706extern void update_echo_area P_ ((void));
1707extern void truncate_echo_area P_ ((int));
1708extern void redisplay P_ ((void));
1709extern void redisplay_preserve_echo_area P_ ((void));
1710extern void mark_window_display_accurate P_ ((Lisp_Object, int));
1711extern int invisible_p P_ ((Lisp_Object, Lisp_Object));
1712extern void prepare_menu_bars P_ ((void));
1685 1713
1686/* Defined in alloc.c */ 1714/* Defined in alloc.c */
1715extern void malloc_warning P_ ((char *));
1716extern void memory_full P_ ((void));
1717extern void buffer_memory_full P_ ((void));
1687extern Lisp_Object Vpurify_flag; 1718extern Lisp_Object Vpurify_flag;
1688EXFUN (Fcons, 2); 1719EXFUN (Fcons, 2);
1689EXFUN (Flist, MANY); 1720EXFUN (Flist, MANY);
@@ -1713,6 +1744,10 @@ extern int gc_in_progress;
1713#ifdef LISP_FLOAT_TYPE 1744#ifdef LISP_FLOAT_TYPE
1714extern Lisp_Object make_float P_ ((double)); 1745extern Lisp_Object make_float P_ ((double));
1715#endif /* LISP_FLOAT_TYPE */ 1746#endif /* LISP_FLOAT_TYPE */
1747extern void display_malloc_warning P_ ((void));
1748extern int inhibit_garbage_collection P_ ((void));
1749extern void free_marker P_ ((Lisp_Object));
1750extern void free_cons P_ ((struct Lisp_Cons *));
1716 1751
1717/* Defined in print.c */ 1752/* Defined in print.c */
1718extern Lisp_Object Vprin1_to_string_buffer; 1753extern Lisp_Object Vprin1_to_string_buffer;
@@ -1727,6 +1762,16 @@ extern Lisp_Object Qexternal_debugging_output;
1727extern void temp_output_buffer_setup P_ ((char *)); 1762extern void temp_output_buffer_setup P_ ((char *));
1728extern int print_level, print_escape_newlines; 1763extern int print_level, print_escape_newlines;
1729extern Lisp_Object Qprint_escape_newlines; 1764extern Lisp_Object Qprint_escape_newlines;
1765extern void write_string P_ ((char *, int));
1766extern void write_string_1 P_ ((char *, int, Lisp_Object));
1767extern void print_error_message P_ ((Lisp_Object, Lisp_Object));
1768extern Lisp_Object internal_with_output_to_temp_buffer
1769 P_ ((char *, Lisp_Object (*) (Lisp_Object), Lisp_Object));
1770extern void float_to_string P_ ((unsigned char *, double));
1771
1772/* Defined in doprnt.c */
1773extern int doprnt P_ ((char *, int, char *, char *, int, char **));
1774extern int doprnt_lisp P_ ((char *, int, char *, char *, int, char **));
1730 1775
1731/* Defined in lread.c */ 1776/* Defined in lread.c */
1732extern Lisp_Object Qvariable_documentation, Qstandard_input; 1777extern Lisp_Object Qvariable_documentation, Qstandard_input;
@@ -1747,6 +1792,12 @@ extern Lisp_Object oblookup P_ ((Lisp_Object, char *, int));
1747 if (initialized) Vcurrent_load_list = Fcons (x, Vcurrent_load_list) 1792 if (initialized) Vcurrent_load_list = Fcons (x, Vcurrent_load_list)
1748extern Lisp_Object Vcurrent_load_list; 1793extern Lisp_Object Vcurrent_load_list;
1749extern Lisp_Object Vload_history; 1794extern Lisp_Object Vload_history;
1795extern int openp P_ ((Lisp_Object, Lisp_Object, char *, Lisp_Object *, int));
1796extern int isfloat_string P_ ((char *));
1797extern void map_obarray P_ ((Lisp_Object, void (*) (Lisp_Object, Lisp_Object),
1798 Lisp_Object));
1799extern void dir_warning P_ ((char *, Lisp_Object));
1800extern void close_load_descs P_ ((void));
1750 1801
1751/* Defined in eval.c */ 1802/* Defined in eval.c */
1752extern Lisp_Object Qautoload, Qexit, Qinteractive, Qcommandp, Qdefun, Qmacro; 1803extern Lisp_Object Qautoload, Qexit, Qinteractive, Qcommandp, Qdefun, Qmacro;
@@ -1766,6 +1817,8 @@ EXFUN (Frun_hooks, MANY);
1766EXFUN (Frun_hook_with_args, MANY); 1817EXFUN (Frun_hook_with_args, MANY);
1767EXFUN (Frun_hook_with_args_until_success, MANY); 1818EXFUN (Frun_hook_with_args_until_success, MANY);
1768EXFUN (Frun_hook_with_args_until_failure, MANY); 1819EXFUN (Frun_hook_with_args_until_failure, MANY);
1820extern Lisp_Object run_hook_list_with_args P_ ((Lisp_Object, int, Lisp_Object *));
1821extern void run_hook_with_args_2 P_ ((Lisp_Object, Lisp_Object, Lisp_Object));
1769EXFUN (Fand, UNEVALLED); 1822EXFUN (Fand, UNEVALLED);
1770EXFUN (For, UNEVALLED); 1823EXFUN (For, UNEVALLED);
1771EXFUN (Fif, UNEVALLED); 1824EXFUN (Fif, UNEVALLED);
@@ -1804,8 +1857,11 @@ extern Lisp_Object apply_lambda P_ ((Lisp_Object, Lisp_Object, int));
1804extern Lisp_Object internal_catch P_ ((Lisp_Object, Lisp_Object (*) (Lisp_Object), Lisp_Object)); 1857extern Lisp_Object internal_catch P_ ((Lisp_Object, Lisp_Object (*) (Lisp_Object), Lisp_Object));
1805extern Lisp_Object internal_condition_case P_ ((Lisp_Object (*) (void), Lisp_Object, Lisp_Object (*) (Lisp_Object))); 1858extern Lisp_Object internal_condition_case P_ ((Lisp_Object (*) (void), Lisp_Object, Lisp_Object (*) (Lisp_Object)));
1806extern Lisp_Object internal_condition_case_1 P_ ((Lisp_Object (*) (Lisp_Object), Lisp_Object, Lisp_Object, Lisp_Object (*) (Lisp_Object))); 1859extern Lisp_Object internal_condition_case_1 P_ ((Lisp_Object (*) (Lisp_Object), Lisp_Object, Lisp_Object, Lisp_Object (*) (Lisp_Object)));
1860extern void specbind P_ ((Lisp_Object, Lisp_Object));
1861extern void record_unwind_protect P_ ((Lisp_Object (*) (Lisp_Object), Lisp_Object));
1807extern Lisp_Object unbind_to P_ ((int, Lisp_Object)); 1862extern Lisp_Object unbind_to P_ ((int, Lisp_Object));
1808extern void error P_ ((/* char *, ... */)); 1863extern void error P_ ((/* char *, ... */));
1864extern void do_autoload P_ ((Lisp_Object, Lisp_Object));
1809extern Lisp_Object un_autoload P_ ((Lisp_Object)); 1865extern Lisp_Object un_autoload P_ ((Lisp_Object));
1810EXFUN (Ffetch_bytecode, 1); 1866EXFUN (Ffetch_bytecode, 1);
1811 1867
@@ -1828,6 +1884,7 @@ EXFUN (Finsert_and_inherit, MANY);
1828EXFUN (Finsert_before_markers, MANY); 1884EXFUN (Finsert_before_markers, MANY);
1829EXFUN (Finsert_buffer_substring, 3); 1885EXFUN (Finsert_buffer_substring, 3);
1830EXFUN (Finsert_char, 3); 1886EXFUN (Finsert_char, 3);
1887extern void insert1 P_ ((Lisp_Object));
1831EXFUN (Feolp, 0); 1888EXFUN (Feolp, 0);
1832EXFUN (Feobp, 0); 1889EXFUN (Feobp, 0);
1833EXFUN (Fbolp, 0); 1890EXFUN (Fbolp, 0);
@@ -1847,13 +1904,17 @@ EXFUN (Fnarrow_to_region, 2);
1847EXFUN (Fwiden, 0); 1904EXFUN (Fwiden, 0);
1848EXFUN (Fuser_login_name, 1); 1905EXFUN (Fuser_login_name, 1);
1849EXFUN (Fsystem_name, 0); 1906EXFUN (Fsystem_name, 0);
1907extern int clip_to_bounds P_ ((int, int, int));
1850 1908
1851/* defined in buffer.c */ 1909/* defined in buffer.c */
1910extern void nsberror P_ ((Lisp_Object));
1852EXFUN (Foverlay_start, 1); 1911EXFUN (Foverlay_start, 1);
1853EXFUN (Foverlay_end, 1); 1912EXFUN (Foverlay_end, 1);
1854extern void adjust_overlays_for_insert P_ ((int, int)); 1913extern void adjust_overlays_for_insert P_ ((int, int));
1855extern void adjust_overlays_for_delete P_ ((int, int)); 1914extern void adjust_overlays_for_delete P_ ((int, int));
1856extern void fix_overlays_in_range P_ ((int, int)); 1915extern void fix_overlays_in_range P_ ((int, int));
1916extern void report_overlay_modification P_ ((Lisp_Object, Lisp_Object, int,
1917 Lisp_Object, Lisp_Object, Lisp_Object));
1857extern int overlay_touches_p P_ ((int)); 1918extern int overlay_touches_p P_ ((int));
1858extern Lisp_Object Vbuffer_alist, Vinhibit_read_only; 1919extern Lisp_Object Vbuffer_alist, Vinhibit_read_only;
1859EXFUN (Fget_buffer, 1); 1920EXFUN (Fget_buffer, 1);
@@ -1883,6 +1944,9 @@ EXFUN (Fmarker_position, 1);
1883EXFUN (Fmarker_buffer, 1); 1944EXFUN (Fmarker_buffer, 1);
1884EXFUN (Fcopy_marker, 2); 1945EXFUN (Fcopy_marker, 2);
1885EXFUN (Fset_marker, 3); 1946EXFUN (Fset_marker, 3);
1947extern int marker_position P_ ((Lisp_Object));
1948extern void unchain_marker P_ ((Lisp_Object));
1949extern Lisp_Object set_marker_restricted P_ ((Lisp_Object, Lisp_Object, Lisp_Object));
1886 1950
1887/* Defined in fileio.c */ 1951/* Defined in fileio.c */
1888 1952
@@ -1906,6 +1970,8 @@ EXFUN (Fwrite_region, 6);
1906EXFUN (Ffile_readable_p, 1); 1970EXFUN (Ffile_readable_p, 1);
1907EXFUN (Ffile_executable_p, 1); 1971EXFUN (Ffile_executable_p, 1);
1908EXFUN (Fread_file_name, 5); 1972EXFUN (Fread_file_name, 5);
1973extern void report_file_error P_ ((char *, Lisp_Object));
1974extern int internal_delete_file P_ ((Lisp_Object));
1909 1975
1910/* Defined in abbrev.c */ 1976/* Defined in abbrev.c */
1911 1977
@@ -1918,10 +1984,17 @@ EXFUN (Fmatch_data, 2);
1918EXFUN (Fstore_match_data, 1); 1984EXFUN (Fstore_match_data, 1);
1919EXFUN (Fmatch_beginning, 1); 1985EXFUN (Fmatch_beginning, 1);
1920EXFUN (Fmatch_end, 1); 1986EXFUN (Fmatch_end, 1);
1987extern int fast_string_match P_ ((Lisp_Object, Lisp_Object));
1988extern int fast_c_string_match_ignore_case P_ ((Lisp_Object, char *));
1989extern int scan_buffer P_ ((int, int, int, int, int *, int));
1990extern int find_next_newline P_ ((int, int));
1991extern int find_next_newline_no_quit P_ ((int, int));
1992extern int find_before_next_newline P_ ((int, int, int));
1921 1993
1922/* defined in minibuf.c */ 1994/* defined in minibuf.c */
1923 1995
1924extern Lisp_Object last_minibuf_string; 1996extern Lisp_Object last_minibuf_string;
1997extern void choose_minibuf_frame P_ ((void));
1925EXFUN (Fcompleting_read, 8); 1998EXFUN (Fcompleting_read, 8);
1926EXFUN (Fread_from_minibuffer, 7); 1999EXFUN (Fread_from_minibuffer, 7);
1927EXFUN (Fread_variable, 2); 2000EXFUN (Fread_variable, 2);
@@ -1931,6 +2004,7 @@ EXFUN (Feval_minibuffer, 2);
1931EXFUN (Fread_string, 5); 2004EXFUN (Fread_string, 5);
1932EXFUN (Fread_no_blanks_input, 3); 2005EXFUN (Fread_no_blanks_input, 3);
1933extern Lisp_Object get_minibuffer P_ ((int)); 2006extern Lisp_Object get_minibuffer P_ ((int));
2007extern void temp_echo_area_glyphs P_ ((char *));
1934 2008
1935/* Defined in callint.c */ 2009/* Defined in callint.c */
1936 2010
@@ -1966,16 +2040,24 @@ extern Lisp_Object menu_bar_items P_ ((Lisp_Object));
1966extern Lisp_Object Qvertical_scroll_bar; 2040extern Lisp_Object Qvertical_scroll_bar;
1967extern void discard_mouse_events (); 2041extern void discard_mouse_events ();
1968EXFUN (Fevent_convert_list, 1); 2042EXFUN (Fevent_convert_list, 1);
1969#ifdef MULTI_KBOARD
1970extern void delete_kboard P_ ((/* KBOARD * */));
1971#endif
1972EXFUN (Fread_key_sequence, 4); 2043EXFUN (Fread_key_sequence, 4);
2044EXFUN (Fset_input_mode, 4);
2045extern int detect_input_pending P_ ((void));
2046extern int detect_input_pending_run_timers P_ ((int));
2047extern void safe_run_hooks P_ ((Lisp_Object));
2048extern void cmd_error_internal P_ ((Lisp_Object, char *));
2049extern Lisp_Object command_loop_1 P_ ((void));
2050extern Lisp_Object recursive_edit_1 P_ ((void));
2051extern void record_auto_save P_ ((void));
1973 2052
1974/* defined in keymap.c */ 2053/* defined in keymap.c */
1975 2054
1976extern Lisp_Object Qkeymap, Qmenu_bar; 2055extern Lisp_Object Qkeymap, Qmenu_bar;
1977extern Lisp_Object current_global_map; 2056extern Lisp_Object current_global_map;
2057EXFUN (Fmake_sparse_keymap, 1);
2058EXFUN (Fcopy_keymap, 1);
1978EXFUN (Fdefine_key, 3); 2059EXFUN (Fdefine_key, 3);
2060EXFUN (Flookup_key, 3);
1979EXFUN (Fkey_binding, 2); 2061EXFUN (Fkey_binding, 2);
1980EXFUN (Fkey_description, 1); 2062EXFUN (Fkey_description, 1);
1981EXFUN (Fsingle_key_description, 1); 2063EXFUN (Fsingle_key_description, 1);
@@ -1985,37 +2067,55 @@ extern Lisp_Object store_in_keymap P_ ((Lisp_Object, Lisp_Object, Lisp_Object));
1985extern Lisp_Object get_keyelt P_ ((Lisp_Object, int)); 2067extern Lisp_Object get_keyelt P_ ((Lisp_Object, int));
1986extern Lisp_Object get_keymap P_ ((Lisp_Object)); 2068extern Lisp_Object get_keymap P_ ((Lisp_Object));
1987extern Lisp_Object get_keymap_1 P_ ((Lisp_Object, int, int)); 2069extern Lisp_Object get_keymap_1 P_ ((Lisp_Object, int, int));
1988extern void describe_map_tree P_ ((Lisp_Object, int, Lisp_Object, Lisp_Object, char *, int, int, int)); 2070extern void describe_vector P_ ((Lisp_Object, Lisp_Object,
2071 void (*) (Lisp_Object), int,
2072 Lisp_Object, Lisp_Object, int *, int));
2073extern void describe_map_tree P_ ((Lisp_Object, int, Lisp_Object, Lisp_Object,
2074 char *, int, int, int));
2075extern int current_minor_maps P_ ((Lisp_Object **, Lisp_Object **));
2076extern void initial_define_key P_ ((Lisp_Object, int, char *));
2077extern void initial_define_lispy_key P_ ((Lisp_Object, char *, char *));
2078extern void fix_submap_inheritance P_ ((Lisp_Object, Lisp_Object, Lisp_Object));
1989 2079
1990/* defined in indent.c */ 2080/* defined in indent.c */
1991EXFUN (Fvertical_motion, 2); 2081EXFUN (Fvertical_motion, 2);
1992EXFUN (Findent_to, 2); 2082EXFUN (Findent_to, 2);
1993EXFUN (Fcurrent_column, 0); 2083EXFUN (Fcurrent_column, 0);
1994EXFUN (Fmove_to_column, 2); 2084EXFUN (Fmove_to_column, 2);
2085extern int current_column P_ ((void));
2086extern void invalidate_current_column P_ ((void));
2087extern int pos_tab_offset P_ ((struct window *, int));
2088extern int indented_beyond_p P_ ((int, int));
1995 2089
1996/* defined in window.c */ 2090/* defined in window.c */
1997extern Lisp_Object Qwindowp, Qwindow_live_p; 2091extern Lisp_Object Qwindowp, Qwindow_live_p;
1998EXFUN (Fselected_window, 0); 2092EXFUN (Fselected_window, 0);
2093EXFUN (Fnext_window, 3);
2094EXFUN (Fdelete_window, 1);
2095EXFUN (Fselect_window, 1);
2096EXFUN (Fset_window_buffer, 2);
1999EXFUN (Fget_buffer_window, 2); 2097EXFUN (Fget_buffer_window, 2);
2000EXFUN (Fsave_window_excursion, UNEVALLED); 2098EXFUN (Fsave_window_excursion, UNEVALLED);
2099EXFUN (Fsplit_window, 3);
2001EXFUN (Fset_window_configuration, 1); 2100EXFUN (Fset_window_configuration, 1);
2002EXFUN (Fcurrent_window_configuration, 1); 2101EXFUN (Fcurrent_window_configuration, 1);
2003EXFUN (Fcoordinates_in_window_p, 2); 2102EXFUN (Fcoordinates_in_window_p, 2);
2004EXFUN (Fwindow_at, 3); 2103EXFUN (Fwindow_at, 3);
2005EXFUN (Fpos_visible_in_window_p, 2); 2104EXFUN (Fpos_visible_in_window_p, 2);
2006extern int window_internal_height P_ ((/* struct window * */)); 2105extern int window_internal_height P_ ((struct window *));
2007extern int window_internal_width P_ ((/* struct window * */)); 2106extern int window_internal_width P_ ((struct window *));
2008EXFUN (Frecenter, 1); 2107EXFUN (Frecenter, 1);
2009EXFUN (Fscroll_other_window, 1); 2108EXFUN (Fscroll_other_window, 1);
2010EXFUN (Fset_window_start, 3); 2109EXFUN (Fset_window_start, 3);
2011extern void temp_output_buffer_show P_ ((Lisp_Object)); 2110extern void temp_output_buffer_show P_ ((Lisp_Object));
2111extern void replace_buffer_in_all_windows P_ ((Lisp_Object));
2012 2112
2013/* defined in frame.c */ 2113/* defined in frame.c */
2014extern Lisp_Object Qvisible; 2114extern Lisp_Object Qvisible;
2015extern void store_frame_param P_ ((/* struct frame *, Lisp_Object, Lisp_Object */)); 2115extern void store_frame_param P_ ((struct frame *, Lisp_Object, Lisp_Object));
2016extern void store_in_alist P_ ((Lisp_Object *, Lisp_Object, Lisp_Object)); 2116extern void store_in_alist P_ ((Lisp_Object *, Lisp_Object, Lisp_Object));
2017extern Lisp_Object do_switch_frame P_ ((Lisp_Object, Lisp_Object, int)); 2117extern Lisp_Object do_switch_frame P_ ((Lisp_Object, Lisp_Object, int));
2018extern Lisp_Object get_frame_param P_ ((/* struct frame *, Lisp_Object */)); 2118extern Lisp_Object get_frame_param P_ ((struct frame *, Lisp_Object));
2019extern Lisp_Object frame_buffer_predicate P_ ((void)); 2119extern Lisp_Object frame_buffer_predicate P_ ((void));
2020EXFUN (Fframep, 1); 2120EXFUN (Fframep, 1);
2021EXFUN (Fselect_frame, 2); 2121EXFUN (Fselect_frame, 2);
@@ -2041,7 +2141,11 @@ EXFUN (Fset_frame_size, 3);
2041EXFUN (Fset_frame_position, 3); 2141EXFUN (Fset_frame_position, 3);
2042EXFUN (Fraise_frame, 1); 2142EXFUN (Fraise_frame, 1);
2043EXFUN (Fredirect_frame_focus, 2); 2143EXFUN (Fredirect_frame_focus, 2);
2144EXFUN (Fset_frame_selected_window, 2);
2044extern Lisp_Object frame_buffer_list P_ ((void)); 2145extern Lisp_Object frame_buffer_list P_ ((void));
2146extern void frames_discard_buffer P_ ((Lisp_Object));
2147extern void set_frame_buffer_list P_ ((Lisp_Object));
2148extern void frames_bury_buffer P_ ((Lisp_Object));
2045 2149
2046/* defined in emacs.c */ 2150/* defined in emacs.c */
2047extern Lisp_Object decode_env_path P_ ((char *, char *)); 2151extern Lisp_Object decode_env_path P_ ((char *, char *));
@@ -2065,10 +2169,19 @@ EXFUN (Fkill_process, 2);
2065EXFUN (Fprocess_send_eof, 1); 2169EXFUN (Fprocess_send_eof, 1);
2066EXFUN (Fwaiting_for_user_input_p, 0); 2170EXFUN (Fwaiting_for_user_input_p, 0);
2067extern Lisp_Object Qprocessp; 2171extern Lisp_Object Qprocessp;
2172extern void kill_buffer_processes P_ ((Lisp_Object));
2173extern int wait_reading_process_input P_ ((int, int, Lisp_Object, int));
2174extern void deactivate_process P_ ((Lisp_Object));
2175extern void add_keyboard_wait_descriptor P_ ((int));
2176extern void delete_keyboard_wait_descriptor P_ ((int));
2177extern void close_process_descs P_ ((void));
2178extern void status_notify P_ ((void));
2179extern int read_process_output P_ ((Lisp_Object, int));
2068 2180
2069/* defined in callproc.c */ 2181/* defined in callproc.c */
2070extern Lisp_Object Vexec_path, Vexec_directory, Vdata_directory; 2182extern Lisp_Object Vexec_path, Vexec_directory, Vdata_directory;
2071extern Lisp_Object Vdoc_directory; 2183extern Lisp_Object Vdoc_directory;
2184extern int child_setup P_ ((int, int, int, char **, int, Lisp_Object));
2072 2185
2073/* defined in doc.c */ 2186/* defined in doc.c */
2074extern Lisp_Object Vdoc_file_name; 2187extern Lisp_Object Vdoc_file_name;
@@ -2089,6 +2202,13 @@ EXFUN (Fexecute_kbd_macro, 2);
2089extern Lisp_Object Qinhibit_read_only; 2202extern Lisp_Object Qinhibit_read_only;
2090EXFUN (Fundo_boundary, 0); 2203EXFUN (Fundo_boundary, 0);
2091extern Lisp_Object truncate_undo_list P_ ((Lisp_Object, int, int)); 2204extern Lisp_Object truncate_undo_list P_ ((Lisp_Object, int, int));
2205extern void record_marker_adjustment P_ ((Lisp_Object, int));
2206extern void record_insert P_ ((int, int));
2207extern void record_delete P_ ((int, int));
2208extern void record_first_change P_ ((void));
2209extern void record_change P_ ((int, int));
2210extern void record_property_change P_ ((int, int, Lisp_Object, Lisp_Object,
2211 Lisp_Object));
2092 2212
2093/* defined in textprop.c */ 2213/* defined in textprop.c */
2094extern Lisp_Object Qmodification_hooks; 2214extern Lisp_Object Qmodification_hooks;
@@ -2103,6 +2223,7 @@ EXFUN (Fset_text_properties, 4);
2103EXFUN (Ftext_property_not_all, 5); 2223EXFUN (Ftext_property_not_all, 5);
2104EXFUN (Fprevious_char_property_change, 2); 2224EXFUN (Fprevious_char_property_change, 2);
2105EXFUN (Fnext_char_property_change, 2); 2225EXFUN (Fnext_char_property_change, 2);
2226extern void report_interval_modification P_ ((Lisp_Object, Lisp_Object));
2106 2227
2107/* defined in intervals.c */ 2228/* defined in intervals.c */
2108extern Lisp_Object get_local_map P_ ((int, struct buffer *)); 2229extern Lisp_Object get_local_map P_ ((int, struct buffer *));
@@ -2110,6 +2231,33 @@ extern Lisp_Object get_local_map P_ ((int, struct buffer *));
2110/* defined in xmenu.c */ 2231/* defined in xmenu.c */
2111EXFUN (Fx_popup_menu, 2); 2232EXFUN (Fx_popup_menu, 2);
2112EXFUN (Fx_popup_dialog, 2); 2233EXFUN (Fx_popup_dialog, 2);
2234
2235/* defined in sysdep.c */
2236extern void init_sigio P_ ((int));
2237extern void request_sigio P_ ((void));
2238extern void unrequest_sigio P_ ((void));
2239extern void reset_sys_modes P_ ((void));
2240extern void sys_subshell P_ ((void));
2241extern void sys_suspend P_ ((void));
2242extern void discard_tty_input P_ ((void));
2243extern void init_sys_modes P_ ((void));
2244extern void reset_sys_modes P_ ((void));
2245extern void get_frame_size P_ ((int *, int *));
2246extern void wait_for_termination P_ ((int));
2247extern void flush_pending_output P_ ((int));
2248extern void child_setup_tty P_ ((int));
2249extern void setup_pty P_ ((int));
2250extern int set_window_size P_ ((int, int, int));
2251extern void create_process P_ ((Lisp_Object, char **, Lisp_Object));
2252extern int tabs_safe_p P_ ((void));
2253extern void init_baud_rate P_ ((void));
2254
2255/* defined in filelock.c */
2256EXFUN (Funlock_buffer, 0);
2257extern void unlock_all_files P_ ((void));
2258extern void lock_file P_ ((Lisp_Object));
2259extern void unlock_file P_ ((Lisp_Object));
2260extern void unlock_buffer P_ ((struct buffer *));
2113 2261
2114/* Nonzero means Emacs has already been initialized. 2262/* Nonzero means Emacs has already been initialized.
2115 Used during startup to detect startup of dumped Emacs. */ 2263 Used during startup to detect startup of dumped Emacs. */
@@ -2117,16 +2265,14 @@ extern int initialized;
2117 2265
2118extern int immediate_quit; /* Nonzero means ^G can quit instantly */ 2266extern int immediate_quit; /* Nonzero means ^G can quit instantly */
2119 2267
2120extern void debugger ();
2121
2122extern char *getenv (), *ctime (), *getwd (); 2268extern char *getenv (), *ctime (), *getwd ();
2123extern long *xmalloc (), *xrealloc (); 2269extern long *xmalloc (), *xrealloc ();
2124extern void xfree (); 2270extern void xfree ();
2125 2271
2126extern char *egetenv (); 2272extern char *egetenv P_ ((char *));
2127 2273
2128/* Set up the name of the machine we're running on. */ 2274/* Set up the name of the machine we're running on. */
2129extern void init_system_name (); 2275extern void init_system_name P_ ((void));
2130 2276
2131/* Some systems (e.g., NT) use a different path separator than Unix, 2277/* Some systems (e.g., NT) use a different path separator than Unix,
2132 in addition to a device separator. Default the path separator 2278 in addition to a device separator. Default the path separator