aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-04-10 23:28:35 -0700
committerPaul Eggert2011-04-10 23:28:35 -0700
commitd85b608f9c151c6f6d07e12392962e02c6ce528b (patch)
tree77944a07ab2f73bce42337107e1a3a3ced63be8e /src
parent31cd66f38b534c4ca882a1eb8ec51012c431687d (diff)
downloademacs-d85b608f9c151c6f6d07e12392962e02c6ce528b.tar.gz
emacs-d85b608f9c151c6f6d07e12392962e02c6ce528b.zip
* category.c (SET_CATEGORY_SET, set_category_set): Move here.
* category.h: ... from here. * category.c (check_category_table, set_category_set): Now static.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/category.c11
-rw-r--r--src/category.h7
3 files changed, 12 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 45a6e1011ff..dd0166bd0f3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12011-04-11 Paul Eggert <eggert@cs.ucla.edu> 12011-04-11 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * category.c (SET_CATEGORY_SET, set_category_set): Move here.
4 * category.h: ... from here.
5 * category.c (check_category_table, set_category_set): Now static.
6
3 * casetab.c (Vascii_upcase_table, Vascii_eqv_table): Now static. 7 * casetab.c (Vascii_upcase_table, Vascii_eqv_table): Now static.
4 * lisp.h: Remove these decls. 8 * lisp.h: Remove these decls.
5 9
diff --git a/src/category.c b/src/category.c
index 5dcc4894f0e..356801a179c 100644
--- a/src/category.c
+++ b/src/category.c
@@ -53,6 +53,11 @@ static Lisp_Object Qcategory_table, Qcategoryp, Qcategorysetp, Qcategory_table_p
53/* Temporary internal variable used in macro CHAR_HAS_CATEGORY. */ 53/* Temporary internal variable used in macro CHAR_HAS_CATEGORY. */
54Lisp_Object _temp_category_set; 54Lisp_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)
60static 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
114Lisp_Object check_category_table (Lisp_Object table); 119static Lisp_Object check_category_table (Lisp_Object table);
115 120
116DEFUN ("define-category", Fdefine_category, Sdefine_category, 2, 3, 0, 121DEFUN ("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
188Lisp_Object 193static Lisp_Object
189check_category_table (Lisp_Object table) 194check_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
328void 333static void
329set_category_set (Lisp_Object category_set, Lisp_Object category, Lisp_Object val) 334set_category_set (Lisp_Object category_set, Lisp_Object category, Lisp_Object val)
330{ 335{
331 do { 336 do {
diff --git a/src/category.h b/src/category.h
index b279f3d9c59..eacd89ce2cb 100644
--- a/src/category.h
+++ b/src/category.h
@@ -67,11 +67,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
67/* Return a new empty category set. */ 67/* Return a new empty category set. */
68#define MAKE_CATEGORY_SET (Fmake_bool_vector (make_number (128), Qnil)) 68#define MAKE_CATEGORY_SET (Fmake_bool_vector (make_number (128), Qnil))
69 69
70/* Make CATEGORY_SET includes (if VAL is t) or excludes (if VAL is
71 nil) CATEGORY. */
72#define SET_CATEGORY_SET(category_set, category, val) \
73 (set_category_set (category_set, category, val))
74
75#define CHECK_CATEGORY_SET(x) \ 70#define CHECK_CATEGORY_SET(x) \
76 CHECK_TYPE (CATEGORY_SET_P (x), Qcategorysetp, x) 71 CHECK_TYPE (CATEGORY_SET_P (x), Qcategorysetp, x)
77 72
@@ -114,5 +109,3 @@ extern Lisp_Object _temp_category_set;
114 && word_boundary_p (c1, c2)) 109 && word_boundary_p (c1, c2))
115 110
116extern int word_boundary_p (int, int); 111extern int word_boundary_p (int, int);
117extern void set_category_set (Lisp_Object, Lisp_Object, Lisp_Object);
118