diff options
| author | Juanma Barranquero | 2010-10-14 03:33:31 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-10-14 03:33:31 +0200 |
| commit | 24f981c9f4e15f42d4b569919297c4781a6fc51d (patch) | |
| tree | 50dd4e6dff3ffc36c03aee6a8576b3e0f548fbf8 /src | |
| parent | 63698bec58d9de504f08d161694058248d6c1d3e (diff) | |
| download | emacs-24f981c9f4e15f42d4b569919297c4781a6fc51d.tar.gz emacs-24f981c9f4e15f42d4b569919297c4781a6fc51d.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/w32fns.c | 6 | ||||
| -rw-r--r-- | src/w32font.c | 2 | ||||
| -rw-r--r-- | src/w32inevt.c | 2 | ||||
| -rw-r--r-- | src/w32menu.c | 3 | ||||
| -rw-r--r-- | src/w32proc.c | 16 | ||||
| -rw-r--r-- | src/w32term.c | 2 |
7 files changed, 26 insertions, 15 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ca271d8e2a7..639759bf384 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2010-10-14 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * w32fns.c (w32_wnd_proc, file_dialog_callback): | ||
| 4 | * w32font.c (w32_generic_family): | ||
| 5 | * w32inevt.c (key_event): | ||
| 6 | * w32menu.c (fill_in_menu): | ||
| 7 | * w32proc.c (reader_thread, w32_executable_type, compare_env) | ||
| 8 | (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn): | ||
| 9 | * w32term.c (w32_read_socket): Make static. | ||
| 10 | |||
| 1 | 2010-10-13 Juanma Barranquero <lekktu@gmail.com> | 11 | 2010-10-13 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 12 | ||
| 3 | * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict | 13 | * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict |
diff --git a/src/w32fns.c b/src/w32fns.c index 5e5f11c813d..b05643821f1 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -1900,7 +1900,7 @@ w32_load_cursor (LPCTSTR name) | |||
| 1900 | return cursor; | 1900 | return cursor; |
| 1901 | } | 1901 | } |
| 1902 | 1902 | ||
| 1903 | extern LRESULT CALLBACK w32_wnd_proc (HWND, UINT, WPARAM, LPARAM); | 1903 | static LRESULT CALLBACK w32_wnd_proc (HWND, UINT, WPARAM, LPARAM); |
| 1904 | 1904 | ||
| 1905 | static BOOL | 1905 | static BOOL |
| 1906 | w32_init_class (HINSTANCE hinst) | 1906 | w32_init_class (HINSTANCE hinst) |
| @@ -2672,7 +2672,7 @@ post_character_message (HWND hwnd, UINT msg, | |||
| 2672 | 2672 | ||
| 2673 | /* Main window procedure */ | 2673 | /* Main window procedure */ |
| 2674 | 2674 | ||
| 2675 | LRESULT CALLBACK | 2675 | static LRESULT CALLBACK |
| 2676 | w32_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) | 2676 | w32_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| 2677 | { | 2677 | { |
| 2678 | struct frame *f; | 2678 | struct frame *f; |
| @@ -5903,7 +5903,7 @@ extern Lisp_Object Qfile_name_history; | |||
| 5903 | read-only when "Directories" is selected in the filter. This | 5903 | read-only when "Directories" is selected in the filter. This |
| 5904 | allows us to work around the fact that the standard Open File | 5904 | allows us to work around the fact that the standard Open File |
| 5905 | dialog does not support directories. */ | 5905 | dialog does not support directories. */ |
| 5906 | UINT CALLBACK | 5906 | static UINT CALLBACK |
| 5907 | file_dialog_callback (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) | 5907 | file_dialog_callback (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| 5908 | { | 5908 | { |
| 5909 | if (msg == WM_NOTIFY) | 5909 | if (msg == WM_NOTIFY) |
diff --git a/src/w32font.c b/src/w32font.c index 46fca5d78d5..8e17093b98d 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -1058,7 +1058,7 @@ w32_enumfont_pattern_entity (Lisp_Object frame, | |||
| 1058 | 1058 | ||
| 1059 | 1059 | ||
| 1060 | /* Convert generic families to the family portion of lfPitchAndFamily. */ | 1060 | /* Convert generic families to the family portion of lfPitchAndFamily. */ |
| 1061 | BYTE | 1061 | static BYTE |
| 1062 | w32_generic_family (Lisp_Object name) | 1062 | w32_generic_family (Lisp_Object name) |
| 1063 | { | 1063 | { |
| 1064 | /* Generic families. */ | 1064 | /* Generic families. */ |
diff --git a/src/w32inevt.c b/src/w32inevt.c index 7cf566e91a2..1111f8dfa44 100644 --- a/src/w32inevt.c +++ b/src/w32inevt.c | |||
| @@ -288,7 +288,7 @@ static int faked_key = 0; | |||
| 288 | 288 | ||
| 289 | /* return code -1 means that event_queue_ptr won't be incremented. | 289 | /* return code -1 means that event_queue_ptr won't be incremented. |
| 290 | In other word, this event makes two key codes. (by himi) */ | 290 | In other word, this event makes two key codes. (by himi) */ |
| 291 | int | 291 | static int |
| 292 | key_event (KEY_EVENT_RECORD *event, struct input_event *emacs_ev, int *isdead) | 292 | key_event (KEY_EVENT_RECORD *event, struct input_event *emacs_ev, int *isdead) |
| 293 | { | 293 | { |
| 294 | static int mod_key_state = 0; | 294 | static int mod_key_state = 0; |
diff --git a/src/w32menu.c b/src/w32menu.c index 0ed9bffe70c..6e7da5ad577 100644 --- a/src/w32menu.c +++ b/src/w32menu.c | |||
| @@ -106,6 +106,7 @@ static Lisp_Object simple_dialog_show (FRAME_PTR, Lisp_Object, Lisp_Object); | |||
| 106 | #endif | 106 | #endif |
| 107 | 107 | ||
| 108 | static void utf8to16 (unsigned char *, int, WCHAR *); | 108 | static void utf8to16 (unsigned char *, int, WCHAR *); |
| 109 | static int fill_in_menu (HMENU, widget_value *); | ||
| 109 | 110 | ||
| 110 | void w32_free_menu_strings (HWND); | 111 | void w32_free_menu_strings (HWND); |
| 111 | 112 | ||
| @@ -1568,7 +1569,7 @@ add_menu_item (HMENU menu, widget_value *wv, HMENU item) | |||
| 1568 | } | 1569 | } |
| 1569 | 1570 | ||
| 1570 | /* Construct native Windows menu(bar) based on widget_value tree. */ | 1571 | /* Construct native Windows menu(bar) based on widget_value tree. */ |
| 1571 | int | 1572 | static int |
| 1572 | fill_in_menu (HMENU menu, widget_value *wv) | 1573 | fill_in_menu (HMENU menu, widget_value *wv) |
| 1573 | { | 1574 | { |
| 1574 | int items_added = 0; | 1575 | int items_added = 0; |
diff --git a/src/w32proc.c b/src/w32proc.c index ae4e725b6ef..c0da124a472 100644 --- a/src/w32proc.c +++ b/src/w32proc.c | |||
| @@ -159,7 +159,7 @@ int child_proc_count = 0; | |||
| 159 | child_process child_procs[ MAX_CHILDREN ]; | 159 | child_process child_procs[ MAX_CHILDREN ]; |
| 160 | child_process *dead_child = NULL; | 160 | child_process *dead_child = NULL; |
| 161 | 161 | ||
| 162 | DWORD WINAPI reader_thread (void *arg); | 162 | static DWORD WINAPI reader_thread (void *arg); |
| 163 | 163 | ||
| 164 | /* Find an unused process slot. */ | 164 | /* Find an unused process slot. */ |
| 165 | child_process * | 165 | child_process * |
| @@ -279,7 +279,7 @@ find_child_pid (DWORD pid) | |||
| 279 | is normally blocked until woken by select() to check for input by | 279 | is normally blocked until woken by select() to check for input by |
| 280 | reading one char. When the read completes, char_avail is signaled | 280 | reading one char. When the read completes, char_avail is signaled |
| 281 | to wake up the select emulator and the thread blocks itself again. */ | 281 | to wake up the select emulator and the thread blocks itself again. */ |
| 282 | DWORD WINAPI | 282 | static DWORD WINAPI |
| 283 | reader_thread (void *arg) | 283 | reader_thread (void *arg) |
| 284 | { | 284 | { |
| 285 | child_process *cp; | 285 | child_process *cp; |
| @@ -608,7 +608,7 @@ get_result: | |||
| 608 | # define IMAGE_OPTIONAL_HEADER32 IMAGE_OPTIONAL_HEADER | 608 | # define IMAGE_OPTIONAL_HEADER32 IMAGE_OPTIONAL_HEADER |
| 609 | #endif | 609 | #endif |
| 610 | 610 | ||
| 611 | void | 611 | static void |
| 612 | w32_executable_type (char * filename, | 612 | w32_executable_type (char * filename, |
| 613 | int * is_dos_app, | 613 | int * is_dos_app, |
| 614 | int * is_cygnus_app, | 614 | int * is_cygnus_app, |
| @@ -726,7 +726,7 @@ unwind: | |||
| 726 | close_file_data (&executable); | 726 | close_file_data (&executable); |
| 727 | } | 727 | } |
| 728 | 728 | ||
| 729 | int | 729 | static int |
| 730 | compare_env (const void *strp1, const void *strp2) | 730 | compare_env (const void *strp1, const void *strp2) |
| 731 | { | 731 | { |
| 732 | const char *str1 = *(const char **)strp1, *str2 = *(const char **)strp2; | 732 | const char *str1 = *(const char **)strp1, *str2 = *(const char **)strp2; |
| @@ -750,7 +750,7 @@ compare_env (const void *strp1, const void *strp2) | |||
| 750 | return 1; | 750 | return 1; |
| 751 | } | 751 | } |
| 752 | 752 | ||
| 753 | void | 753 | static void |
| 754 | merge_and_sort_env (char **envp1, char **envp2, char **new_envp) | 754 | merge_and_sort_env (char **envp1, char **envp2, char **new_envp) |
| 755 | { | 755 | { |
| 756 | char **optr, **nptr; | 756 | char **optr, **nptr; |
| @@ -1999,7 +1999,7 @@ human-readable form. */) | |||
| 1999 | return make_number (GetThreadLocale ()); | 1999 | return make_number (GetThreadLocale ()); |
| 2000 | } | 2000 | } |
| 2001 | 2001 | ||
| 2002 | DWORD | 2002 | static DWORD |
| 2003 | int_from_hex (char * s) | 2003 | int_from_hex (char * s) |
| 2004 | { | 2004 | { |
| 2005 | DWORD val = 0; | 2005 | DWORD val = 0; |
| @@ -2021,7 +2021,7 @@ int_from_hex (char * s) | |||
| 2021 | function isn't given a context pointer. */ | 2021 | function isn't given a context pointer. */ |
| 2022 | Lisp_Object Vw32_valid_locale_ids; | 2022 | Lisp_Object Vw32_valid_locale_ids; |
| 2023 | 2023 | ||
| 2024 | BOOL CALLBACK | 2024 | static BOOL CALLBACK |
| 2025 | enum_locale_fn (LPTSTR localeNum) | 2025 | enum_locale_fn (LPTSTR localeNum) |
| 2026 | { | 2026 | { |
| 2027 | DWORD id = int_from_hex (localeNum); | 2027 | DWORD id = int_from_hex (localeNum); |
| @@ -2085,7 +2085,7 @@ If successful, the new locale id is returned, otherwise nil. */) | |||
| 2085 | function isn't given a context pointer. */ | 2085 | function isn't given a context pointer. */ |
| 2086 | Lisp_Object Vw32_valid_codepages; | 2086 | Lisp_Object Vw32_valid_codepages; |
| 2087 | 2087 | ||
| 2088 | BOOL CALLBACK | 2088 | static BOOL CALLBACK |
| 2089 | enum_codepage_fn (LPTSTR codepageNum) | 2089 | enum_codepage_fn (LPTSTR codepageNum) |
| 2090 | { | 2090 | { |
| 2091 | DWORD id = atoi (codepageNum); | 2091 | DWORD id = atoi (codepageNum); |
diff --git a/src/w32term.c b/src/w32term.c index 20f0dea8572..a082aa32b69 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -3954,7 +3954,7 @@ static char dbcs_lead = 0; | |||
| 3954 | recursively with different messages by the system. | 3954 | recursively with different messages by the system. |
| 3955 | */ | 3955 | */ |
| 3956 | 3956 | ||
| 3957 | int | 3957 | static int |
| 3958 | w32_read_socket (struct terminal *terminal, int expected, | 3958 | w32_read_socket (struct terminal *terminal, int expected, |
| 3959 | struct input_event *hold_quit) | 3959 | struct input_event *hold_quit) |
| 3960 | { | 3960 | { |