diff options
| author | Dan Nicolaescu | 2010-08-05 16:34:12 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-08-05 16:34:12 -0700 |
| commit | 04bab72cc68e3b7b1bca9b871314fb79badd7042 (patch) | |
| tree | 9d9fbcfdc8b4c26d2592afe37ccc9ba6672d8d21 /src | |
| parent | dff94ed500892b5b3fcd067a280c81ba04ddf5f1 (diff) | |
| download | emacs-04bab72cc68e3b7b1bca9b871314fb79badd7042.tar.gz emacs-04bab72cc68e3b7b1bca9b871314fb79badd7042.zip | |
Remove extern declarations in .c files, .h files have them.
* src/data.c:
* src/dired.c:
* src/editfns.c:
* src/filelock.c:
* src/fns.c:
* src/font.c:
* src/fontset.c:
* src/frame.c:
* src/fringe.c:
* src/ftfont.c:
* src/gtkutil.c:
* src/indent.c:
* src/keyboard.c:
* src/keymap.c:
* src/lread.c:
* src/menu.c:
* src/print.c:
* src/search.c:
* src/sound.c:
* src/window.c:
* src/xdisp.c:
* src/xfaces.c:
* src/xfns.c:
* src/xfont.c:
* src/xftfont.c:
* src/xmenu.c:
* src/xterm.c: Remove declarations.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 29 | ||||
| -rw-r--r-- | src/data.c | 4 | ||||
| -rw-r--r-- | src/dired.c | 3 | ||||
| -rw-r--r-- | src/editfns.c | 3 | ||||
| -rw-r--r-- | src/filelock.c | 2 | ||||
| -rw-r--r-- | src/fns.c | 7 | ||||
| -rw-r--r-- | src/font.c | 25 | ||||
| -rw-r--r-- | src/fontset.c | 4 | ||||
| -rw-r--r-- | src/frame.c | 12 | ||||
| -rw-r--r-- | src/fringe.c | 6 | ||||
| -rw-r--r-- | src/ftfont.c | 6 | ||||
| -rw-r--r-- | src/gtkutil.c | 2 | ||||
| -rw-r--r-- | src/indent.c | 1 | ||||
| -rw-r--r-- | src/keyboard.c | 16 | ||||
| -rw-r--r-- | src/keymap.c | 5 | ||||
| -rw-r--r-- | src/lread.c | 4 | ||||
| -rw-r--r-- | src/menu.c | 6 | ||||
| -rw-r--r-- | src/print.c | 7 | ||||
| -rw-r--r-- | src/search.c | 2 | ||||
| -rw-r--r-- | src/sound.c | 1 | ||||
| -rw-r--r-- | src/window.c | 7 | ||||
| -rw-r--r-- | src/xdisp.c | 23 | ||||
| -rw-r--r-- | src/xfaces.c | 8 | ||||
| -rw-r--r-- | src/xfns.c | 13 | ||||
| -rw-r--r-- | src/xfont.c | 10 | ||||
| -rw-r--r-- | src/xftfont.c | 6 | ||||
| -rw-r--r-- | src/xmenu.c | 22 | ||||
| -rw-r--r-- | src/xterm.c | 19 |
28 files changed, 33 insertions, 220 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4e080f63533..21e2f3813fd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,34 @@ | |||
| 1 | 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | Remove extern declarations in .c files, .h files have them. | ||
| 4 | * data.c: | ||
| 5 | * dired.c: | ||
| 6 | * editfns.c: | ||
| 7 | * filelock.c: | ||
| 8 | * fns.c: | ||
| 9 | * font.c: | ||
| 10 | * fontset.c: | ||
| 11 | * frame.c: | ||
| 12 | * fringe.c: | ||
| 13 | * ftfont.c: | ||
| 14 | * gtkutil.c: | ||
| 15 | * indent.c: | ||
| 16 | * keyboard.c: | ||
| 17 | * keymap.c: | ||
| 18 | * lread.c: | ||
| 19 | * menu.c: | ||
| 20 | * print.c: | ||
| 21 | * search.c: | ||
| 22 | * sound.c: | ||
| 23 | * window.c: | ||
| 24 | * xdisp.c: | ||
| 25 | * xfaces.c: | ||
| 26 | * xfns.c: | ||
| 27 | * xfont.c: | ||
| 28 | * xftfont.c: | ||
| 29 | * xmenu.c: | ||
| 30 | * xterm.c: Remove declarations. | ||
| 31 | |||
| 3 | Cleanup syssignal.h. | 32 | Cleanup syssignal.h. |
| 4 | * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused. | 33 | * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused. |
| 5 | (main_thread): Move down to remove #ifdef. | 34 | (main_thread): Move down to remove #ifdef. |
diff --git a/src/data.c b/src/data.c index 570f3053975..630d341a20e 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -665,8 +665,6 @@ DEFUN ("fset", Ffset, Sfset, 2, 2, 0, | |||
| 665 | return definition; | 665 | return definition; |
| 666 | } | 666 | } |
| 667 | 667 | ||
| 668 | extern Lisp_Object Qfunction_documentation; | ||
| 669 | |||
| 670 | DEFUN ("defalias", Fdefalias, Sdefalias, 2, 3, 0, | 668 | DEFUN ("defalias", Fdefalias, Sdefalias, 2, 3, 0, |
| 671 | doc: /* Set SYMBOL's function definition to DEFINITION, and return DEFINITION. | 669 | doc: /* Set SYMBOL's function definition to DEFINITION, and return DEFINITION. |
| 672 | Associates the function with the current load file, if any. | 670 | Associates the function with the current load file, if any. |
| @@ -2503,8 +2501,6 @@ enum arithop | |||
| 2503 | 2501 | ||
| 2504 | static Lisp_Object float_arith_driver (double, int, enum arithop, | 2502 | static Lisp_Object float_arith_driver (double, int, enum arithop, |
| 2505 | int, Lisp_Object *); | 2503 | int, Lisp_Object *); |
| 2506 | extern Lisp_Object fmod_float (Lisp_Object, Lisp_Object); | ||
| 2507 | |||
| 2508 | Lisp_Object | 2504 | Lisp_Object |
| 2509 | arith_driver (enum arithop code, int nargs, register Lisp_Object *args) | 2505 | arith_driver (enum arithop code, int nargs, register Lisp_Object *args) |
| 2510 | { | 2506 | { |
diff --git a/src/dired.c b/src/dired.c index fc033ac7e39..67f1ad3537a 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -82,9 +82,6 @@ extern struct direct *readdir (DIR *); | |||
| 82 | #include "regex.h" | 82 | #include "regex.h" |
| 83 | #include "blockinput.h" | 83 | #include "blockinput.h" |
| 84 | 84 | ||
| 85 | /* Returns a search buffer, with a fastmap allocated and ready to go. */ | ||
| 86 | extern struct re_pattern_buffer *compile_pattern (Lisp_Object, struct re_registers *, Lisp_Object, int, int); | ||
| 87 | |||
| 88 | /* From filemode.c. Can't go in Lisp.h because of `stat'. */ | 85 | /* From filemode.c. Can't go in Lisp.h because of `stat'. */ |
| 89 | extern void filemodestring (struct stat *, char *); | 86 | extern void filemodestring (struct stat *, char *); |
| 90 | 87 | ||
diff --git a/src/editfns.c b/src/editfns.c index 7a336f8cbc4..c3ffd203124 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3380,9 +3380,6 @@ usage: (message-box FORMAT-STRING &rest ARGS) */) | |||
| 3380 | return val; | 3380 | return val; |
| 3381 | } | 3381 | } |
| 3382 | } | 3382 | } |
| 3383 | #ifdef HAVE_MENUS | ||
| 3384 | extern Lisp_Object last_nonmenu_event; | ||
| 3385 | #endif | ||
| 3386 | 3383 | ||
| 3387 | DEFUN ("message-or-box", Fmessage_or_box, Smessage_or_box, 1, MANY, 0, | 3384 | DEFUN ("message-or-box", Fmessage_or_box, Smessage_or_box, 1, MANY, 0, |
| 3388 | doc: /* Display a message in a dialog box or in the echo area. | 3385 | doc: /* Display a message in a dialog box or in the echo area. |
diff --git a/src/filelock.c b/src/filelock.c index c3f1bfde292..25ca23fdee4 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -117,8 +117,6 @@ Lisp_Object Vtemporary_file_directory; | |||
| 117 | static time_t boot_time; | 117 | static time_t boot_time; |
| 118 | static int boot_time_initialized; | 118 | static int boot_time_initialized; |
| 119 | 119 | ||
| 120 | extern Lisp_Object Vshell_file_name; | ||
| 121 | |||
| 122 | #ifdef BOOT_TIME | 120 | #ifdef BOOT_TIME |
| 123 | static void get_boot_time_1 (char *, int); | 121 | static void get_boot_time_1 (char *, int); |
| 124 | #endif | 122 | #endif |
| @@ -61,18 +61,12 @@ int use_dialog_box; | |||
| 61 | questions asked by mouse commands. */ | 61 | questions asked by mouse commands. */ |
| 62 | int use_file_dialog; | 62 | int use_file_dialog; |
| 63 | 63 | ||
| 64 | extern Lisp_Object minibuf_window; | ||
| 65 | extern Lisp_Object Vlocale_coding_system; | ||
| 66 | extern int load_in_progress; | ||
| 67 | |||
| 68 | Lisp_Object Qstring_lessp, Qprovide, Qrequire; | 64 | Lisp_Object Qstring_lessp, Qprovide, Qrequire; |
| 69 | Lisp_Object Qyes_or_no_p_history; | 65 | Lisp_Object Qyes_or_no_p_history; |
| 70 | Lisp_Object Qcursor_in_echo_area; | 66 | Lisp_Object Qcursor_in_echo_area; |
| 71 | Lisp_Object Qwidget_type; | 67 | Lisp_Object Qwidget_type; |
| 72 | Lisp_Object Qcodeset, Qdays, Qmonths, Qpaper; | 68 | Lisp_Object Qcodeset, Qdays, Qmonths, Qpaper; |
| 73 | 69 | ||
| 74 | extern Lisp_Object Qinput_method_function; | ||
| 75 | |||
| 76 | static int internal_equal (Lisp_Object , Lisp_Object, int, int); | 70 | static int internal_equal (Lisp_Object , Lisp_Object, int, int); |
| 77 | 71 | ||
| 78 | extern long get_random (void); | 72 | extern long get_random (void); |
| @@ -2706,7 +2700,6 @@ advisable. */) | |||
| 2706 | } | 2700 | } |
| 2707 | 2701 | ||
| 2708 | Lisp_Object Vfeatures, Qsubfeatures; | 2702 | Lisp_Object Vfeatures, Qsubfeatures; |
| 2709 | extern Lisp_Object Vafter_load_alist; | ||
| 2710 | 2703 | ||
| 2711 | DEFUN ("featurep", Ffeaturep, Sfeaturep, 1, 2, 0, | 2704 | DEFUN ("featurep", Ffeaturep, Sfeaturep, 1, 2, 0, |
| 2712 | doc: /* Returns t if FEATURE is present in this Emacs. | 2705 | doc: /* Returns t if FEATURE is present in this Emacs. |
diff --git a/src/font.c b/src/font.c index 05c5003db79..4b59d89b884 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -48,10 +48,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 48 | #include "nsterm.h" | 48 | #include "nsterm.h" |
| 49 | #endif /* HAVE_NS */ | 49 | #endif /* HAVE_NS */ |
| 50 | 50 | ||
| 51 | #ifdef HAVE_NS | ||
| 52 | extern Lisp_Object Qfontsize; | ||
| 53 | #endif | ||
| 54 | |||
| 55 | Lisp_Object Qopentype; | 51 | Lisp_Object Qopentype; |
| 56 | 52 | ||
| 57 | /* Important character set strings. */ | 53 | /* Important character set strings. */ |
| @@ -394,11 +390,6 @@ font_style_symbolic (Lisp_Object font, enum font_property_index prop, int for_fa | |||
| 394 | return (for_face ? AREF (elt, 1) : AREF (elt, (i & 0xF) + 1)); | 390 | return (for_face ? AREF (elt, 1) : AREF (elt, (i & 0xF) + 1)); |
| 395 | } | 391 | } |
| 396 | 392 | ||
| 397 | extern Lisp_Object Vface_alternative_font_family_alist; | ||
| 398 | |||
| 399 | extern Lisp_Object find_font_encoding (Lisp_Object); | ||
| 400 | |||
| 401 | |||
| 402 | /* Return ENCODING or a cons of ENCODING and REPERTORY of the font | 393 | /* Return ENCODING or a cons of ENCODING and REPERTORY of the font |
| 403 | FONTNAME. ENCODING is a charset symbol that specifies the encoding | 394 | FONTNAME. ENCODING is a charset symbol that specifies the encoding |
| 404 | of the font. REPERTORY is a charset symbol or nil. */ | 395 | of the font. REPERTORY is a charset symbol or nil. */ |
| @@ -603,7 +594,7 @@ font_prop_validate_otf (Lisp_Object prop, Lisp_Object val) | |||
| 603 | 594 | ||
| 604 | /* Structure of known font property keys and validater of the | 595 | /* Structure of known font property keys and validater of the |
| 605 | values. */ | 596 | values. */ |
| 606 | struct | 597 | static const struct |
| 607 | { | 598 | { |
| 608 | /* Pointer to the key symbol. */ | 599 | /* Pointer to the key symbol. */ |
| 609 | Lisp_Object *key; | 600 | Lisp_Object *key; |
| @@ -2138,9 +2129,6 @@ static int font_compare (const void *, const void *); | |||
| 2138 | static Lisp_Object font_sort_entities (Lisp_Object, Lisp_Object, | 2129 | static Lisp_Object font_sort_entities (Lisp_Object, Lisp_Object, |
| 2139 | Lisp_Object, int); | 2130 | Lisp_Object, int); |
| 2140 | 2131 | ||
| 2141 | /* Return a rescaling ratio of FONT_ENTITY. */ | ||
| 2142 | extern Lisp_Object Vface_font_rescale_alist; | ||
| 2143 | |||
| 2144 | static double | 2132 | static double |
| 2145 | font_rescale_ratio (Lisp_Object font_entity) | 2133 | font_rescale_ratio (Lisp_Object font_entity) |
| 2146 | { | 2134 | { |
| @@ -2723,8 +2711,6 @@ static Lisp_Object scratch_font_spec, scratch_font_prefer; | |||
| 2723 | (2) doesn't match with any regexps in Vface_ignored_fonts (if non-nil). | 2711 | (2) doesn't match with any regexps in Vface_ignored_fonts (if non-nil). |
| 2724 | */ | 2712 | */ |
| 2725 | 2713 | ||
| 2726 | extern Lisp_Object Vface_ignored_fonts; | ||
| 2727 | |||
| 2728 | Lisp_Object | 2714 | Lisp_Object |
| 2729 | font_delete_unmatched (Lisp_Object vec, Lisp_Object spec, int size) | 2715 | font_delete_unmatched (Lisp_Object vec, Lisp_Object spec, int size) |
| 2730 | { | 2716 | { |
| @@ -5169,15 +5155,6 @@ font_deferred_log (char *action, Lisp_Object arg, Lisp_Object result) | |||
| 5169 | ASET (Vfont_log_deferred, 2, result); | 5155 | ASET (Vfont_log_deferred, 2, result); |
| 5170 | } | 5156 | } |
| 5171 | 5157 | ||
| 5172 | extern void syms_of_ftfont (void); | ||
| 5173 | extern void syms_of_xfont (void); | ||
| 5174 | extern void syms_of_xftfont (void); | ||
| 5175 | extern void syms_of_ftxfont (void); | ||
| 5176 | extern void syms_of_bdffont (void); | ||
| 5177 | extern void syms_of_w32font (void); | ||
| 5178 | extern void syms_of_atmfont (void); | ||
| 5179 | extern void syms_of_nsfont (void); | ||
| 5180 | |||
| 5181 | void | 5158 | void |
| 5182 | syms_of_font (void) | 5159 | syms_of_font (void) |
| 5183 | { | 5160 | { |
diff --git a/src/fontset.c b/src/fontset.c index ebfbe7a802f..b273ace75af 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -177,7 +177,6 @@ EXFUN (Fclear_face_cache, 1); | |||
| 177 | 177 | ||
| 178 | /********** VARIABLES and FUNCTION PROTOTYPES **********/ | 178 | /********** VARIABLES and FUNCTION PROTOTYPES **********/ |
| 179 | 179 | ||
| 180 | extern Lisp_Object Qfont; | ||
| 181 | static Lisp_Object Qfontset; | 180 | static Lisp_Object Qfontset; |
| 182 | static Lisp_Object Qfontset_info; | 181 | static Lisp_Object Qfontset_info; |
| 183 | static Lisp_Object Qprepend, Qappend; | 182 | static Lisp_Object Qprepend, Qappend; |
| @@ -388,8 +387,6 @@ fontset_compare_rfontdef (const void *val1, const void *val2) | |||
| 388 | If PREFERRED_FAMILY is not nil, that family has the higher priority | 387 | If PREFERRED_FAMILY is not nil, that family has the higher priority |
| 389 | if the encoding charsets or languages in font-specs are the same. */ | 388 | if the encoding charsets or languages in font-specs are the same. */ |
| 390 | 389 | ||
| 391 | extern Lisp_Object Fassoc_string (Lisp_Object, Lisp_Object, Lisp_Object); | ||
| 392 | |||
| 393 | static void | 390 | static void |
| 394 | reorder_font_vector (Lisp_Object font_group, struct font *font) | 391 | reorder_font_vector (Lisp_Object font_group, struct font *font) |
| 395 | { | 392 | { |
| @@ -1395,7 +1392,6 @@ set_fontset_font (Lisp_Object arg, Lisp_Object range) | |||
| 1395 | ASET (arg, 4, script_range_list); | 1392 | ASET (arg, 4, script_range_list); |
| 1396 | } | 1393 | } |
| 1397 | 1394 | ||
| 1398 | extern Lisp_Object QCfamily, QCregistry; | ||
| 1399 | static void update_auto_fontset_alist (Lisp_Object, Lisp_Object); | 1395 | static void update_auto_fontset_alist (Lisp_Object, Lisp_Object); |
| 1400 | 1396 | ||
| 1401 | 1397 | ||
diff --git a/src/frame.c b/src/frame.c index 809f660f1d9..61c24999e59 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -198,13 +198,6 @@ set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) | |||
| 198 | 198 | ||
| 199 | Lisp_Object Vframe_list; | 199 | Lisp_Object Vframe_list; |
| 200 | 200 | ||
| 201 | extern Lisp_Object Vminibuffer_list; | ||
| 202 | extern Lisp_Object get_minibuffer (int); | ||
| 203 | extern Lisp_Object Fhandle_switch_frame (Lisp_Object event); | ||
| 204 | extern Lisp_Object Fredirect_frame_focus (Lisp_Object frame, Lisp_Object focus_frame); | ||
| 205 | extern Lisp_Object x_get_focus_frame (struct frame *frame); | ||
| 206 | extern Lisp_Object QCname, Qfont_param; | ||
| 207 | |||
| 208 | 201 | ||
| 209 | DEFUN ("framep", Fframep, Sframep, 1, 1, 0, | 202 | DEFUN ("framep", Fframep, Sframep, 1, 1, 0, |
| 210 | doc: /* Return non-nil if OBJECT is a frame. | 203 | doc: /* Return non-nil if OBJECT is a frame. |
| @@ -1281,8 +1274,6 @@ other_visible_frames (FRAME_PTR f) | |||
| 1281 | return 1; | 1274 | return 1; |
| 1282 | } | 1275 | } |
| 1283 | 1276 | ||
| 1284 | extern Lisp_Object Qrun_hook_with_args; | ||
| 1285 | |||
| 1286 | /* Delete FRAME. When FORCE equals Qnoelisp, delete FRAME | 1277 | /* Delete FRAME. When FORCE equals Qnoelisp, delete FRAME |
| 1287 | unconditionally. x_connection_closed and delete_terminal use | 1278 | unconditionally. x_connection_closed and delete_terminal use |
| 1288 | this. Any other value of FORCE implements the semantics | 1279 | this. Any other value of FORCE implements the semantics |
| @@ -2822,9 +2813,6 @@ static struct frame_parm_table frame_parms[] = | |||
| 2822 | 2813 | ||
| 2823 | #ifdef HAVE_WINDOW_SYSTEM | 2814 | #ifdef HAVE_WINDOW_SYSTEM |
| 2824 | 2815 | ||
| 2825 | extern Lisp_Object Qbox; | ||
| 2826 | extern Lisp_Object Qtop; | ||
| 2827 | |||
| 2828 | /* Calculate fullscreen size. Return in *TOP_POS and *LEFT_POS the | 2816 | /* Calculate fullscreen size. Return in *TOP_POS and *LEFT_POS the |
| 2829 | wanted positions of the WM window (not Emacs window). | 2817 | wanted positions of the WM window (not Emacs window). |
| 2830 | Return in *WIDTH and *HEIGHT the wanted width and height of Emacs | 2818 | Return in *WIDTH and *HEIGHT the wanted width and height of Emacs |
diff --git a/src/fringe.c b/src/fringe.c index bfb2c217172..f24365a1e23 100644 --- a/src/fringe.c +++ b/src/fringe.c | |||
| @@ -32,10 +32,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 32 | 32 | ||
| 33 | #ifdef HAVE_WINDOW_SYSTEM | 33 | #ifdef HAVE_WINDOW_SYSTEM |
| 34 | 34 | ||
| 35 | extern Lisp_Object Qfringe; | ||
| 36 | extern Lisp_Object Qtop, Qbottom, Qcenter; | ||
| 37 | extern Lisp_Object Qup, Qdown, Qleft, Qright; | ||
| 38 | |||
| 39 | /* Non-nil means that newline may flow into the right fringe. */ | 35 | /* Non-nil means that newline may flow into the right fringe. */ |
| 40 | 36 | ||
| 41 | Lisp_Object Voverflow_newline_into_fringe; | 37 | Lisp_Object Voverflow_newline_into_fringe; |
| @@ -83,10 +79,8 @@ Lisp_Object Vfringe_bitmaps; | |||
| 83 | must specify physical bitmap symbols. | 79 | must specify physical bitmap symbols. |
| 84 | */ | 80 | */ |
| 85 | 81 | ||
| 86 | extern Lisp_Object Qunknown; | ||
| 87 | Lisp_Object Qtruncation, Qcontinuation, Qoverlay_arrow; | 82 | Lisp_Object Qtruncation, Qcontinuation, Qoverlay_arrow; |
| 88 | Lisp_Object Qempty_line, Qtop_bottom; | 83 | Lisp_Object Qempty_line, Qtop_bottom; |
| 89 | extern Lisp_Object Qbar, Qhbar, Qbox, Qhollow; | ||
| 90 | Lisp_Object Qhollow_small; | 84 | Lisp_Object Qhollow_small; |
| 91 | 85 | ||
| 92 | enum fringe_bitmap_align | 86 | enum fringe_bitmap_align |
diff --git a/src/ftfont.c b/src/ftfont.c index 1fdf4c265ce..27165e67428 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -144,8 +144,6 @@ static struct | |||
| 144 | { NULL } | 144 | { NULL } |
| 145 | }; | 145 | }; |
| 146 | 146 | ||
| 147 | extern Lisp_Object Qc, Qm, Qp, Qd; | ||
| 148 | |||
| 149 | /* Dirty hack for handing ADSTYLE property. | 147 | /* Dirty hack for handing ADSTYLE property. |
| 150 | 148 | ||
| 151 | Fontconfig (actually the underlying FreeType) gives such ADSTYLE | 149 | Fontconfig (actually the underlying FreeType) gives such ADSTYLE |
| @@ -548,8 +546,6 @@ struct font_driver ftfont_driver = | |||
| 548 | ftfont_filter_properties, /* filter_properties */ | 546 | ftfont_filter_properties, /* filter_properties */ |
| 549 | }; | 547 | }; |
| 550 | 548 | ||
| 551 | extern Lisp_Object QCname; | ||
| 552 | |||
| 553 | static Lisp_Object | 549 | static Lisp_Object |
| 554 | ftfont_get_cache (FRAME_PTR f) | 550 | ftfont_get_cache (FRAME_PTR f) |
| 555 | { | 551 | { |
| @@ -2333,8 +2329,6 @@ static MFLTGlyphString gstring; | |||
| 2333 | 2329 | ||
| 2334 | static int m17n_flt_initialized; | 2330 | static int m17n_flt_initialized; |
| 2335 | 2331 | ||
| 2336 | extern Lisp_Object QCfamily; | ||
| 2337 | |||
| 2338 | static Lisp_Object | 2332 | static Lisp_Object |
| 2339 | ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font, | 2333 | ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font, |
| 2340 | FT_Face ft_face, OTF *otf, FT_Matrix *matrix) | 2334 | FT_Face ft_face, OTF *otf, FT_Matrix *matrix) |
diff --git a/src/gtkutil.c b/src/gtkutil.c index 103522075bf..bc949a6e49d 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -4156,8 +4156,6 @@ xg_update_tool_bar_sizes (FRAME_PTR f) | |||
| 4156 | 4156 | ||
| 4157 | /* Update the tool bar for frame F. Add new buttons and remove old. */ | 4157 | /* Update the tool bar for frame F. Add new buttons and remove old. */ |
| 4158 | 4158 | ||
| 4159 | extern Lisp_Object Qx_gtk_map_stock; | ||
| 4160 | |||
| 4161 | void | 4159 | void |
| 4162 | update_frame_tool_bar (FRAME_PTR f) | 4160 | update_frame_tool_bar (FRAME_PTR f) |
| 4163 | { | 4161 | { |
diff --git a/src/indent.c b/src/indent.c index 0f71c6d82d7..970904cba7b 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -469,7 +469,6 @@ current_column (void) | |||
| 469 | return col; | 469 | return col; |
| 470 | } | 470 | } |
| 471 | 471 | ||
| 472 | extern Lisp_Object Qspace, QCwidth, QCalign_to; | ||
| 473 | 472 | ||
| 474 | /* Check the presence of a display property and compute its width. | 473 | /* Check the presence of a display property and compute its width. |
| 475 | If a property was found and its width was found as well, return | 474 | If a property was found and its width was found as well, return |
diff --git a/src/keyboard.c b/src/keyboard.c index 2cc7f407d62..9114e2dbbca 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -465,8 +465,6 @@ Lisp_Object Qmake_frame_visible; | |||
| 465 | Lisp_Object Qselect_window; | 465 | Lisp_Object Qselect_window; |
| 466 | Lisp_Object Qhelp_echo; | 466 | Lisp_Object Qhelp_echo; |
| 467 | 467 | ||
| 468 | extern Lisp_Object Qremap; | ||
| 469 | |||
| 470 | #if defined (HAVE_MOUSE) || defined (HAVE_GPM) | 468 | #if defined (HAVE_MOUSE) || defined (HAVE_GPM) |
| 471 | Lisp_Object Qmouse_fixup_help_message; | 469 | Lisp_Object Qmouse_fixup_help_message; |
| 472 | #endif | 470 | #endif |
| @@ -513,9 +511,6 @@ Lisp_Object Qmode_line; | |||
| 513 | Lisp_Object Qvertical_line; | 511 | Lisp_Object Qvertical_line; |
| 514 | Lisp_Object Qvertical_scroll_bar; | 512 | Lisp_Object Qvertical_scroll_bar; |
| 515 | Lisp_Object Qmenu_bar; | 513 | Lisp_Object Qmenu_bar; |
| 516 | extern Lisp_Object Qleft_margin, Qright_margin; | ||
| 517 | extern Lisp_Object Qleft_fringe, Qright_fringe; | ||
| 518 | extern Lisp_Object QCmap; | ||
| 519 | 514 | ||
| 520 | Lisp_Object recursive_edit_unwind (Lisp_Object buffer), command_loop (void); | 515 | Lisp_Object recursive_edit_unwind (Lisp_Object buffer), command_loop (void); |
| 521 | Lisp_Object Fthis_command_keys (void); | 516 | Lisp_Object Fthis_command_keys (void); |
| @@ -536,8 +531,6 @@ Lisp_Object Vtimer_idle_list; | |||
| 536 | /* Incremented whenever a timer is run. */ | 531 | /* Incremented whenever a timer is run. */ |
| 537 | int timers_run; | 532 | int timers_run; |
| 538 | 533 | ||
| 539 | extern Lisp_Object Vprint_level, Vprint_length; | ||
| 540 | |||
| 541 | /* Address (if not 0) of EMACS_TIME to zero out if a SIGIO interrupt | 534 | /* Address (if not 0) of EMACS_TIME to zero out if a SIGIO interrupt |
| 542 | happens. */ | 535 | happens. */ |
| 543 | EMACS_TIME *input_available_clear_time; | 536 | EMACS_TIME *input_available_clear_time; |
| @@ -644,7 +637,6 @@ static int store_user_signal_events (void); | |||
| 644 | to support it. */ | 637 | to support it. */ |
| 645 | static int cannot_suspend; | 638 | static int cannot_suspend; |
| 646 | 639 | ||
| 647 | extern Lisp_Object Qidentity, Qonly; | ||
| 648 | 640 | ||
| 649 | /* Install the string STR as the beginning of the string of echoing, | 641 | /* Install the string STR as the beginning of the string of echoing, |
| 650 | so that it serves as a prompt for the next character. | 642 | so that it serves as a prompt for the next character. |
| @@ -1835,8 +1827,6 @@ command_loop_1 (void) | |||
| 1835 | `composition', `display' and `invisible' properties. | 1827 | `composition', `display' and `invisible' properties. |
| 1836 | LAST_PT is the last position of point. */ | 1828 | LAST_PT is the last position of point. */ |
| 1837 | 1829 | ||
| 1838 | extern Lisp_Object get_pos_property (Lisp_Object, Lisp_Object, Lisp_Object); | ||
| 1839 | |||
| 1840 | static void | 1830 | static void |
| 1841 | adjust_point_for_property (int last_pt, int modified) | 1831 | adjust_point_for_property (int last_pt, int modified) |
| 1842 | { | 1832 | { |
| @@ -4363,8 +4353,6 @@ struct input_event last_timer_event; | |||
| 4363 | ...). Each element has the form (FUN . ARGS). */ | 4353 | ...). Each element has the form (FUN . ARGS). */ |
| 4364 | Lisp_Object pending_funcalls; | 4354 | Lisp_Object pending_funcalls; |
| 4365 | 4355 | ||
| 4366 | extern Lisp_Object Qapply; | ||
| 4367 | |||
| 4368 | /* Check whether a timer has fired. To prevent larger problems we simply | 4356 | /* Check whether a timer has fired. To prevent larger problems we simply |
| 4369 | disregard elements that are not proper timers. Do not make a circular | 4357 | disregard elements that are not proper timers. Do not make a circular |
| 4370 | timer list for the time being. | 4358 | timer list for the time being. |
| @@ -8007,9 +7995,8 @@ static Lisp_Object tool_bar_item_properties; | |||
| 8007 | 7995 | ||
| 8008 | static int ntool_bar_items; | 7996 | static int ntool_bar_items; |
| 8009 | 7997 | ||
| 8010 | /* The symbols `tool-bar', `:image' and `:rtl'. */ | 7998 | /* The symbols `:image' and `:rtl'. */ |
| 8011 | 7999 | ||
| 8012 | extern Lisp_Object Qtool_bar; | ||
| 8013 | Lisp_Object QCimage; | 8000 | Lisp_Object QCimage; |
| 8014 | Lisp_Object Qrtl; | 8001 | Lisp_Object Qrtl; |
| 8015 | 8002 | ||
| @@ -10233,7 +10220,6 @@ a special event, so ignore the prefix argument and don't clear it. */) | |||
| 10233 | register Lisp_Object final; | 10220 | register Lisp_Object final; |
| 10234 | register Lisp_Object tem; | 10221 | register Lisp_Object tem; |
| 10235 | Lisp_Object prefixarg; | 10222 | Lisp_Object prefixarg; |
| 10236 | extern int debug_on_next_call; | ||
| 10237 | 10223 | ||
| 10238 | debug_on_next_call = 0; | 10224 | debug_on_next_call = 0; |
| 10239 | 10225 | ||
diff --git a/src/keymap.c b/src/keymap.c index 5e884ae137e..175c39ce357 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -103,11 +103,6 @@ static Lisp_Object exclude_keys; | |||
| 103 | /* Pre-allocated 2-element vector for Fcommand_remapping to use. */ | 103 | /* Pre-allocated 2-element vector for Fcommand_remapping to use. */ |
| 104 | static Lisp_Object command_remapping_vector; | 104 | static Lisp_Object command_remapping_vector; |
| 105 | 105 | ||
| 106 | /* A char with the CHAR_META bit set in a vector or the 0200 bit set | ||
| 107 | in a string key sequence is equivalent to prefixing with this | ||
| 108 | character. */ | ||
| 109 | extern Lisp_Object meta_prefix_char; | ||
| 110 | |||
| 111 | /* Hash table used to cache a reverse-map to speed up calls to where-is. */ | 106 | /* Hash table used to cache a reverse-map to speed up calls to where-is. */ |
| 112 | static Lisp_Object where_is_cache; | 107 | static Lisp_Object where_is_cache; |
| 113 | /* Which keymaps are reverse-stored in the cache. */ | 108 | /* Which keymaps are reverse-stored in the cache. */ |
diff --git a/src/lread.c b/src/lread.c index b29971a5f88..c69c9fadcb9 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -75,7 +75,6 @@ Lisp_Object Qtest, Qsize; | |||
| 75 | Lisp_Object Qweakness; | 75 | Lisp_Object Qweakness; |
| 76 | Lisp_Object Qrehash_size; | 76 | Lisp_Object Qrehash_size; |
| 77 | Lisp_Object Qrehash_threshold; | 77 | Lisp_Object Qrehash_threshold; |
| 78 | extern Lisp_Object QCtest, QCsize, QCrehash_size, QCrehash_threshold, QCweakness; | ||
| 79 | 78 | ||
| 80 | Lisp_Object Qread_char, Qget_file_char, Qstandard_input, Qcurrent_load_list; | 79 | Lisp_Object Qread_char, Qget_file_char, Qstandard_input, Qcurrent_load_list; |
| 81 | Lisp_Object Qvariable_documentation, Vvalues, Vstandard_input, Vafter_load_alist; | 80 | Lisp_Object Qvariable_documentation, Vvalues, Vstandard_input, Vafter_load_alist; |
| @@ -91,9 +90,6 @@ static Lisp_Object Qget_emacs_mule_file_char; | |||
| 91 | 90 | ||
| 92 | static Lisp_Object Qload_force_doc_strings; | 91 | static Lisp_Object Qload_force_doc_strings; |
| 93 | 92 | ||
| 94 | extern Lisp_Object Qevent_symbol_element_mask; | ||
| 95 | extern Lisp_Object Qfile_exists_p; | ||
| 96 | |||
| 97 | /* non-zero if inside `load' */ | 93 | /* non-zero if inside `load' */ |
| 98 | int load_in_progress; | 94 | int load_in_progress; |
| 99 | static Lisp_Object Qload_in_progress; | 95 | static Lisp_Object Qload_in_progress; |
diff --git a/src/menu.c b/src/menu.c index 321dc2677a1..460d9a5f493 100644 --- a/src/menu.c +++ b/src/menu.c | |||
| @@ -61,12 +61,6 @@ extern HMENU current_popup_menu; | |||
| 61 | #define HAVE_BOXES 1 | 61 | #define HAVE_BOXES 1 |
| 62 | #endif | 62 | #endif |
| 63 | 63 | ||
| 64 | /* The timestamp of the last input event Emacs received from the X server. */ | ||
| 65 | /* Defined in keyboard.c. */ | ||
| 66 | extern unsigned long last_event_timestamp; | ||
| 67 | |||
| 68 | extern Lisp_Object QCtoggle, QCradio; | ||
| 69 | |||
| 70 | Lisp_Object menu_items; | 64 | Lisp_Object menu_items; |
| 71 | 65 | ||
| 72 | /* If non-nil, means that the global vars defined here are already in use. | 66 | /* If non-nil, means that the global vars defined here are already in use. |
diff --git a/src/print.c b/src/print.c index 7a90e6cd96e..1df11447d0d 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -42,7 +42,6 @@ Lisp_Object Vstandard_output, Qstandard_output; | |||
| 42 | Lisp_Object Qtemp_buffer_setup_hook; | 42 | Lisp_Object Qtemp_buffer_setup_hook; |
| 43 | 43 | ||
| 44 | /* These are used to print like we read. */ | 44 | /* These are used to print like we read. */ |
| 45 | extern Lisp_Object Qbackquote, Qcomma, Qcomma_at, Qcomma_dot, Qfunction; | ||
| 46 | 45 | ||
| 47 | Lisp_Object Vfloat_output_format, Qfloat_output_format; | 46 | Lisp_Object Vfloat_output_format, Qfloat_output_format; |
| 48 | 47 | ||
| @@ -161,11 +160,6 @@ Lisp_Object Vprint_number_table; | |||
| 161 | #define PRINT_NUMBER_OBJECT(table,i) XVECTOR ((table))->contents[(i) * 2] | 160 | #define PRINT_NUMBER_OBJECT(table,i) XVECTOR ((table))->contents[(i) * 2] |
| 162 | #define PRINT_NUMBER_STATUS(table,i) XVECTOR ((table))->contents[(i) * 2 + 1] | 161 | #define PRINT_NUMBER_STATUS(table,i) XVECTOR ((table))->contents[(i) * 2 + 1] |
| 163 | 162 | ||
| 164 | /* Nonzero means print newline to stdout before next minibuffer message. | ||
| 165 | Defined in xdisp.c */ | ||
| 166 | |||
| 167 | extern int noninteractive_need_newline; | ||
| 168 | |||
| 169 | void print_interval (INTERVAL interval, Lisp_Object printcharfun); | 163 | void print_interval (INTERVAL interval, Lisp_Object printcharfun); |
| 170 | 164 | ||
| 171 | /* GDB resets this to zero on W32 to disable OutputDebugString calls. */ | 165 | /* GDB resets this to zero on W32 to disable OutputDebugString calls. */ |
| @@ -1401,7 +1395,6 @@ print_preprocess_string (INTERVAL interval, Lisp_Object arg) | |||
| 1401 | /* A flag to control printing of `charset' text property. | 1395 | /* A flag to control printing of `charset' text property. |
| 1402 | The default value is Qdefault. */ | 1396 | The default value is Qdefault. */ |
| 1403 | Lisp_Object Vprint_charset_text_property; | 1397 | Lisp_Object Vprint_charset_text_property; |
| 1404 | extern Lisp_Object Qdefault; | ||
| 1405 | 1398 | ||
| 1406 | static void print_check_string_charset_prop (INTERVAL interval, Lisp_Object string); | 1399 | static void print_check_string_charset_prop (INTERVAL interval, Lisp_Object string); |
| 1407 | 1400 | ||
diff --git a/src/search.c b/src/search.c index 602a50c0abe..fbbc59f631d 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -504,8 +504,6 @@ fast_string_match (Lisp_Object regexp, Lisp_Object string) | |||
| 504 | This does not clobber the match data. | 504 | This does not clobber the match data. |
| 505 | We assume that STRING contains single-byte characters. */ | 505 | We assume that STRING contains single-byte characters. */ |
| 506 | 506 | ||
| 507 | extern Lisp_Object Vascii_downcase_table; | ||
| 508 | |||
| 509 | int | 507 | int |
| 510 | fast_c_string_match_ignore_case (Lisp_Object regexp, const char *string) | 508 | fast_c_string_match_ignore_case (Lisp_Object regexp, const char *string) |
| 511 | { | 509 | { |
diff --git a/src/sound.c b/src/sound.c index 4e3d583ccf0..2b23ae400a7 100644 --- a/src/sound.c +++ b/src/sound.c | |||
| @@ -99,7 +99,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 99 | 99 | ||
| 100 | /* Symbols. */ | 100 | /* Symbols. */ |
| 101 | 101 | ||
| 102 | extern Lisp_Object QCfile, QCdata; | ||
| 103 | Lisp_Object QCvolume, QCdevice; | 102 | Lisp_Object QCvolume, QCdevice; |
| 104 | Lisp_Object Qsound; | 103 | Lisp_Object Qsound; |
| 105 | Lisp_Object Qplay_sound_functions; | 104 | Lisp_Object Qplay_sound_functions; |
diff --git a/src/window.c b/src/window.c index 3c556fff69b..60da49175e3 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -57,8 +57,6 @@ Lisp_Object Qdisplay_buffer; | |||
| 57 | Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command; | 57 | Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command; |
| 58 | Lisp_Object Qwindow_size_fixed; | 58 | Lisp_Object Qwindow_size_fixed; |
| 59 | 59 | ||
| 60 | extern Lisp_Object Qleft_margin, Qright_margin; | ||
| 61 | |||
| 62 | static int displayed_window_lines (struct window *); | 60 | static int displayed_window_lines (struct window *); |
| 63 | static struct window *decode_window (Lisp_Object); | 61 | static struct window *decode_window (Lisp_Object); |
| 64 | static int count_windows (struct window *); | 62 | static int count_windows (struct window *); |
| @@ -191,16 +189,11 @@ static int window_scroll_preserve_vpos; | |||
| 191 | static int inhibit_frame_unsplittable; | 189 | static int inhibit_frame_unsplittable; |
| 192 | #endif /* 0 */ | 190 | #endif /* 0 */ |
| 193 | 191 | ||
| 194 | extern EMACS_INT scroll_margin; | ||
| 195 | |||
| 196 | extern Lisp_Object Qwindow_scroll_functions, Vwindow_scroll_functions; | ||
| 197 | |||
| 198 | /* If non-nil, then the `recenter' command with a nil argument | 192 | /* If non-nil, then the `recenter' command with a nil argument |
| 199 | the entire frame to be redrawn; the special value `tty' causes the | 193 | the entire frame to be redrawn; the special value `tty' causes the |
| 200 | frame to be redrawn only if it is a tty frame. */ | 194 | frame to be redrawn only if it is a tty frame. */ |
| 201 | 195 | ||
| 202 | static Lisp_Object Vrecenter_redisplay; | 196 | static Lisp_Object Vrecenter_redisplay; |
| 203 | extern Lisp_Object Qtty; | ||
| 204 | 197 | ||
| 205 | 198 | ||
| 206 | DEFUN ("windowp", Fwindowp, Swindowp, 1, 1, 0, | 199 | DEFUN ("windowp", Fwindowp, Swindowp, 1, 1, 0, |
diff --git a/src/xdisp.c b/src/xdisp.c index 3274a48294f..81418b2d66f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -239,6 +239,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 239 | #include "macros.h" | 239 | #include "macros.h" |
| 240 | #include "disptab.h" | 240 | #include "disptab.h" |
| 241 | #include "termhooks.h" | 241 | #include "termhooks.h" |
| 242 | #include "termopts.h" | ||
| 242 | #include "intervals.h" | 243 | #include "intervals.h" |
| 243 | #include "coding.h" | 244 | #include "coding.h" |
| 244 | #include "process.h" | 245 | #include "process.h" |
| @@ -268,23 +269,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 268 | 269 | ||
| 269 | #define INFINITY 10000000 | 270 | #define INFINITY 10000000 |
| 270 | 271 | ||
| 271 | #if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) \ | ||
| 272 | || defined(HAVE_NS) || defined (USE_GTK) | ||
| 273 | extern void set_frame_menubar (struct frame *f, int, int); | ||
| 274 | #endif | ||
| 275 | |||
| 276 | extern int interrupt_input; | ||
| 277 | extern int command_loop_level; | ||
| 278 | |||
| 279 | extern Lisp_Object Vminibuffer_list; | ||
| 280 | |||
| 281 | extern Lisp_Object Qface; | ||
| 282 | extern Lisp_Object Qmode_line, Qmode_line_inactive, Qheader_line; | ||
| 283 | |||
| 284 | extern Lisp_Object Qwhen; | ||
| 285 | extern Lisp_Object Qhelp_echo; | ||
| 286 | extern Lisp_Object Qbefore_string, Qafter_string; | ||
| 287 | |||
| 288 | Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; | 272 | Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; |
| 289 | Lisp_Object Qwindow_scroll_functions, Vwindow_scroll_functions; | 273 | Lisp_Object Qwindow_scroll_functions, Vwindow_scroll_functions; |
| 290 | Lisp_Object Qwindow_text_change_functions, Vwindow_text_change_functions; | 274 | Lisp_Object Qwindow_text_change_functions, Vwindow_text_change_functions; |
| @@ -385,10 +369,6 @@ Lisp_Object Qslice; | |||
| 385 | Lisp_Object Qcenter; | 369 | Lisp_Object Qcenter; |
| 386 | Lisp_Object Qmargin, Qpointer; | 370 | Lisp_Object Qmargin, Qpointer; |
| 387 | Lisp_Object Qline_height; | 371 | Lisp_Object Qline_height; |
| 388 | extern Lisp_Object Qheight; | ||
| 389 | extern Lisp_Object QCwidth, QCheight, QCascent; | ||
| 390 | extern Lisp_Object Qscroll_bar; | ||
| 391 | extern Lisp_Object Qcursor; | ||
| 392 | 372 | ||
| 393 | /* Non-nil means highlight trailing whitespace. */ | 373 | /* Non-nil means highlight trailing whitespace. */ |
| 394 | 374 | ||
| @@ -399,7 +379,6 @@ Lisp_Object Vshow_trailing_whitespace; | |||
| 399 | Lisp_Object Vnobreak_char_display; | 379 | Lisp_Object Vnobreak_char_display; |
| 400 | 380 | ||
| 401 | #ifdef HAVE_WINDOW_SYSTEM | 381 | #ifdef HAVE_WINDOW_SYSTEM |
| 402 | extern Lisp_Object Voverflow_newline_into_fringe; | ||
| 403 | 382 | ||
| 404 | /* Test if overflow newline into fringe. Called with iterator IT | 383 | /* Test if overflow newline into fringe. Called with iterator IT |
| 405 | at or past right window margin, and with IT->current_x set. */ | 384 | at or past right window margin, and with IT->current_x set. */ |
diff --git a/src/xfaces.c b/src/xfaces.c index 8d88281d43e..a7a88f5940d 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -321,11 +321,6 @@ Lisp_Object QCreverse_video; | |||
| 321 | Lisp_Object QCoverline, QCstrike_through, QCbox, QCinherit; | 321 | Lisp_Object QCoverline, QCstrike_through, QCbox, QCinherit; |
| 322 | Lisp_Object QCfontset; | 322 | Lisp_Object QCfontset; |
| 323 | 323 | ||
| 324 | /* Keywords symbols used for font properties. */ | ||
| 325 | extern Lisp_Object QCfoundry, QCadstyle, QCregistry; | ||
| 326 | extern Lisp_Object QCspacing, QCsize, QCavgwidth; | ||
| 327 | extern Lisp_Object Qp; | ||
| 328 | |||
| 329 | /* Symbols used for attribute values. */ | 324 | /* Symbols used for attribute values. */ |
| 330 | 325 | ||
| 331 | Lisp_Object Qnormal, Qbold, Qultra_light, Qextra_light, Qlight; | 326 | Lisp_Object Qnormal, Qbold, Qultra_light, Qextra_light, Qlight; |
| @@ -351,7 +346,6 @@ Lisp_Object Qframe_set_background_mode; | |||
| 351 | Lisp_Object Qdefault, Qtool_bar, Qregion, Qfringe; | 346 | Lisp_Object Qdefault, Qtool_bar, Qregion, Qfringe; |
| 352 | Lisp_Object Qheader_line, Qscroll_bar, Qcursor, Qborder, Qmouse, Qmenu; | 347 | Lisp_Object Qheader_line, Qscroll_bar, Qcursor, Qborder, Qmouse, Qmenu; |
| 353 | Lisp_Object Qmode_line_inactive, Qvertical_border; | 348 | Lisp_Object Qmode_line_inactive, Qvertical_border; |
| 354 | extern Lisp_Object Qmode_line; | ||
| 355 | 349 | ||
| 356 | /* The symbol `face-alias'. A symbols having that property is an | 350 | /* The symbol `face-alias'. A symbols having that property is an |
| 357 | alias for another face. Value of the property is the name of | 351 | alias for another face. Value of the property is the name of |
| @@ -359,8 +353,6 @@ extern Lisp_Object Qmode_line; | |||
| 359 | 353 | ||
| 360 | Lisp_Object Qface_alias; | 354 | Lisp_Object Qface_alias; |
| 361 | 355 | ||
| 362 | extern Lisp_Object Qcircular_list; | ||
| 363 | |||
| 364 | /* Default stipple pattern used on monochrome displays. This stipple | 356 | /* Default stipple pattern used on monochrome displays. This stipple |
| 365 | pattern is used on monochrome displays instead of shades of gray | 357 | pattern is used on monochrome displays instead of shades of gray |
| 366 | for a face background color. See `set-face-stipple' for possible | 358 | for a face background color. See `set-face-stipple' for possible |
diff --git a/src/xfns.c b/src/xfns.c index 1496daa9f63..7695f829804 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -202,19 +202,6 @@ Lisp_Object Qundefined_color; | |||
| 202 | Lisp_Object Qcompound_text, Qcancel_timer; | 202 | Lisp_Object Qcompound_text, Qcancel_timer; |
| 203 | Lisp_Object Qfont_param; | 203 | Lisp_Object Qfont_param; |
| 204 | 204 | ||
| 205 | /* In dispnew.c */ | ||
| 206 | |||
| 207 | extern Lisp_Object Vwindow_system_version; | ||
| 208 | |||
| 209 | /* In editfns.c */ | ||
| 210 | |||
| 211 | extern Lisp_Object Vsystem_name; | ||
| 212 | |||
| 213 | /* The below are defined in frame.c. */ | ||
| 214 | |||
| 215 | extern Lisp_Object Vmenu_bar_mode, Vtool_bar_mode; | ||
| 216 | extern Lisp_Object Qtooltip; | ||
| 217 | |||
| 218 | #if GLYPH_DEBUG | 205 | #if GLYPH_DEBUG |
| 219 | int image_cache_refcount, dpyinfo_refcount; | 206 | int image_cache_refcount, dpyinfo_refcount; |
| 220 | #endif | 207 | #endif |
diff --git a/src/xfont.c b/src/xfont.c index b03bb1585d3..5d9e126943e 100644 --- a/src/xfont.c +++ b/src/xfont.c | |||
| @@ -154,8 +154,6 @@ struct font_driver xfont_driver = | |||
| 154 | NULL, /* filter_properties */ | 154 | NULL, /* filter_properties */ |
| 155 | }; | 155 | }; |
| 156 | 156 | ||
| 157 | extern Lisp_Object QCname; | ||
| 158 | |||
| 159 | static Lisp_Object | 157 | static Lisp_Object |
| 160 | xfont_get_cache (FRAME_PTR f) | 158 | xfont_get_cache (FRAME_PTR f) |
| 161 | { | 159 | { |
| @@ -164,8 +162,6 @@ xfont_get_cache (FRAME_PTR f) | |||
| 164 | return (dpyinfo->name_list_element); | 162 | return (dpyinfo->name_list_element); |
| 165 | } | 163 | } |
| 166 | 164 | ||
| 167 | extern Lisp_Object Vface_alternative_font_registry_alist; | ||
| 168 | |||
| 169 | static int | 165 | static int |
| 170 | compare_font_names (const void *name1, const void *name2) | 166 | compare_font_names (const void *name1, const void *name2) |
| 171 | { | 167 | { |
| @@ -289,8 +285,6 @@ static Lisp_Object xfont_scripts_cache; | |||
| 289 | /* Re-usable vector to store characteristic font properites. */ | 285 | /* Re-usable vector to store characteristic font properites. */ |
| 290 | static Lisp_Object xfont_scratch_props; | 286 | static Lisp_Object xfont_scratch_props; |
| 291 | 287 | ||
| 292 | extern Lisp_Object Qlatin; | ||
| 293 | |||
| 294 | /* Return a list of scripts supported by the font of FONTNAME whose | 288 | /* Return a list of scripts supported by the font of FONTNAME whose |
| 295 | characteristic properties are in PROPS and whose encoding charset | 289 | characteristic properties are in PROPS and whose encoding charset |
| 296 | is ENCODING. A caller must call BLOCK_INPUT in advance. */ | 290 | is ENCODING. A caller must call BLOCK_INPUT in advance. */ |
| @@ -339,8 +333,6 @@ xfont_supported_scripts (Display *display, char *fontname, Lisp_Object props, | |||
| 339 | return scripts; | 333 | return scripts; |
| 340 | } | 334 | } |
| 341 | 335 | ||
| 342 | extern Lisp_Object Vscalable_fonts_allowed; | ||
| 343 | |||
| 344 | static Lisp_Object | 336 | static Lisp_Object |
| 345 | xfont_list_pattern (Display *display, char *pattern, | 337 | xfont_list_pattern (Display *display, char *pattern, |
| 346 | Lisp_Object registry, Lisp_Object script) | 338 | Lisp_Object registry, Lisp_Object script) |
| @@ -687,8 +679,6 @@ xfont_list_family (Lisp_Object frame) | |||
| 687 | return list; | 679 | return list; |
| 688 | } | 680 | } |
| 689 | 681 | ||
| 690 | extern Lisp_Object QCavgwidth; | ||
| 691 | |||
| 692 | static Lisp_Object | 682 | static Lisp_Object |
| 693 | xfont_open (FRAME_PTR f, Lisp_Object entity, int pixel_size) | 683 | xfont_open (FRAME_PTR f, Lisp_Object entity, int pixel_size) |
| 694 | { | 684 | { |
diff --git a/src/xftfont.c b/src/xftfont.c index 68dd0af762f..dc82c28b215 100644 --- a/src/xftfont.c +++ b/src/xftfont.c | |||
| @@ -171,10 +171,6 @@ xftfont_match (Lisp_Object frame, Lisp_Object spec) | |||
| 171 | return entity; | 171 | return entity; |
| 172 | } | 172 | } |
| 173 | 173 | ||
| 174 | extern Lisp_Object ftfont_font_format (FcPattern *, Lisp_Object); | ||
| 175 | extern FcCharSet *ftfont_get_fc_charset (Lisp_Object); | ||
| 176 | extern Lisp_Object QCantialias; | ||
| 177 | |||
| 178 | static FcChar8 ascii_printable[95]; | 174 | static FcChar8 ascii_printable[95]; |
| 179 | 175 | ||
| 180 | static void | 176 | static void |
| @@ -552,8 +548,6 @@ xftfont_done_face (FRAME_PTR f, struct face *face) | |||
| 552 | } | 548 | } |
| 553 | } | 549 | } |
| 554 | 550 | ||
| 555 | extern Lisp_Object Qja, Qko; | ||
| 556 | |||
| 557 | static int | 551 | static int |
| 558 | xftfont_has_char (Lisp_Object font, int c) | 552 | xftfont_has_char (Lisp_Object font, int c) |
| 559 | { | 553 | { |
diff --git a/src/xmenu.c b/src/xmenu.c index a04eb2502b3..a723e6389ef 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -109,26 +109,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 109 | 109 | ||
| 110 | Lisp_Object Qdebug_on_next_call; | 110 | Lisp_Object Qdebug_on_next_call; |
| 111 | 111 | ||
| 112 | extern Lisp_Object Qmenu_bar; | 112 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) |
| 113 | |||
| 114 | extern Lisp_Object QCtoggle, QCradio; | ||
| 115 | |||
| 116 | extern Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; | ||
| 117 | |||
| 118 | extern Lisp_Object Qmenu_bar_update_hook; | ||
| 119 | |||
| 120 | #ifdef USE_X_TOOLKIT | ||
| 121 | extern void set_frame_menubar (FRAME_PTR, int, int); | ||
| 122 | extern XtAppContext Xt_app_con; | ||
| 123 | |||
| 124 | static Lisp_Object xdialog_show (FRAME_PTR, int, Lisp_Object, Lisp_Object, | ||
| 125 | char **); | ||
| 126 | static void popup_get_selection (XEvent *, struct x_display_info *, | ||
| 127 | LWLIB_ID, int); | ||
| 128 | #endif /* USE_X_TOOLKIT */ | ||
| 129 | |||
| 130 | #ifdef USE_GTK | ||
| 131 | extern void set_frame_menubar (FRAME_PTR, int, int); | ||
| 132 | static Lisp_Object xdialog_show (FRAME_PTR, int, Lisp_Object, Lisp_Object, | 113 | static Lisp_Object xdialog_show (FRAME_PTR, int, Lisp_Object, Lisp_Object, |
| 133 | char **); | 114 | char **); |
| 134 | #endif | 115 | #endif |
| @@ -141,7 +122,6 @@ static int popup_activated_flag; | |||
| 141 | 122 | ||
| 142 | static int next_menubar_widget_id; | 123 | static int next_menubar_widget_id; |
| 143 | 124 | ||
| 144 | /* For NS and NTGUI, these prototypes are defined in keyboard.h. */ | ||
| 145 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) | 125 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) |
| 146 | extern widget_value *xmalloc_widget_value (void); | 126 | extern widget_value *xmalloc_widget_value (void); |
| 147 | extern widget_value *digest_single_submenu (int, int, int); | 127 | extern widget_value *digest_single_submenu (int, int, int); |
diff --git a/src/xterm.c b/src/xterm.c index 1b2442bba3b..dda0867bf04 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -293,23 +293,6 @@ static int input_signal_count; | |||
| 293 | 293 | ||
| 294 | static int x_noop_count; | 294 | static int x_noop_count; |
| 295 | 295 | ||
| 296 | /* Initial values of argv and argc. */ | ||
| 297 | |||
| 298 | extern char **initial_argv; | ||
| 299 | extern int initial_argc; | ||
| 300 | |||
| 301 | extern Lisp_Object Vcommand_line_args, Vsystem_name; | ||
| 302 | |||
| 303 | /* Tells if a window manager is present or not. */ | ||
| 304 | |||
| 305 | extern Lisp_Object Vx_no_window_manager; | ||
| 306 | |||
| 307 | extern Lisp_Object Qeql; | ||
| 308 | |||
| 309 | /* A mask of extra modifier bits to put into every keyboard char. */ | ||
| 310 | |||
| 311 | extern EMACS_INT extra_keyboard_modifiers; | ||
| 312 | |||
| 313 | /* The keysyms to use for the various modifiers. */ | 296 | /* The keysyms to use for the various modifiers. */ |
| 314 | 297 | ||
| 315 | Lisp_Object Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym, Vx_super_keysym; | 298 | Lisp_Object Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym, Vx_super_keysym; |
| @@ -329,8 +312,6 @@ Lisp_Object Qx_gtk_map_stock; | |||
| 329 | 312 | ||
| 330 | /* Used in x_flush. */ | 313 | /* Used in x_flush. */ |
| 331 | 314 | ||
| 332 | extern Lisp_Object Vinhibit_redisplay; | ||
| 333 | |||
| 334 | extern XrmDatabase x_load_resources (Display *, const char *, const char *, | 315 | extern XrmDatabase x_load_resources (Display *, const char *, const char *, |
| 335 | const char *); | 316 | const char *); |
| 336 | extern int x_bitmap_mask (FRAME_PTR, int); | 317 | extern int x_bitmap_mask (FRAME_PTR, int); |