Mercurial > hg > xemacs-beta
comparison src/casetab.h @ 446:1ccc32a20af4 r21-2-38
Import from CVS: tag r21-2-38
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:37:21 +0200 |
parents | |
children | af57a77cbc92 |
comparison
equal
deleted
inserted
replaced
445:34f3776fcf0e | 446:1ccc32a20af4 |
---|---|
1 /* XEmacs routines to deal with case tables. | |
2 Copyright (C) 2000 Yoshiki Hayashi. | |
3 This file is part of XEmacs. | |
4 | |
5 XEmacs is free software; you can redistribute it and/or modify it | |
6 under the terms of the GNU General Public License as published by the | |
7 Free Software Foundation; either version 2, or (at your option) any | |
8 later version. | |
9 | |
10 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 for more details. | |
14 | |
15 You should have received a copy of the GNU General Public License | |
16 along with XEmacs; see the file COPYING. If not, write to | |
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
18 Boston, MA 02111-1307, USA. */ | |
19 | |
20 /* Synched up with: Not in FSF. */ | |
21 | |
22 #ifndef INCLUDED_casetab_h_ | |
23 #define INCLUDED_casetab_h_ | |
24 | |
25 struct Lisp_Case_Table | |
26 { | |
27 struct lcrecord_header header; | |
28 Lisp_Object downcase_table; | |
29 Lisp_Object upcase_table; | |
30 Lisp_Object case_canon_table; | |
31 Lisp_Object case_eqv_table; | |
32 }; | |
33 typedef struct Lisp_Case_Table Lisp_Case_Table; | |
34 | |
35 DECLARE_LRECORD (case_table, Lisp_Case_Table); | |
36 #define XCASE_TABLE(x) XRECORD (x, case_table, Lisp_Case_Table) | |
37 #define XSETCASE_TABLE(x, p) XSETRECORD (x, p, case_table) | |
38 #define CASE_TABLEP(x) RECORDP (x, case_table) | |
39 #define CHECK_CASE_TABLE(x) CHECK_RECORD (x, case_table) | |
40 #define CONCHECK_CASE_TABLE(x) CONCHECK_RECORD (x, case_table) | |
41 | |
42 #define CASE_TABLE_DOWNCASE(ct) ((ct)->downcase_table) | |
43 #define CASE_TABLE_UPCASE(ct) ((ct)->upcase_table) | |
44 #define CASE_TABLE_CANON(ct) ((ct)->case_canon_table) | |
45 #define CASE_TABLE_EQV(ct) ((ct)->case_eqv_table) | |
46 #define XCASE_TABLE_DOWNCASE(ct) (XCASE_TABLE (ct)->downcase_table) | |
47 #define XCASE_TABLE_UPCASE(ct) (XCASE_TABLE (ct)->upcase_table) | |
48 #define XCASE_TABLE_CANON(ct) (XCASE_TABLE (ct)->case_canon_table) | |
49 #define XCASE_TABLE_EQV(ct) (XCASE_TABLE (ct)->case_eqv_table) | |
50 | |
51 #define SET_CASE_TABLE_DOWNCASE(ct, p) ((ct)->downcase_table = p) | |
52 #define SET_CASE_TABLE_UPCASE(ct, p) ((ct)->upcase_table = p) | |
53 #define SET_CASE_TABLE_CANON(ct, p) ((ct)->case_canon_table = p) | |
54 #define SET_CASE_TABLE_EQV(ct, p) ((ct)->case_eqv_table = p) | |
55 #define XSET_CASE_TABLE_DOWNCASE(ct, p) \ | |
56 SET_CASE_TABLE_DOWNCASE (XCASE_TABLE (ct), p) | |
57 #define XSET_CASE_TABLE_UPCASE(ct, p) \ | |
58 SET_CASE_TABLE_UPCASE (XCASE_TABLE (ct), p) | |
59 #define XSET_CASE_TABLE_CANON(ct, p) \ | |
60 SET_CASE_TABLE_CANON (XCASE_TABLE (ct), p) | |
61 #define XSET_CASE_TABLE_EQV(ct, p) \ | |
62 SET_CASE_TABLE_EQV (XCASE_TABLE (ct), p) | |
63 | |
64 extern Lisp_Object Vstandard_case_table; | |
65 | |
66 #endif /* INCLUDED_casetab_h_ */ |