diff options
Diffstat (limited to 'src/category.c')
| -rw-r--r-- | src/category.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/category.c b/src/category.c index bba030360c4..356801a179c 100644 --- a/src/category.c +++ b/src/category.c | |||
| @@ -48,11 +48,16 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 48 | For the moment, we are not using this feature. */ | 48 | For the moment, we are not using this feature. */ |
| 49 | static int category_table_version; | 49 | static int category_table_version; |
| 50 | 50 | ||
| 51 | Lisp_Object Qcategory_table, Qcategoryp, Qcategorysetp, Qcategory_table_p; | 51 | static Lisp_Object Qcategory_table, Qcategoryp, Qcategorysetp, Qcategory_table_p; |
| 52 | 52 | ||
| 53 | /* Temporary internal variable used in macro CHAR_HAS_CATEGORY. */ | 53 | /* Temporary internal variable used in macro CHAR_HAS_CATEGORY. */ |
| 54 | Lisp_Object _temp_category_set; | 54 | Lisp_Object _temp_category_set; |
| 55 | 55 | ||
| 56 | /* Make CATEGORY_SET includes (if VAL is t) or excludes (if VAL is | ||
| 57 | nil) CATEGORY. */ | ||
| 58 | #define SET_CATEGORY_SET(category_set, category, val) \ | ||
| 59 | set_category_set (category_set, category, val) | ||
| 60 | static void set_category_set (Lisp_Object, Lisp_Object, Lisp_Object); | ||
| 56 | 61 | ||
| 57 | /* Category set staff. */ | 62 | /* Category set staff. */ |
| 58 | 63 | ||
| @@ -111,7 +116,7 @@ those categories. */) | |||
| 111 | 116 | ||
| 112 | /* Category staff. */ | 117 | /* Category staff. */ |
| 113 | 118 | ||
| 114 | Lisp_Object check_category_table (Lisp_Object table); | 119 | static Lisp_Object check_category_table (Lisp_Object table); |
| 115 | 120 | ||
| 116 | DEFUN ("define-category", Fdefine_category, Sdefine_category, 2, 3, 0, | 121 | DEFUN ("define-category", Fdefine_category, Sdefine_category, 2, 3, 0, |
| 117 | doc: /* Define CATEGORY as a category which is described by DOCSTRING. | 122 | doc: /* Define CATEGORY as a category which is described by DOCSTRING. |
| @@ -185,7 +190,7 @@ DEFUN ("category-table-p", Fcategory_table_p, Scategory_table_p, 1, 1, 0, | |||
| 185 | valid, return TABLE itself, but if not valid, signal an error of | 190 | valid, return TABLE itself, but if not valid, signal an error of |
| 186 | wrong-type-argument. */ | 191 | wrong-type-argument. */ |
| 187 | 192 | ||
| 188 | Lisp_Object | 193 | static Lisp_Object |
| 189 | check_category_table (Lisp_Object table) | 194 | check_category_table (Lisp_Object table) |
| 190 | { | 195 | { |
| 191 | if (NILP (table)) | 196 | if (NILP (table)) |
| @@ -325,7 +330,7 @@ The return value is a string containing those same categories. */) | |||
| 325 | return build_string (str); | 330 | return build_string (str); |
| 326 | } | 331 | } |
| 327 | 332 | ||
| 328 | void | 333 | static void |
| 329 | set_category_set (Lisp_Object category_set, Lisp_Object category, Lisp_Object val) | 334 | set_category_set (Lisp_Object category_set, Lisp_Object category, Lisp_Object val) |
| 330 | { | 335 | { |
| 331 | do { | 336 | do { |