aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32proc.c
diff options
context:
space:
mode:
authorTom Tromey2018-07-06 21:56:17 -0600
committerTom Tromey2018-07-12 22:12:27 -0600
commit42fe787b0f26c2df682b2797407a669ef8522ccb (patch)
treee944fe465e2b65703a8361bc82647faf4f7907f1 /src/w32proc.c
parent01dbf2a347944497fdcf2ec156f4605020d7ba2a (diff)
downloademacs-42fe787b0f26c2df682b2797407a669ef8522ccb.tar.gz
emacs-42fe787b0f26c2df682b2797407a669ef8522ccb.zip
Rename integerp->fixnum, etc, in preparation for bignums
* src/json.c, src/keyboard.c, src/keyboard.h, src/keymap.c, src/kqueue.c, src/lcms.c, src/lisp.h, src/lread.c, src/macros.c, src/marker.c, src/menu.c, src/minibuf.c, src/msdos.c, src/print.c, src/process.c, src/profiler.c, src/search.c, src/sound.c, src/syntax.c, src/sysdep.c, src/term.c, src/terminal.c, src/textprop.c, src/undo.c, src/w16select.c, src/w32.c, src/w32console.c, src/w32cygwinx.c, src/w32fns.c, src/w32font.c, src/w32inevt.c, src/w32proc.c, src/w32select.c, src/w32term.c, src/w32uniscribe.c, src/widget.c, src/window.c, src/xdisp.c, src/xfaces.c, src/xfns.c, src/xfont.c, src/xftfont.c, src/xmenu.c, src/xrdb.c, src/xselect.c, src/xterm.c, src/xwidget.c: Rename INTEGERP->FIXNUM, make_number->make_fixnum, CHECK_NUMBER->CHECK_FIXNUM, make_natnum->make_fixed_natum, NUMBERP->FIXED_OR_FLOATP, NATNUMP->FIXNATP, CHECK_NATNUM->CHECK_FIXNAT.
Diffstat (limited to 'src/w32proc.c')
-rw-r--r--src/w32proc.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index 5934669c363..4cffdd0d9d7 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -1766,7 +1766,7 @@ sys_spawnve (int mode, char *cmdname, char **argv, char **envp)
1766 { 1766 {
1767 program = build_string (cmdname); 1767 program = build_string (cmdname);
1768 full = Qnil; 1768 full = Qnil;
1769 openp (Vexec_path, program, Vexec_suffixes, &full, make_number (X_OK), 0); 1769 openp (Vexec_path, program, Vexec_suffixes, &full, make_fixnum (X_OK), 0);
1770 if (NILP (full)) 1770 if (NILP (full))
1771 { 1771 {
1772 errno = EINVAL; 1772 errno = EINVAL;
@@ -1889,7 +1889,7 @@ sys_spawnve (int mode, char *cmdname, char **argv, char **envp)
1889 do_quoting = 1; 1889 do_quoting = 1;
1890 /* Override escape char by binding w32-quote-process-args to 1890 /* Override escape char by binding w32-quote-process-args to
1891 desired character, or use t for auto-selection. */ 1891 desired character, or use t for auto-selection. */
1892 if (INTEGERP (Vw32_quote_process_args)) 1892 if (FIXNUMP (Vw32_quote_process_args))
1893 escape_char = XINT (Vw32_quote_process_args); 1893 escape_char = XINT (Vw32_quote_process_args);
1894 else 1894 else
1895 escape_char = (is_cygnus_app || is_msys_app) ? '"' : '\\'; 1895 escape_char = (is_cygnus_app || is_msys_app) ? '"' : '\\';
@@ -3017,7 +3017,7 @@ If successful, the return value is t, otherwise nil. */)
3017 DWORD pid; 3017 DWORD pid;
3018 child_process *cp; 3018 child_process *cp;
3019 3019
3020 CHECK_NUMBER (process); 3020 CHECK_FIXNUM (process);
3021 3021
3022 /* Allow pid to be an internally generated one, or one obtained 3022 /* Allow pid to be an internally generated one, or one obtained
3023 externally. This is necessary because real pids on Windows 95 are 3023 externally. This is necessary because real pids on Windows 95 are
@@ -3186,7 +3186,7 @@ If LCID (a 16-bit number) is not a valid locale, the result is nil. */)
3186 char abbrev_name[32] = { 0 }; 3186 char abbrev_name[32] = { 0 };
3187 char full_name[256] = { 0 }; 3187 char full_name[256] = { 0 };
3188 3188
3189 CHECK_NUMBER (lcid); 3189 CHECK_FIXNUM (lcid);
3190 3190
3191 if (!IsValidLocale (XINT (lcid), LCID_SUPPORTED)) 3191 if (!IsValidLocale (XINT (lcid), LCID_SUPPORTED))
3192 return Qnil; 3192 return Qnil;
@@ -3207,7 +3207,7 @@ If LCID (a 16-bit number) is not a valid locale, the result is nil. */)
3207 if (got_full) 3207 if (got_full)
3208 return DECODE_SYSTEM (build_string (full_name)); 3208 return DECODE_SYSTEM (build_string (full_name));
3209 } 3209 }
3210 else if (NUMBERP (longform)) 3210 else if (FIXED_OR_FLOATP (longform))
3211 { 3211 {
3212 got_full = GetLocaleInfo (XINT (lcid), 3212 got_full = GetLocaleInfo (XINT (lcid),
3213 XINT (longform), 3213 XINT (longform),
@@ -3231,7 +3231,7 @@ This is a numerical value; use `w32-get-locale-info' to convert to a
3231human-readable form. */) 3231human-readable form. */)
3232 (void) 3232 (void)
3233{ 3233{
3234 return make_number (GetThreadLocale ()); 3234 return make_fixnum (GetThreadLocale ());
3235} 3235}
3236 3236
3237static DWORD 3237static DWORD
@@ -3260,7 +3260,7 @@ static BOOL CALLBACK ALIGN_STACK
3260enum_locale_fn (LPTSTR localeNum) 3260enum_locale_fn (LPTSTR localeNum)
3261{ 3261{
3262 DWORD id = int_from_hex (localeNum); 3262 DWORD id = int_from_hex (localeNum);
3263 Vw32_valid_locale_ids = Fcons (make_number (id), Vw32_valid_locale_ids); 3263 Vw32_valid_locale_ids = Fcons (make_fixnum (id), Vw32_valid_locale_ids);
3264 return TRUE; 3264 return TRUE;
3265} 3265}
3266 3266
@@ -3289,8 +3289,8 @@ human-readable form. */)
3289 (Lisp_Object userp) 3289 (Lisp_Object userp)
3290{ 3290{
3291 if (NILP (userp)) 3291 if (NILP (userp))
3292 return make_number (GetSystemDefaultLCID ()); 3292 return make_fixnum (GetSystemDefaultLCID ());
3293 return make_number (GetUserDefaultLCID ()); 3293 return make_fixnum (GetUserDefaultLCID ());
3294} 3294}
3295 3295
3296 3296
@@ -3299,7 +3299,7 @@ DEFUN ("w32-set-current-locale", Fw32_set_current_locale, Sw32_set_current_local
3299If successful, the new locale id is returned, otherwise nil. */) 3299If successful, the new locale id is returned, otherwise nil. */)
3300 (Lisp_Object lcid) 3300 (Lisp_Object lcid)
3301{ 3301{
3302 CHECK_NUMBER (lcid); 3302 CHECK_FIXNUM (lcid);
3303 3303
3304 if (!IsValidLocale (XINT (lcid), LCID_SUPPORTED)) 3304 if (!IsValidLocale (XINT (lcid), LCID_SUPPORTED))
3305 return Qnil; 3305 return Qnil;
@@ -3312,7 +3312,7 @@ If successful, the new locale id is returned, otherwise nil. */)
3312 /* Reply is not needed. */ 3312 /* Reply is not needed. */
3313 PostThreadMessage (dwWindowsThreadId, WM_EMACS_SETLOCALE, XINT (lcid), 0); 3313 PostThreadMessage (dwWindowsThreadId, WM_EMACS_SETLOCALE, XINT (lcid), 0);
3314 3314
3315 return make_number (GetThreadLocale ()); 3315 return make_fixnum (GetThreadLocale ());
3316} 3316}
3317 3317
3318 3318
@@ -3324,7 +3324,7 @@ static BOOL CALLBACK ALIGN_STACK
3324enum_codepage_fn (LPTSTR codepageNum) 3324enum_codepage_fn (LPTSTR codepageNum)
3325{ 3325{
3326 DWORD id = atoi (codepageNum); 3326 DWORD id = atoi (codepageNum);
3327 Vw32_valid_codepages = Fcons (make_number (id), Vw32_valid_codepages); 3327 Vw32_valid_codepages = Fcons (make_fixnum (id), Vw32_valid_codepages);
3328 return TRUE; 3328 return TRUE;
3329} 3329}
3330 3330
@@ -3347,7 +3347,7 @@ DEFUN ("w32-get-console-codepage", Fw32_get_console_codepage,
3347 doc: /* Return current Windows codepage for console input. */) 3347 doc: /* Return current Windows codepage for console input. */)
3348 (void) 3348 (void)
3349{ 3349{
3350 return make_number (GetConsoleCP ()); 3350 return make_fixnum (GetConsoleCP ());
3351} 3351}
3352 3352
3353 3353
@@ -3358,7 +3358,7 @@ This codepage setting affects keyboard input in tty mode.
3358If successful, the new CP is returned, otherwise nil. */) 3358If successful, the new CP is returned, otherwise nil. */)
3359 (Lisp_Object cp) 3359 (Lisp_Object cp)
3360{ 3360{
3361 CHECK_NUMBER (cp); 3361 CHECK_FIXNUM (cp);
3362 3362
3363 if (!IsValidCodePage (XINT (cp))) 3363 if (!IsValidCodePage (XINT (cp)))
3364 return Qnil; 3364 return Qnil;
@@ -3366,7 +3366,7 @@ If successful, the new CP is returned, otherwise nil. */)
3366 if (!SetConsoleCP (XINT (cp))) 3366 if (!SetConsoleCP (XINT (cp)))
3367 return Qnil; 3367 return Qnil;
3368 3368
3369 return make_number (GetConsoleCP ()); 3369 return make_fixnum (GetConsoleCP ());
3370} 3370}
3371 3371
3372 3372
@@ -3375,7 +3375,7 @@ DEFUN ("w32-get-console-output-codepage", Fw32_get_console_output_codepage,
3375 doc: /* Return current Windows codepage for console output. */) 3375 doc: /* Return current Windows codepage for console output. */)
3376 (void) 3376 (void)
3377{ 3377{
3378 return make_number (GetConsoleOutputCP ()); 3378 return make_fixnum (GetConsoleOutputCP ());
3379} 3379}
3380 3380
3381 3381
@@ -3386,7 +3386,7 @@ This codepage setting affects display in tty mode.
3386If successful, the new CP is returned, otherwise nil. */) 3386If successful, the new CP is returned, otherwise nil. */)
3387 (Lisp_Object cp) 3387 (Lisp_Object cp)
3388{ 3388{
3389 CHECK_NUMBER (cp); 3389 CHECK_FIXNUM (cp);
3390 3390
3391 if (!IsValidCodePage (XINT (cp))) 3391 if (!IsValidCodePage (XINT (cp)))
3392 return Qnil; 3392 return Qnil;
@@ -3394,7 +3394,7 @@ If successful, the new CP is returned, otherwise nil. */)
3394 if (!SetConsoleOutputCP (XINT (cp))) 3394 if (!SetConsoleOutputCP (XINT (cp)))
3395 return Qnil; 3395 return Qnil;
3396 3396
3397 return make_number (GetConsoleOutputCP ()); 3397 return make_fixnum (GetConsoleOutputCP ());
3398} 3398}
3399 3399
3400 3400
@@ -3412,7 +3412,7 @@ yield nil. */)
3412 CHARSETINFO info; 3412 CHARSETINFO info;
3413 DWORD_PTR dwcp; 3413 DWORD_PTR dwcp;
3414 3414
3415 CHECK_NUMBER (cp); 3415 CHECK_FIXNUM (cp);
3416 3416
3417 if (!IsValidCodePage (XINT (cp))) 3417 if (!IsValidCodePage (XINT (cp)))
3418 return Qnil; 3418 return Qnil;
@@ -3422,7 +3422,7 @@ yield nil. */)
3422 building --with-wide-int or building for 64bit. */ 3422 building --with-wide-int or building for 64bit. */
3423 dwcp = XINT (cp); 3423 dwcp = XINT (cp);
3424 if (TranslateCharsetInfo ((DWORD *) dwcp, &info, TCI_SRCCODEPAGE)) 3424 if (TranslateCharsetInfo ((DWORD *) dwcp, &info, TCI_SRCCODEPAGE))
3425 return make_number (info.ciCharset); 3425 return make_fixnum (info.ciCharset);
3426 3426
3427 return Qnil; 3427 return Qnil;
3428} 3428}
@@ -3444,8 +3444,8 @@ The return value is a list of pairs of language id and layout id. */)
3444 { 3444 {
3445 HKL kl = layouts[num_layouts]; 3445 HKL kl = layouts[num_layouts];
3446 3446
3447 obj = Fcons (Fcons (make_number (LOWORD (kl)), 3447 obj = Fcons (Fcons (make_fixnum (LOWORD (kl)),
3448 make_number (HIWORD (kl))), 3448 make_fixnum (HIWORD (kl))),
3449 obj); 3449 obj);
3450 } 3450 }
3451 } 3451 }
@@ -3462,8 +3462,8 @@ The return value is the cons of the language id and the layout id. */)
3462{ 3462{
3463 HKL kl = GetKeyboardLayout (dwWindowsThreadId); 3463 HKL kl = GetKeyboardLayout (dwWindowsThreadId);
3464 3464
3465 return Fcons (make_number (LOWORD (kl)), 3465 return Fcons (make_fixnum (LOWORD (kl)),
3466 make_number (HIWORD (kl))); 3466 make_fixnum (HIWORD (kl)));
3467} 3467}
3468 3468
3469 3469
@@ -3477,8 +3477,8 @@ If successful, the new layout id is returned, otherwise nil. */)
3477 HKL kl; 3477 HKL kl;
3478 3478
3479 CHECK_CONS (layout); 3479 CHECK_CONS (layout);
3480 CHECK_NUMBER_CAR (layout); 3480 CHECK_FIXNUM_CAR (layout);
3481 CHECK_NUMBER_CDR (layout); 3481 CHECK_FIXNUM_CDR (layout);
3482 3482
3483 kl = (HKL) (UINT_PTR) ((XINT (XCAR (layout)) & 0xffff) 3483 kl = (HKL) (UINT_PTR) ((XINT (XCAR (layout)) & 0xffff)
3484 | (XINT (XCDR (layout)) << 16)); 3484 | (XINT (XCDR (layout)) << 16));