comparison src/objects-tty.c @ 771:943eaba38521

[xemacs-hg @ 2002-03-13 08:51:24 by ben] The big ben-mule-21-5 check-in! Various files were added and deleted. See CHANGES-ben-mule. There are still some test suite failures. No crashes, though. Many of the failures have to do with problems in the test suite itself rather than in the actual code. I'll be addressing these in the next day or so -- none of the test suite failures are at all critical. Meanwhile I'll be trying to address the biggest issues -- i.e. build or run failures, which will almost certainly happen on various platforms. All comments should be sent to ben@xemacs.org -- use a Cc: if necessary when sending to mailing lists. There will be pre- and post- tags, something like pre-ben-mule-21-5-merge-in, and post-ben-mule-21-5-merge-in.
author ben
date Wed, 13 Mar 2002 08:54:06 +0000
parents fdefd0186b75
children e38acbeb1cae
comparison
equal deleted inserted replaced
770:336a418893b5 771:943eaba38521
1 /* TTY-specific Lisp objects. 1 /* TTY-specific Lisp objects.
2 Copyright (C) 1995 Board of Trustees, University of Illinois. 2 Copyright (C) 1995 Board of Trustees, University of Illinois.
3 Copyright (C) 1995, 1996 Ben Wing. 3 Copyright (C) 1995, 1996, 2001 Ben Wing.
4 4
5 This file is part of XEmacs. 5 This file is part of XEmacs.
6 6
7 XEmacs is free software; you can redistribute it and/or modify it 7 XEmacs is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the 8 under the terms of the GNU General Public License as published by the
25 #include "lisp.h" 25 #include "lisp.h"
26 26
27 #include "console-tty.h" 27 #include "console-tty.h"
28 #include "insdel.h" 28 #include "insdel.h"
29 #include "objects-tty.h" 29 #include "objects-tty.h"
30 #ifdef MULE
31 #include "device.h" 30 #include "device.h"
32 #include "mule-charset.h" 31 #include "charset.h"
33 #endif
34 32
35 /* An alist mapping from color names to a cons of (FG-STRING, BG-STRING). */ 33 /* An alist mapping from color names to a cons of (FG-STRING, BG-STRING). */
36 Lisp_Object Vtty_color_alist; 34 Lisp_Object Vtty_color_alist;
37 #if 0 /* This stuff doesn't quite work yet */ 35 #if 0 /* This stuff doesn't quite work yet */
38 Lisp_Object Vtty_dynamic_color_fg; 36 Lisp_Object Vtty_dynamic_color_fg;
218 Lisp_Object device, Error_Behavior errb) 216 Lisp_Object device, Error_Behavior errb)
219 { 217 {
220 Intbyte *str = XSTRING_DATA (name); 218 Intbyte *str = XSTRING_DATA (name);
221 Lisp_Object charset = Qnil; 219 Lisp_Object charset = Qnil;
222 220
223 if (strncmp ((const char *) str, "normal", 6)) 221 if (qxestrncmp_c (str, "normal", 6))
224 return 0; 222 return 0;
225 str += 6; 223 str += 6;
226 if (*str) 224 if (*str)
227 { 225 {
228 #ifdef MULE 226 #ifdef MULE
229 if (*str != '/') 227 if (*str != '/')
230 return 0; 228 return 0;
231 str++; 229 str++;
232 charset = Ffind_charset (intern ((const char *) str)); 230 charset = Ffind_charset (intern_int (str));
233 if (NILP (charset)) 231 if (NILP (charset))
234 return 0; 232 return 0;
235 #else 233 #else
236 return 0; 234 return 0;
237 #endif 235 #endif