aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorPaul Eggert2013-10-16 23:42:21 -0700
committerPaul Eggert2013-10-16 23:42:21 -0700
commit3d798ba7dbad4bac02226959cfd82099bf11fd9f (patch)
treea498f5f85e4b65a4e6b20b470834a304ee127d9e /src/term.c
parent921c1d62980fe93d4c26d6aeae0ef2a81a752b11 (diff)
downloademacs-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/term.c')
-rw-r--r--src/term.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c
index ee81c59dcd4..b4c2e2560cc 100644
--- a/src/term.c
+++ b/src/term.c
@@ -500,8 +500,12 @@ static ptrdiff_t encode_terminal_dst_size;
500 Set CODING->produced to the byte-length of the resulting byte 500 Set CODING->produced to the byte-length of the resulting byte
501 sequence, and return a pointer to that byte sequence. */ 501 sequence, and return a pointer to that byte sequence. */
502 502
503#ifndef WINDOWSNT
504static
505#endif
503unsigned char * 506unsigned char *
504encode_terminal_code (struct glyph *src, int src_len, struct coding_system *coding) 507encode_terminal_code (struct glyph *src, int src_len,
508 struct coding_system *coding)
505{ 509{
506 struct glyph *src_end = src + src_len; 510 struct glyph *src_end = src + src_len;
507 unsigned char *buf; 511 unsigned char *buf;