summaryrefslogtreecommitdiff
path: root/src/syntax.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2013-08-26 09:20:59 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2013-08-26 09:20:59 +0400
commitc76826d98c8f890d8877c9ed5e7738d3268a70af (patch)
tree4b043f09662c2f8f30bc5ff75757c2521000911c /src/syntax.c
parenteed991017a9d80651febdb5549bc75853945dfbc (diff)
downloademacs-c76826d98c8f890d8877c9ed5e7738d3268a70af.tar.gz
* syntax.c (init_syntax_once): Adjust comment and do an early
initialization of Qchar_table_extra_slots just once... * casetab.c (init_casetab_once): * category.c (init_category_once): * character.c (syms_of_character): * coding.c (syms_of_coding): * xdisp.c (syms_of_xdisp): ...and omit it here.
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/syntax.c b/src/syntax.c
index f5b37303a4a..31eb86faed8 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -3486,9 +3486,9 @@ init_syntax_once (void)
/* This has to be done here, before we call Fmake_char_table. */
DEFSYM (Qsyntax_table, "syntax-table");
- /* Intern_C_String this now in case it isn't already done.
- Setting this variable twice is harmless.
- But don't staticpro it here--that is done in alloc.c. */
+ /* This variable is DEFSYMed in alloc.c and not initialized yet, so
+ intern it here. NOTE: you must guarantee that init_syntax_once
+ is called before all other users of this variable. */
Qchar_table_extra_slots = intern_c_string ("char-table-extra-slots");
/* Create objects which can be shared among syntax tables. */