Mercurial > hg > xemacs-beta
comparison src/console.c @ 2340:91a83e231f92
[xemacs-hg @ 2004-10-19 17:18:59 by james]
Mark more unused parameters.
author | james |
---|---|
date | Tue, 19 Oct 2004 17:19:07 +0000 |
parents | 04bc9d2f42c7 |
children | ecf1ebac70d8 |
comparison
equal
deleted
inserted
replaced
2339:74a78941c2c1 | 2340:91a83e231f92 |
---|---|
39 #include "window.h" | 39 #include "window.h" |
40 | 40 |
41 #include "console-stream-impl.h" | 41 #include "console-stream-impl.h" |
42 #ifdef HAVE_TTY | 42 #ifdef HAVE_TTY |
43 #include "console-tty-impl.h" | 43 #include "console-tty-impl.h" |
44 #endif | |
45 | |
46 #ifdef HAVE_TTY | |
47 #define USED_IF_TTY(decl) decl | |
48 #else | |
49 #define USED_IF_TTY(decl) UNUSED (decl) | |
44 #endif | 50 #endif |
45 | 51 |
46 Lisp_Object Vconsole_list, Vselected_console; | 52 Lisp_Object Vconsole_list, Vselected_console; |
47 | 53 |
48 Lisp_Object Vcreate_console_hook, Vdelete_console_hook; | 54 Lisp_Object Vcreate_console_hook, Vdelete_console_hook; |
1022 Otherwise it is assumed to be the selected console. | 1028 Otherwise it is assumed to be the selected console. |
1023 | 1029 |
1024 Some operating systems cannot stop processes and resume them later. | 1030 Some operating systems cannot stop processes and resume them later. |
1025 On such systems, who knows what will happen. | 1031 On such systems, who knows what will happen. |
1026 */ | 1032 */ |
1027 (console)) | 1033 (USED_IF_TTY (console))) |
1028 { | 1034 { |
1029 #ifdef HAVE_TTY | 1035 #ifdef HAVE_TTY |
1030 struct console *con = decode_console (console); | 1036 struct console *con = decode_console (console); |
1031 | 1037 |
1032 if (CONSOLE_TTY_P (con)) | 1038 if (CONSOLE_TTY_P (con)) |
1059 | 1065 |
1060 DEFUN ("resume-console", Fresume_console, 1, 1, "", /* | 1066 DEFUN ("resume-console", Fresume_console, 1, 1, "", /* |
1061 Re-initialize a previously suspended console. | 1067 Re-initialize a previously suspended console. |
1062 For tty consoles, do stuff to the tty to make it sane again. | 1068 For tty consoles, do stuff to the tty to make it sane again. |
1063 */ | 1069 */ |
1064 (console)) | 1070 (USED_IF_TTY (console))) |
1065 { | 1071 { |
1066 #ifdef HAVE_TTY | 1072 #ifdef HAVE_TTY |
1067 struct console *con = decode_console (console); | 1073 struct console *con = decode_console (console); |
1068 | 1074 |
1069 if (CONSOLE_TTY_P (con)) | 1075 if (CONSOLE_TTY_P (con)) |
1107 Optional fourth arg QUIT if non-nil specifies character to use for quitting. | 1113 Optional fourth arg QUIT if non-nil specifies character to use for quitting. |
1108 Optional fifth arg CONSOLE specifies console to make changes to; nil means | 1114 Optional fifth arg CONSOLE specifies console to make changes to; nil means |
1109 the selected console. | 1115 the selected console. |
1110 See also `current-input-mode'. | 1116 See also `current-input-mode'. |
1111 */ | 1117 */ |
1112 (UNUSED (ignored), flow, meta, quit, console)) | 1118 (UNUSED (ignored), USED_IF_TTY (flow), meta, quit, console)) |
1113 { | 1119 { |
1114 struct console *con = decode_console (console); | 1120 struct console *con = decode_console (console); |
1115 int meta_key = (!CONSOLE_TTY_P (con) ? 1 : | 1121 int meta_key = (!CONSOLE_TTY_P (con) ? 1 : |
1116 EQ (meta, Qnil) ? 0 : | 1122 EQ (meta, Qnil) ? 0 : |
1117 EQ (meta, Qt) ? 1 : | 1123 EQ (meta, Qt) ? 1 : |