diff options
| author | Paul Eggert | 2013-10-16 23:42:21 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-10-16 23:42:21 -0700 |
| commit | 3d798ba7dbad4bac02226959cfd82099bf11fd9f (patch) | |
| tree | a498f5f85e4b65a4e6b20b470834a304ee127d9e /src/dispextern.h | |
| parent | 921c1d62980fe93d4c26d6aeae0ef2a81a752b11 (diff) | |
| download | emacs-3d798ba7dbad4bac02226959cfd82099bf11fd9f.tar.gz emacs-3d798ba7dbad4bac02226959cfd82099bf11fd9f.zip | |
Make some functions static in non-Microsoft builds.
On my platform (Fedora 19 x86-64), this shrinks the
Emacs executable (text+data) by 0.25%.
* dispextern.h (erase_phys_cursor) [!WINDOWSNT]:
(load_color) [!MSDOS]:
* gnutls.h (emacs_gnutls_transport_set_errno) [!WINDOWSNT]:
* keyboard.h (make_ctrl_char) [!WINDOWSNT]:
* lisp.h (check_existing):
* process.h (conv_sockaddr_to_lisp, network_interface_list)
(network_interface_info) [!WINDOWSNT]:
* termhooks.h (encode_terminal_code) [!WINDOWSNT]:
Remove extern decls.
* fileio.c (check_existing):
* keyboard.c (make_ctrl_char) [!WINDOWSNT]:
* process.c (conv_sockaddr_to_lisp, network_interface_list)
(network_interface_info) [!WINDOWSNT]:
* term.c (encode_terminal_code) [!WINDOWSNT]:
* xdisp.c (erase_phys_cursor) [!WINDOWSNT]:
* xfaces.c (load_color) [!MSDOS]:
Now static.
* fileio.c (check_existing, check_executable, check_writable):
* process.c (network_interface_list, network_interface_info):
Move earlier, so that we don't need forward decls.
* gnutls.c (fn_gnutls_transport_set_errno)
(emacs_gnutls_transport_set_errno) [!WINDOWNT]:
Remove; unused.
* w32.c (init_environment): Use faccessat rather than
check_existing, partly for consistency with the rest of the code
in this file, partly so that check_existing can be static.
Diffstat (limited to 'src/dispextern.h')
| -rw-r--r-- | src/dispextern.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index 2d09fe7c5fe..681eba25cb3 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -3229,7 +3229,9 @@ extern void draw_phys_cursor_glyph (struct window *, | |||
| 3229 | enum draw_glyphs_face); | 3229 | enum draw_glyphs_face); |
| 3230 | extern void get_phys_cursor_geometry (struct window *, struct glyph_row *, | 3230 | extern void get_phys_cursor_geometry (struct window *, struct glyph_row *, |
| 3231 | struct glyph *, int *, int *, int *); | 3231 | struct glyph *, int *, int *, int *); |
| 3232 | #ifdef WINDOWSNT | ||
| 3232 | extern void erase_phys_cursor (struct window *); | 3233 | extern void erase_phys_cursor (struct window *); |
| 3234 | #endif | ||
| 3233 | extern void display_and_set_cursor (struct window *, bool, int, int, int, int); | 3235 | extern void display_and_set_cursor (struct window *, bool, int, int, int, int); |
| 3234 | extern void x_update_cursor (struct frame *, bool); | 3236 | extern void x_update_cursor (struct frame *, bool); |
| 3235 | extern void x_clear_cursor (struct window *); | 3237 | extern void x_clear_cursor (struct window *); |
| @@ -3343,8 +3345,10 @@ void update_face_from_frame_parameter (struct frame *, Lisp_Object, | |||
| 3343 | Lisp_Object); | 3345 | Lisp_Object); |
| 3344 | Lisp_Object tty_color_name (struct frame *, int); | 3346 | Lisp_Object tty_color_name (struct frame *, int); |
| 3345 | void clear_face_cache (int); | 3347 | void clear_face_cache (int); |
| 3348 | #ifdef MSDOS | ||
| 3346 | unsigned long load_color (struct frame *, struct face *, Lisp_Object, | 3349 | unsigned long load_color (struct frame *, struct face *, Lisp_Object, |
| 3347 | enum lface_attribute_index); | 3350 | enum lface_attribute_index); |
| 3351 | #endif | ||
| 3348 | void unload_color (struct frame *, unsigned long); | 3352 | void unload_color (struct frame *, unsigned long); |
| 3349 | char *choose_face_font (struct frame *, Lisp_Object *, Lisp_Object, | 3353 | char *choose_face_font (struct frame *, Lisp_Object *, Lisp_Object, |
| 3350 | int *); | 3354 | int *); |