1 /* XEmacs routines to deal with case tables.
2 Copyright (C) 2000 Yoshiki Hayashi.
3 This file is part of XEmacs.
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
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
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. */
20 /* Synched up with: Not in FSF. */
22 #ifndef INCLUDED_casetab_h_
23 #define INCLUDED_casetab_h_
25 struct Lisp_Case_Table
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;
33 typedef struct Lisp_Case_Table Lisp_Case_Table;
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)
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)
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)
64 extern Lisp_Object Vstandard_case_table;
66 #endif /* INCLUDED_casetab_h_ */