Mercurial > emacs
comparison src/term.c @ 39914:91951fb5b9e5
Put doc strings in comments.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sun, 14 Oct 2001 10:36:01 +0000 |
parents | 0b986bb45526 |
children | eac4e9ae201c |
comparison
equal
deleted
inserted
replaced
39913:5170ea31a07f | 39914:91951fb5b9e5 |
---|---|
25 #include <stdio.h> | 25 #include <stdio.h> |
26 #include <ctype.h> | 26 #include <ctype.h> |
27 #include <string.h> | 27 #include <string.h> |
28 #include "termchar.h" | 28 #include "termchar.h" |
29 #include "termopts.h" | 29 #include "termopts.h" |
30 #define DOC_STRINGS_IN_COMMENTS | |
30 #include "lisp.h" | 31 #include "lisp.h" |
31 #include "charset.h" | 32 #include "charset.h" |
32 #include "coding.h" | 33 #include "coding.h" |
33 #include "keyboard.h" | 34 #include "keyboard.h" |
34 #include "frame.h" | 35 #include "frame.h" |
2173 | 2174 |
2174 /* Return non-zero if the terminal is capable to display colors. */ | 2175 /* Return non-zero if the terminal is capable to display colors. */ |
2175 | 2176 |
2176 DEFUN ("tty-display-color-p", Ftty_display_color_p, Stty_display_color_p, | 2177 DEFUN ("tty-display-color-p", Ftty_display_color_p, Stty_display_color_p, |
2177 0, 1, 0, | 2178 0, 1, 0, |
2178 "Return non-nil if TTY can display colors on FRAME.") | 2179 /* Return non-nil if TTY can display colors on FRAME. */ |
2179 (frame) | 2180 (frame)) |
2180 Lisp_Object frame; | 2181 Lisp_Object frame; |
2181 { | 2182 { |
2182 return TN_max_colors > 0 ? Qt : Qnil; | 2183 return TN_max_colors > 0 ? Qt : Qnil; |
2183 } | 2184 } |
2184 | 2185 |
2605 } | 2606 } |
2606 | 2607 |
2607 void | 2608 void |
2608 syms_of_term () | 2609 syms_of_term () |
2609 { | 2610 { |
2610 DEFVAR_BOOL ("system-uses-terminfo", &system_uses_terminfo, | 2611 DEFVAR_BOOL ("system-uses-terminfo", &system_uses_terminfo |
2611 "Non-nil means the system uses terminfo rather than termcap.\n\ | 2612 /* Non-nil means the system uses terminfo rather than termcap. |
2612 This variable can be used by terminal emulator packages."); | 2613 This variable can be used by terminal emulator packages. */); |
2613 #ifdef TERMINFO | 2614 #ifdef TERMINFO |
2614 system_uses_terminfo = 1; | 2615 system_uses_terminfo = 1; |
2615 #else | 2616 #else |
2616 system_uses_terminfo = 0; | 2617 system_uses_terminfo = 0; |
2617 #endif | 2618 #endif |
2618 | 2619 |
2619 DEFVAR_LISP ("ring-bell-function", &Vring_bell_function, | 2620 DEFVAR_LISP ("ring-bell-function", &Vring_bell_function |
2620 "Non-nil means call this function to ring the bell.\n\ | 2621 /* Non-nil means call this function to ring the bell. |
2621 The function should accept no arguments."); | 2622 The function should accept no arguments. */); |
2622 Vring_bell_function = Qnil; | 2623 Vring_bell_function = Qnil; |
2623 | 2624 |
2624 defsubr (&Stty_display_color_p); | 2625 defsubr (&Stty_display_color_p); |
2625 } | 2626 } |
2626 | 2627 |