diff options
| author | Dan Nicolaescu | 2009-11-06 06:50:52 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2009-11-06 06:50:52 +0000 |
| commit | d67b4f80dbe514d6e351e7d89c78921c85e7dbe7 (patch) | |
| tree | da83a5dc49e499e330365feaa8123709fdf0cc88 /src/syntax.c | |
| parent | 495bd5ca19cf79a9e91b77bf2e2ea37b8be3ef1f (diff) | |
| download | emacs-d67b4f80dbe514d6e351e7d89c78921c85e7dbe7.tar.gz emacs-d67b4f80dbe514d6e351e7d89c78921c85e7dbe7.zip | |
* xterm.c (syms_of_xterm):
* xselect.c (syms_of_xselect):
* xmenu.c (syms_of_xmenu):
* xfns.c (syms_of_xfns):
* xfaces.c (syms_of_xfaces):
* xdisp.c (syms_of_xdisp):
* window.c (syms_of_window):
* w32fns.c (syms_of_w32fns):
* undo.c (syms_of_undo):
* textprop.c (syms_of_textprop):
* terminal.c (syms_of_terminal):
* syntax.c (syms_of_syntax):
* sound.c (syms_of_sound):
* search.c (syms_of_search):
* print.c (syms_of_print):
* minibuf.c (syms_of_minibuf):
* macros.c (syms_of_macros):
* keymap.c (syms_of_keymap, initial_define_key)
(initial_define_lispy_key):
* keyboard.c (syms_of_keyboard):
* insdel.c (syms_of_insdel):
* image.c (syms_of_image):
* fringe.c (syms_of_fringe):
* frame.c (syms_of_frame):
* fontset.c (syms_of_fontset):
* fns.c (syms_of_fns):
* fns.c (syms_of_fns):
* fileio.c (syms_of_fileio):
* fileio.c (syms_of_fileio):
* eval.c (syms_of_eval):
* doc.c (syms_of_doc):
* dispnew.c (syms_of_display):
* dired.c (syms_of_dired):
* dbusbind.c (syms_of_dbusbind):
* data.c (syms_of_data):
* composite.c (syms_of_composite):
* coding.c (syms_of_coding):
* cmds.c (syms_of_cmds):
* charset.c (define_charset_internal, syms_of_character):
* ccl.c (syms_of_ccl):
* category.c (syms_of_category, init_category_once):
* casetab.c (syms_of_casetab):
* casefiddle.c (syms_of_casefiddle):
* callint.c (syms_of_callint):
* bytecode.c (syms_of_bytecode):
* buffer.c (keys_of_buffer, syms_of_buffer):
* alloc.c (syms_of_alloc):
* process.c (syms_of_process, init_process):
* lread.c (syms_of_lread, init_obarray):
* font.c (build_style_table):
* emacs.c (syms_of_emacs, main): Replace calls to intern with
intern_c_string, calls to make_pure_string with
make_pure_c_string. Use pure_cons instead of Fcons.
* process.c (socket_options): Make it const.
(set_socket_option, init_process): Use a const pointer.
* lread.c (intern_c_string): New function.
(defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
(defvar_int): Uset it. Make the name const char*.
* font.c (struct table_entry): Remove unused member. Make NAMES
constant.
(weight_table, slant_table, width_table): Make constant.
* emacs.c (struct standard_args): Make name and longname constant.
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/syntax.c b/src/syntax.c index 048f0ee6637..203792960ca 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -3332,13 +3332,13 @@ init_syntax_once () | |||
| 3332 | Lisp_Object temp; | 3332 | Lisp_Object temp; |
| 3333 | 3333 | ||
| 3334 | /* This has to be done here, before we call Fmake_char_table. */ | 3334 | /* This has to be done here, before we call Fmake_char_table. */ |
| 3335 | Qsyntax_table = intern ("syntax-table"); | 3335 | Qsyntax_table = intern_c_string ("syntax-table"); |
| 3336 | staticpro (&Qsyntax_table); | 3336 | staticpro (&Qsyntax_table); |
| 3337 | 3337 | ||
| 3338 | /* Intern this now in case it isn't already done. | 3338 | /* Intern_C_String this now in case it isn't already done. |
| 3339 | Setting this variable twice is harmless. | 3339 | Setting this variable twice is harmless. |
| 3340 | But don't staticpro it here--that is done in alloc.c. */ | 3340 | But don't staticpro it here--that is done in alloc.c. */ |
| 3341 | Qchar_table_extra_slots = intern ("char-table-extra-slots"); | 3341 | Qchar_table_extra_slots = intern_c_string ("char-table-extra-slots"); |
| 3342 | 3342 | ||
| 3343 | /* Create objects which can be shared among syntax tables. */ | 3343 | /* Create objects which can be shared among syntax tables. */ |
| 3344 | Vsyntax_code_object = Fmake_vector (make_number (Smax), Qnil); | 3344 | Vsyntax_code_object = Fmake_vector (make_number (Smax), Qnil); |
| @@ -3418,7 +3418,7 @@ init_syntax_once () | |||
| 3418 | void | 3418 | void |
| 3419 | syms_of_syntax () | 3419 | syms_of_syntax () |
| 3420 | { | 3420 | { |
| 3421 | Qsyntax_table_p = intern ("syntax-table-p"); | 3421 | Qsyntax_table_p = intern_c_string ("syntax-table-p"); |
| 3422 | staticpro (&Qsyntax_table_p); | 3422 | staticpro (&Qsyntax_table_p); |
| 3423 | 3423 | ||
| 3424 | staticpro (&Vsyntax_code_object); | 3424 | staticpro (&Vsyntax_code_object); |
| @@ -3431,12 +3431,12 @@ syms_of_syntax () | |||
| 3431 | /* Defined in regex.c */ | 3431 | /* Defined in regex.c */ |
| 3432 | staticpro (&re_match_object); | 3432 | staticpro (&re_match_object); |
| 3433 | 3433 | ||
| 3434 | Qscan_error = intern ("scan-error"); | 3434 | Qscan_error = intern_c_string ("scan-error"); |
| 3435 | staticpro (&Qscan_error); | 3435 | staticpro (&Qscan_error); |
| 3436 | Fput (Qscan_error, Qerror_conditions, | 3436 | Fput (Qscan_error, Qerror_conditions, |
| 3437 | Fcons (Qscan_error, Fcons (Qerror, Qnil))); | 3437 | pure_cons (Qscan_error, pure_cons (Qerror, Qnil))); |
| 3438 | Fput (Qscan_error, Qerror_message, | 3438 | Fput (Qscan_error, Qerror_message, |
| 3439 | build_string ("Scan error")); | 3439 | make_pure_c_string ("Scan error")); |
| 3440 | 3440 | ||
| 3441 | DEFVAR_BOOL ("parse-sexp-ignore-comments", &parse_sexp_ignore_comments, | 3441 | DEFVAR_BOOL ("parse-sexp-ignore-comments", &parse_sexp_ignore_comments, |
| 3442 | doc: /* Non-nil means `forward-sexp', etc., should treat comments as whitespace. */); | 3442 | doc: /* Non-nil means `forward-sexp', etc., should treat comments as whitespace. */); |