Mercurial > hg > xemacs-beta
annotate src/general-slots.h @ 5320:31be2a3d121d
Move Qcount, Q_default, Q_test to general-slots.h; add SYMBOL_KEYWORD_GENERAL()
2010-12-30 Aidan Kehoe <kehoea@parhasard.net>
* elhash.c (syms_of_elhash):
* chartab.c (syms_of_chartab):
* abbrev.c (syms_of_abbrev):
* general-slots.h:
Move Qcount, Q_default, Q_test to general-slots.h, they're about
to be used by other files. Rename Q_default to Q_default_, for the
sake of the PARSE_KEYWORDS macro (given that default is a reserved
identifier in C). Add SYMBOL_KEYWORD_GENERAL(), analogous to
SYMBOL_GENERAL() to make this easier.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Thu, 30 Dec 2010 00:50:10 +0000 |
parents | 18c0b5909d16 |
children | 6506fcb40fcf |
rev | line source |
---|---|
442 | 1 /* Commonly-used symbols -- include file |
2 Copyright (C) 1995 Sun Microsystems. | |
5157
1fae11d56ad2
redo memory-usage mechanism, add way of dynamically initializing Lisp objects
Ben Wing <ben@xemacs.org>
parents:
5084
diff
changeset
|
3 Copyright (C) 1995, 1996, 2000, 2001, 2002, 2003, 2010 Ben Wing. |
442 | 4 |
5 This file is part of XEmacs. | |
6 | |
7 XEmacs is free software; you can redistribute it and/or modify it | |
8 under the terms of the GNU General Public License as published by the | |
9 Free Software Foundation; either version 2, or (at your option) any | |
10 later version. | |
11 | |
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
18 along with XEmacs; see the file COPYING. If not, write to | |
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 Boston, MA 02111-1307, USA. */ | |
21 | |
22 /* Synched up with: Not in FSF. */ | |
23 | |
24 /* The purpose of this file is as a central place to stick symbols | |
25 that don't have any obvious connection to any particular module | |
26 and might be used in many different contexts. | |
27 | |
1632 | 28 Four types of declarations are allowed here: |
442 | 29 |
30 SYMBOL (Qfoo); declares a symbol "foo" | |
1632 | 31 SYMBOL_MODULE_API (Qfoo); declares a symbol "foo" that is visible to modules |
442 | 32 SYMBOL_KEYWORD (Q_foo); declares a keyword symbol ":foo" |
33 SYMBOL_GENERAL (Qfoo, "bar"); declares a symbol named "bar" but stored in | |
34 the variable Qfoo | |
5320
31be2a3d121d
Move Qcount, Q_default, Q_test to general-slots.h; add SYMBOL_KEYWORD_GENERAL()
Aidan Kehoe <kehoea@parhasard.net>
parents:
5222
diff
changeset
|
35 SYMBOL_KEYWORD_GENERAL (Q_foo_, ":bar"); declares a keyword named ":bar" |
31be2a3d121d
Move Qcount, Q_default, Q_test to general-slots.h; add SYMBOL_KEYWORD_GENERAL()
Aidan Kehoe <kehoea@parhasard.net>
parents:
5222
diff
changeset
|
36 but stored in the variable Q_foo_. |
442 | 37 |
38 To sort the crap in this file, use the following: | |
39 | |
40 (sort-regexp-fields nil | |
41 "^.*(Q_?\\(.*\\));$" "\\1" | |
42 (progn | |
43 (search-forward "SYMBOL") | |
44 (match-beginning 0)) | |
45 (point-max)) | |
46 */ | |
47 | |
48 SYMBOL (Qabort); | |
49 SYMBOL_KEYWORD (Q_accelerator); | |
50 SYMBOL_KEYWORD (Q_active); | |
51 SYMBOL (Qafter); | |
52 SYMBOL (Qall); | |
5084
6afe991b8135
Add a PARSE_KEYWORDS macro, use it in #'make-hash-table.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4995
diff
changeset
|
53 SYMBOL_KEYWORD (Q_allow_other_keys); |
442 | 54 SYMBOL (Qand); |
55 SYMBOL (Qappend); | |
771 | 56 SYMBOL (Qascii); |
442 | 57 SYMBOL (Qassoc); |
58 SYMBOL (Qat); | |
59 SYMBOL (Qautodetect); | |
60 SYMBOL (Qbad_variable); | |
61 SYMBOL (Qbefore); | |
1983 | 62 SYMBOL (Qbigfloat); |
442 | 63 SYMBOL (Qbinary); |
64 SYMBOL (Qbitmap); | |
65 SYMBOL (Qboolean); | |
66 SYMBOL_KEYWORD (Q_border); | |
67 SYMBOL (Qbottom); | |
68 SYMBOL (Qbottom_margin); | |
69 SYMBOL (Qbuffer); | |
1318 | 70 SYMBOL (Qbuffers); |
442 | 71 SYMBOL (Qbuilt_in); |
72 SYMBOL (Qbutton); | |
73 SYMBOL_KEYWORD (Q_buttons); | |
74 SYMBOL_KEYWORD (Q_callback); | |
75 SYMBOL_KEYWORD (Q_callback_ex); | |
76 SYMBOL (Qcancel); | |
5182
2e528066e2fc
Move #'sort*, #'fill, #'merge to C from cl-seq.el.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5157
diff
changeset
|
77 SYMBOL (Qcar); |
442 | 78 SYMBOL (Qcategory); |
3439 | 79 SYMBOL (Qccl_program); |
442 | 80 SYMBOL (Qcenter); |
771 | 81 SYMBOL (Qchain); |
1333 | 82 SYMBOL (Qchange); |
442 | 83 SYMBOL (Qchannel); |
84 SYMBOL (Qchar); | |
85 SYMBOL (Qcharacter); | |
86 SYMBOL (Qchars); | |
771 | 87 SYMBOL (Qcode_page); |
88 SYMBOL (Qcoding_system); | |
4995
8431b52e43b1
Move the various map* functions to C; add #'map-into.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4691
diff
changeset
|
89 SYMBOL (Qcoerce); |
442 | 90 SYMBOL (Qcolor); |
91 SYMBOL (Qcolumns); | |
92 SYMBOL (Qcommand); | |
93 SYMBOL_KEYWORD (Q_config); | |
94 SYMBOL (Qconsole); | |
771 | 95 SYMBOL (Qcontrol_1); |
442 | 96 SYMBOL (Qcopies); |
5320
31be2a3d121d
Move Qcount, Q_default, Q_test to general-slots.h; add SYMBOL_KEYWORD_GENERAL()
Aidan Kehoe <kehoea@parhasard.net>
parents:
5222
diff
changeset
|
97 SYMBOL (Qcount); |
1927 | 98 SYMBOL_MODULE_API (Qcritical); |
442 | 99 SYMBOL (Qctext); |
771 | 100 SYMBOL (Qcurrent); |
442 | 101 SYMBOL (Qcursor); |
102 SYMBOL (Qdata); | |
5222
18c0b5909d16
Use keywords in structure syntax; new #define, NEED_TO_HANDLE_21_4_CODE 1
Aidan Kehoe <kehoea@parhasard.net>
parents:
5207
diff
changeset
|
103 SYMBOL_KEYWORD (Q_data); |
903 | 104 SYMBOL (Qdde); |
442 | 105 SYMBOL (Qdead); |
793 | 106 SYMBOL (Qdebug); |
442 | 107 SYMBOL (Qdefault); |
5320
31be2a3d121d
Move Qcount, Q_default, Q_test to general-slots.h; add SYMBOL_KEYWORD_GENERAL()
Aidan Kehoe <kehoea@parhasard.net>
parents:
5222
diff
changeset
|
108 /* We name the C variable corresponding to the keyword Q_default_, not |
31be2a3d121d
Move Qcount, Q_default, Q_test to general-slots.h; add SYMBOL_KEYWORD_GENERAL()
Aidan Kehoe <kehoea@parhasard.net>
parents:
5222
diff
changeset
|
109 Q_default, to allow it to be useful with PARSE_KEYWORDS (). */ |
31be2a3d121d
Move Qcount, Q_default, Q_test to general-slots.h; add SYMBOL_KEYWORD_GENERAL()
Aidan Kehoe <kehoea@parhasard.net>
parents:
5222
diff
changeset
|
110 SYMBOL_KEYWORD_GENERAL (Q_default_, ":default"); |
1927 | 111 SYMBOL_MODULE_API (Qdelete); |
442 | 112 SYMBOL (Qdelq); |
771 | 113 SYMBOL (Qdescription); |
442 | 114 SYMBOL_KEYWORD (Q_descriptor); |
115 SYMBOL (Qdevice); | |
1318 | 116 SYMBOL (Qdevices); |
442 | 117 SYMBOL_KEYWORD (Q_device); |
118 SYMBOL (Qdialog); | |
673 | 119 SYMBOL (Qdirectory); |
442 | 120 SYMBOL (Qdimension); |
121 SYMBOL (Qdisplay); | |
122 SYMBOL (Qdoc_string); | |
771 | 123 SYMBOL (Qdocumentation); |
442 | 124 SYMBOL (Qduplex); |
793 | 125 SYMBOL (Qemergency); |
442 | 126 SYMBOL (Qempty); |
5182
2e528066e2fc
Move #'sort*, #'fill, #'merge to C from cl-seq.el.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5157
diff
changeset
|
127 SYMBOL_KEYWORD (Q_end); |
3439 | 128 SYMBOL (Qencode_as_utf_8); |
442 | 129 SYMBOL (Qeval); |
853 | 130 SYMBOL (Qevent); |
442 | 131 SYMBOL (Qextents); |
563 | 132 SYMBOL (Qexternal); |
442 | 133 SYMBOL (Qface); |
1318 | 134 SYMBOL (Qfaces); |
442 | 135 SYMBOL (Qfallback); |
136 SYMBOL (Qfile); | |
1632 | 137 SYMBOL_MODULE_API (Qfile_name); |
442 | 138 SYMBOL_KEYWORD (Q_filter); |
3659 | 139 SYMBOL (Qfinal); |
1983 | 140 SYMBOL (Qfixnum); |
5193
41ac827cb71b
fix cygwin compile, fix warning and style in elhash.c
Ben Wing <ben@xemacs.org>
parents:
5191
diff
changeset
|
141 SYMBOL_MODULE_API (Qfixnump); |
1983 | 142 SYMBOL (Qfloat); |
442 | 143 SYMBOL (Qfont); |
144 SYMBOL (Qframe); | |
1318 | 145 SYMBOL (Qframes); |
442 | 146 SYMBOL (Qfrom_page); |
4691
3ba90c659d01
Move Qfrom_unicode to general-slots.h, fix the native Win32 build.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4690
diff
changeset
|
147 SYMBOL (Qfrom_unicode); |
442 | 148 SYMBOL (Qfull_assoc); |
149 SYMBOL (Qfuncall); | |
150 SYMBOL (Qfunction); | |
1333 | 151 SYMBOL (Qgarbage_collection); |
442 | 152 SYMBOL (Qgeneric); |
153 SYMBOL (Qgeometry); | |
154 SYMBOL (Qglobal); | |
853 | 155 SYMBOL (Qglyph); |
462 | 156 SYMBOL (Qgtk); |
853 | 157 SYMBOL (Qgui_item); |
442 | 158 SYMBOL (Qgutter); |
159 SYMBOL (Qheight); | |
160 SYMBOL_KEYWORD (Q_height); | |
161 SYMBOL (Qhelp); | |
771 | 162 SYMBOL (Qhigh); |
442 | 163 SYMBOL (Qhighlight); |
164 SYMBOL (Qhorizontal); | |
165 SYMBOL (Qicon); | |
166 SYMBOL (Qid); | |
167 SYMBOL (Qignore); | |
3659 | 168 SYMBOL (Qinitial); |
442 | 169 SYMBOL (Qimage); |
170 SYMBOL_KEYWORD (Q_image); | |
171 SYMBOL_KEYWORD (Q_included); | |
172 SYMBOL (Qinfo); | |
173 SYMBOL (Qinherit); | |
174 SYMBOL_KEYWORD (Q_initial_focus); | |
175 SYMBOL (Qinteger); | |
176 SYMBOL (Qinternal); | |
177 SYMBOL_KEYWORD (Q_items); | |
178 SYMBOL_KEYWORD (Q_justify); | |
863 | 179 SYMBOL_KEYWORD (Q_vertically_justify); |
180 SYMBOL_KEYWORD (Q_horizontally_justify); | |
5182
2e528066e2fc
Move #'sort*, #'fill, #'merge to C from cl-seq.el.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5157
diff
changeset
|
181 SYMBOL_KEYWORD (Q_key); |
442 | 182 SYMBOL (Qkey); |
183 SYMBOL (Qkey_assoc); | |
2842 | 184 SYMBOL (Qkey_mapping); |
442 | 185 SYMBOL_KEYWORD (Q_key_sequence); |
186 SYMBOL (Qkeyboard); | |
187 SYMBOL (Qkeymap); | |
188 SYMBOL_KEYWORD (Q_keys); | |
189 SYMBOL_KEYWORD (Q_label); | |
190 SYMBOL (Qlandscape); | |
191 SYMBOL (Qlast_command); | |
192 SYMBOL (Qleft); | |
193 SYMBOL (Qleft_margin); | |
194 SYMBOL (Qlet); | |
771 | 195 SYMBOL (Qlevel); |
442 | 196 SYMBOL (Qlist); |
771 | 197 SYMBOL (Qlittle_endian); |
198 SYMBOL (Qlocale); | |
199 SYMBOL (Qlow); | |
5182
2e528066e2fc
Move #'sort*, #'fill, #'merge to C from cl-seq.el.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5157
diff
changeset
|
200 SYMBOL_GENERAL (Qlss, "<"); |
442 | 201 SYMBOL (Qmagic); |
202 SYMBOL_KEYWORD (Q_margin_width); | |
203 SYMBOL (Qmarkers); | |
204 SYMBOL (Qmax); | |
205 SYMBOL (Qmemory); | |
206 SYMBOL (Qmenubar); | |
207 SYMBOL (Qmessage); | |
208 SYMBOL_GENERAL (Qminus, "-"); | |
209 SYMBOL (Qmodifiers); | |
210 SYMBOL (Qmotion); | |
211 SYMBOL (Qmsprinter); | |
212 SYMBOL (Qmswindows); | |
213 SYMBOL (Qname); | |
1632 | 214 SYMBOL_MODULE_API (Qnative); |
442 | 215 SYMBOL (Qnatnum); |
216 SYMBOL (Qno); | |
217 SYMBOL (Qnone); | |
218 SYMBOL (Qnot); | |
219 SYMBOL (Qnothing); | |
1632 | 220 SYMBOL_MODULE_API (Qnotice); |
442 | 221 SYMBOL (Qobject); |
222 SYMBOL (Qok); | |
223 SYMBOL (Qold_assoc); | |
224 SYMBOL (Qold_delete); | |
225 SYMBOL (Qold_delq); | |
226 SYMBOL (Qold_rassoc); | |
227 SYMBOL (Qold_rassq); | |
228 SYMBOL (Qonly); | |
229 SYMBOL (Qor); | |
230 SYMBOL (Qorientation); | |
231 SYMBOL_KEYWORD (Q_orientation); | |
232 SYMBOL (Qother); | |
233 SYMBOL (Qpage_setup); | |
510 | 234 SYMBOL (Qpages); |
442 | 235 SYMBOL (Qpeer); |
236 SYMBOL (Qpointer); | |
237 SYMBOL (Qpopup); | |
238 SYMBOL (Qportrait); | |
239 SYMBOL (Qprepend); | |
240 SYMBOL (Qprint); | |
241 SYMBOL (Qprinter); | |
242 SYMBOL_KEYWORD (Q_printer_settings); | |
243 SYMBOL (Qprocess); | |
244 SYMBOL_KEYWORD (Q_properties); | |
245 SYMBOL (Qprovide); | |
4690
257b468bf2ca
Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3767
diff
changeset
|
246 SYMBOL (Qquery_coding_clear_highlights); |
257b468bf2ca
Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3767
diff
changeset
|
247 SYMBOL (Qquery_coding_warning_face); |
442 | 248 SYMBOL (Qquestion); |
249 SYMBOL_KEYWORD (Q_question); | |
5207
1096ef427b56
Error on too many arguments to #'function, #'quote.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5193
diff
changeset
|
250 SYMBOL (Qquote); |
442 | 251 SYMBOL (Qradio); |
252 SYMBOL (Qrassoc); | |
253 SYMBOL (Qrassq); | |
1983 | 254 SYMBOL (Qratio); |
1318 | 255 SYMBOL (Qredisplay); |
442 | 256 SYMBOL (Qremove_all); |
257 SYMBOL (Qrequire); | |
258 SYMBOL (Qresource); | |
259 SYMBOL (Qretry); | |
260 SYMBOL (Qreturn); | |
261 SYMBOL (Qreverse); | |
262 SYMBOL (Qright); | |
263 SYMBOL (Qright_margin); | |
1927 | 264 SYMBOL_MODULE_API (Qsearch); |
442 | 265 SYMBOL (Qselected); |
266 SYMBOL_KEYWORD (Q_selected); | |
510 | 267 SYMBOL (Qselection); |
442 | 268 SYMBOL (Qset_glyph_image); |
269 SYMBOL (Qsignal); | |
1927 | 270 SYMBOL_MODULE_API (Qsimple); |
442 | 271 SYMBOL (Qsize); |
563 | 272 SYMBOL (Qsound); |
442 | 273 SYMBOL (Qspace); |
274 SYMBOL (Qspecifier); | |
275 SYMBOL (Qstandard); | |
5182
2e528066e2fc
Move #'sort*, #'fill, #'merge to C from cl-seq.el.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5157
diff
changeset
|
276 SYMBOL_KEYWORD (Q_start); |
442 | 277 SYMBOL (Qstream); |
278 SYMBOL (Qstring); | |
5320
31be2a3d121d
Move Qcount, Q_default, Q_test to general-slots.h; add SYMBOL_KEYWORD_GENERAL()
Aidan Kehoe <kehoea@parhasard.net>
parents:
5222
diff
changeset
|
279 SYMBOL (Qstring_match); |
442 | 280 SYMBOL_KEYWORD (Q_style); |
281 SYMBOL_KEYWORD (Q_suffix); | |
771 | 282 SYMBOL (Qsubtype); |
4690
257b468bf2ca
Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3767
diff
changeset
|
283 SYMBOL (Qsucceeded); |
442 | 284 SYMBOL (Qsymbol); |
285 SYMBOL (Qsyntax); | |
771 | 286 SYMBOL (Qsystem_default); |
442 | 287 SYMBOL (Qterminal); |
288 SYMBOL (Qtest); | |
5320
31be2a3d121d
Move Qcount, Q_default, Q_test to general-slots.h; add SYMBOL_KEYWORD_GENERAL()
Aidan Kehoe <kehoea@parhasard.net>
parents:
5222
diff
changeset
|
289 SYMBOL_KEYWORD (Q_test); |
442 | 290 SYMBOL (Qtext); |
291 SYMBOL_KEYWORD (Q_text); | |
292 SYMBOL (Qthis_command); | |
293 SYMBOL (Qtimeout); | |
294 SYMBOL (Qtimestamp); | |
295 SYMBOL_KEYWORD (Q_title); | |
296 SYMBOL (Qto_page); | |
297 SYMBOL (Qtoggle); | |
298 SYMBOL (Qtoolbar); | |
299 SYMBOL (Qtop); | |
300 SYMBOL (Qtop_margin); | |
301 SYMBOL (Qtty); | |
302 SYMBOL (Qtype); | |
5222
18c0b5909d16
Use keywords in structure syntax; new #define, NEED_TO_HANDLE_21_4_CODE 1
Aidan Kehoe <kehoea@parhasard.net>
parents:
5207
diff
changeset
|
303 SYMBOL_KEYWORD (Q_type); |
442 | 304 SYMBOL (Qundecided); |
305 SYMBOL (Qundefined); | |
4690
257b468bf2ca
Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3767
diff
changeset
|
306 SYMBOL (Qunencodable); |
257b468bf2ca
Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3767
diff
changeset
|
307 SYMBOL (Qinvalid_sequence); |
442 | 308 SYMBOL (Qunimplemented); |
3659 | 309 SYMBOL (Qunicode_registries); |
3767 | 310 SYMBOL (Qunicode_type); |
771 | 311 SYMBOL (Quser_default); |
442 | 312 SYMBOL_KEYWORD (Q_value); |
313 SYMBOL (Qvalue_assoc); | |
314 SYMBOL (Qvertical); | |
315 SYMBOL (Qwarning); | |
316 SYMBOL (Qwidget); | |
317 SYMBOL (Qwidth); | |
318 SYMBOL_KEYWORD (Q_width); | |
319 SYMBOL (Qwindow); | |
1318 | 320 SYMBOL (Qwindows); |
321 SYMBOL (Qwindow_id); | |
442 | 322 SYMBOL (Qwindow_system); |
323 SYMBOL (Qx); | |
324 SYMBOL (Qy); | |
325 SYMBOL (Qyes); |