Mercurial > emacs
changeset 110975:e0ac9a58795e
src/w32*.c: Make functions static.
* src/w32fns.c (w32_wnd_proc, file_dialog_callback):
* src/w32font.c (w32_generic_family):
* src/w32inevt.c (key_event):
* src/w32menu.c (fill_in_menu):
* src/w32proc.c (reader_thread, w32_executable_type, compare_env)
(merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
* src/w32term.c (w32_read_socket): Make static.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 14 Oct 2010 03:33:31 +0200 |
parents | 1b124015973c |
children | c62e42a9ebc4 |
files | src/ChangeLog src/w32fns.c src/w32font.c src/w32inevt.c src/w32menu.c src/w32proc.c src/w32term.c |
diffstat | 7 files changed, 26 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Thu Oct 14 01:17:30 2010 +0000 +++ b/src/ChangeLog Thu Oct 14 03:33:31 2010 +0200 @@ -1,3 +1,13 @@ +2010-10-14 Juanma Barranquero <lekktu@gmail.com> + + * w32fns.c (w32_wnd_proc, file_dialog_callback): + * w32font.c (w32_generic_family): + * w32inevt.c (key_event): + * w32menu.c (fill_in_menu): + * w32proc.c (reader_thread, w32_executable_type, compare_env) + (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn): + * w32term.c (w32_read_socket): Make static. + 2010-10-13 Juanma Barranquero <lekktu@gmail.com> * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
--- a/src/w32fns.c Thu Oct 14 01:17:30 2010 +0000 +++ b/src/w32fns.c Thu Oct 14 03:33:31 2010 +0200 @@ -1900,7 +1900,7 @@ return cursor; } -extern LRESULT CALLBACK w32_wnd_proc (HWND, UINT, WPARAM, LPARAM); +static LRESULT CALLBACK w32_wnd_proc (HWND, UINT, WPARAM, LPARAM); static BOOL w32_init_class (HINSTANCE hinst) @@ -2672,7 +2672,7 @@ /* Main window procedure */ -LRESULT CALLBACK +static LRESULT CALLBACK w32_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { struct frame *f; @@ -5903,7 +5903,7 @@ read-only when "Directories" is selected in the filter. This allows us to work around the fact that the standard Open File dialog does not support directories. */ -UINT CALLBACK +static UINT CALLBACK file_dialog_callback (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { if (msg == WM_NOTIFY)
--- a/src/w32font.c Thu Oct 14 01:17:30 2010 +0000 +++ b/src/w32font.c Thu Oct 14 03:33:31 2010 +0200 @@ -1058,7 +1058,7 @@ /* Convert generic families to the family portion of lfPitchAndFamily. */ -BYTE +static BYTE w32_generic_family (Lisp_Object name) { /* Generic families. */
--- a/src/w32inevt.c Thu Oct 14 01:17:30 2010 +0000 +++ b/src/w32inevt.c Thu Oct 14 03:33:31 2010 +0200 @@ -288,7 +288,7 @@ /* return code -1 means that event_queue_ptr won't be incremented. In other word, this event makes two key codes. (by himi) */ -int +static int key_event (KEY_EVENT_RECORD *event, struct input_event *emacs_ev, int *isdead) { static int mod_key_state = 0;
--- a/src/w32menu.c Thu Oct 14 01:17:30 2010 +0000 +++ b/src/w32menu.c Thu Oct 14 03:33:31 2010 +0200 @@ -106,6 +106,7 @@ #endif static void utf8to16 (unsigned char *, int, WCHAR *); +static int fill_in_menu (HMENU, widget_value *); void w32_free_menu_strings (HWND); @@ -1568,7 +1569,7 @@ } /* Construct native Windows menu(bar) based on widget_value tree. */ -int +static int fill_in_menu (HMENU menu, widget_value *wv) { int items_added = 0;
--- a/src/w32proc.c Thu Oct 14 01:17:30 2010 +0000 +++ b/src/w32proc.c Thu Oct 14 03:33:31 2010 +0200 @@ -159,7 +159,7 @@ child_process child_procs[ MAX_CHILDREN ]; child_process *dead_child = NULL; -DWORD WINAPI reader_thread (void *arg); +static DWORD WINAPI reader_thread (void *arg); /* Find an unused process slot. */ child_process * @@ -279,7 +279,7 @@ is normally blocked until woken by select() to check for input by reading one char. When the read completes, char_avail is signaled to wake up the select emulator and the thread blocks itself again. */ -DWORD WINAPI +static DWORD WINAPI reader_thread (void *arg) { child_process *cp; @@ -608,7 +608,7 @@ # define IMAGE_OPTIONAL_HEADER32 IMAGE_OPTIONAL_HEADER #endif -void +static void w32_executable_type (char * filename, int * is_dos_app, int * is_cygnus_app, @@ -726,7 +726,7 @@ close_file_data (&executable); } -int +static int compare_env (const void *strp1, const void *strp2) { const char *str1 = *(const char **)strp1, *str2 = *(const char **)strp2; @@ -750,7 +750,7 @@ return 1; } -void +static void merge_and_sort_env (char **envp1, char **envp2, char **new_envp) { char **optr, **nptr; @@ -1999,7 +1999,7 @@ return make_number (GetThreadLocale ()); } -DWORD +static DWORD int_from_hex (char * s) { DWORD val = 0; @@ -2021,7 +2021,7 @@ function isn't given a context pointer. */ Lisp_Object Vw32_valid_locale_ids; -BOOL CALLBACK +static BOOL CALLBACK enum_locale_fn (LPTSTR localeNum) { DWORD id = int_from_hex (localeNum); @@ -2085,7 +2085,7 @@ function isn't given a context pointer. */ Lisp_Object Vw32_valid_codepages; -BOOL CALLBACK +static BOOL CALLBACK enum_codepage_fn (LPTSTR codepageNum) { DWORD id = atoi (codepageNum);