aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-03-01 01:13:46 +0000
committerKenichi Handa2002-03-01 01:13:46 +0000
commit2eca16e6a107e7ebae28980fdddca5f8347b1240 (patch)
treed4e4817f9c1d0294d6bd58d8b6c25cdf6a1639c8 /src
parentea012abd5c8ea90a04d9dfdf38223345db65026f (diff)
downloademacs-2eca16e6a107e7ebae28980fdddca5f8347b1240.tar.gz
emacs-2eca16e6a107e7ebae28980fdddca5f8347b1240.zip
(CATEGORY_SET): Just call char_category_set.
Diffstat (limited to 'src')
-rw-r--r--src/category.h19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/category.h b/src/category.h
index 3b2e609bdd3..e09a71d420d 100644
--- a/src/category.h
+++ b/src/category.h
@@ -1,6 +1,9 @@
1/* Declarations having to do with Emacs category tables. 1/* Declarations having to do with Emacs category tables.
2 Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. 2 Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
3 Licensed to the Free Software Foundation. 3 Licensed to the Free Software Foundation.
4 Copyright (C) 2001, 2002
5 National Institute of Advanced Industrial Science and Technology (AIST)
6 Registration Number H13PRO009
4 7
5This file is part of GNU Emacs. 8This file is part of GNU Emacs.
6 9
@@ -95,21 +98,7 @@ extern Lisp_Object _temp_category_set;
95#define Vstandard_category_table buffer_defaults.category_table 98#define Vstandard_category_table buffer_defaults.category_table
96 99
97/* Return the category set of character C in the current category table. */ 100/* Return the category set of character C in the current category table. */
98#ifdef __GNUC__ 101#define CATEGORY_SET(c) char_category_set (c)
99#define CATEGORY_SET(c) \
100 ({ Lisp_Object table = current_buffer->category_table; \
101 Lisp_Object temp; \
102 if ((c) < CHAR_TABLE_SINGLE_BYTE_SLOTS) \
103 while (NILP (temp = XCHAR_TABLE (table)->contents[(unsigned char) c]) \
104 && NILP (temp = XCHAR_TABLE (table)->defalt)) \
105 table = XCHAR_TABLE (table)->parent; \
106 else \
107 temp = Faref (table, make_number (c)); \
108 temp; })
109#else
110#define CATEGORY_SET(c) \
111 Faref (current_buffer->category_table, make_number (c))
112#endif
113 102
114/* Return the doc string of CATEGORY in category table TABLE. */ 103/* Return the doc string of CATEGORY in category table TABLE. */
115#define CATEGORY_DOCSTRING(table, category) \ 104#define CATEGORY_DOCSTRING(table, category) \