aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32proc.c
diff options
context:
space:
mode:
authorJuanma Barranquero2010-07-06 16:22:29 +0200
committerJuanma Barranquero2010-07-06 16:22:29 +0200
commitb56ceb92bf4d470af2e9172d1fcd4d85232c40a6 (patch)
tree50ab60b4715be45ed671c386c5b9336b45443539 /src/w32proc.c
parent7af07b967171736a35e0af8b6ecf6feb072184dc (diff)
downloademacs-b56ceb92bf4d470af2e9172d1fcd4d85232c40a6.tar.gz
emacs-b56ceb92bf4d470af2e9172d1fcd4d85232c40a6.zip
src/w32*.c: Convert function definitions to standard C.
Diffstat (limited to 'src/w32proc.c')
-rw-r--r--src/w32proc.c23
1 files changed, 16 insertions, 7 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index b8443e5a75b..9eef228292f 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -117,7 +117,8 @@ extern Lisp_Object Qlocal;
117Lisp_Object Qhigh, Qlow; 117Lisp_Object Qhigh, Qlow;
118 118
119#ifdef EMACSDEBUG 119#ifdef EMACSDEBUG
120void _DebPrint (const char *fmt, ...) 120void
121_DebPrint (const char *fmt, ...)
121{ 122{
122 char buf[1024]; 123 char buf[1024];
123 va_list args; 124 va_list args;
@@ -608,7 +609,10 @@ get_result:
608#endif 609#endif
609 610
610void 611void
611w32_executable_type (char * filename, int * is_dos_app, int * is_cygnus_app, int * is_gui_app) 612w32_executable_type (char * filename,
613 int * is_dos_app,
614 int * is_cygnus_app,
615 int * is_gui_app)
612{ 616{
613 file_data executable; 617 file_data executable;
614 char * p; 618 char * p;
@@ -1875,7 +1879,8 @@ If successful, the return value is t, otherwise nil. */)
1875 1879
1876#ifdef HAVE_LANGINFO_CODESET 1880#ifdef HAVE_LANGINFO_CODESET
1877/* Emulation of nl_langinfo. Used in fns.c:Flocale_info. */ 1881/* Emulation of nl_langinfo. Used in fns.c:Flocale_info. */
1878char *nl_langinfo (nl_item item) 1882char *
1883nl_langinfo (nl_item item)
1879{ 1884{
1880 /* Conversion of Posix item numbers to their Windows equivalents. */ 1885 /* Conversion of Posix item numbers to their Windows equivalents. */
1881 static const LCTYPE w32item[] = { 1886 static const LCTYPE w32item[] = {
@@ -2003,7 +2008,8 @@ human-readable form. */)
2003 return make_number (GetThreadLocale ()); 2008 return make_number (GetThreadLocale ());
2004} 2009}
2005 2010
2006DWORD int_from_hex (char * s) 2011DWORD
2012int_from_hex (char * s)
2007{ 2013{
2008 DWORD val = 0; 2014 DWORD val = 0;
2009 static char hex[] = "0123456789abcdefABCDEF"; 2015 static char hex[] = "0123456789abcdefABCDEF";
@@ -2024,7 +2030,8 @@ DWORD int_from_hex (char * s)
2024 function isn't given a context pointer. */ 2030 function isn't given a context pointer. */
2025Lisp_Object Vw32_valid_locale_ids; 2031Lisp_Object Vw32_valid_locale_ids;
2026 2032
2027BOOL CALLBACK enum_locale_fn (LPTSTR localeNum) 2033BOOL CALLBACK
2034enum_locale_fn (LPTSTR localeNum)
2028{ 2035{
2029 DWORD id = int_from_hex (localeNum); 2036 DWORD id = int_from_hex (localeNum);
2030 Vw32_valid_locale_ids = Fcons (make_number (id), Vw32_valid_locale_ids); 2037 Vw32_valid_locale_ids = Fcons (make_number (id), Vw32_valid_locale_ids);
@@ -2089,7 +2096,8 @@ If successful, the new locale id is returned, otherwise nil. */)
2089 function isn't given a context pointer. */ 2096 function isn't given a context pointer. */
2090Lisp_Object Vw32_valid_codepages; 2097Lisp_Object Vw32_valid_codepages;
2091 2098
2092BOOL CALLBACK enum_codepage_fn (LPTSTR codepageNum) 2099BOOL CALLBACK
2100enum_codepage_fn (LPTSTR codepageNum)
2093{ 2101{
2094 DWORD id = atoi (codepageNum); 2102 DWORD id = atoi (codepageNum);
2095 Vw32_valid_codepages = Fcons (make_number (id), Vw32_valid_codepages); 2103 Vw32_valid_codepages = Fcons (make_number (id), Vw32_valid_codepages);
@@ -2265,7 +2273,8 @@ If successful, the new layout id is returned, otherwise nil. */)
2265} 2273}
2266 2274
2267 2275
2268syms_of_ntproc () 2276void
2277syms_of_ntproc (void)
2269{ 2278{
2270 DEFSYM (Qhigh, "high"); 2279 DEFSYM (Qhigh, "high");
2271 DEFSYM (Qlow, "low"); 2280 DEFSYM (Qlow, "low");