diff options
| author | Juanma Barranquero | 2011-06-24 23:25:22 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-06-24 23:25:22 +0200 |
| commit | cd3520a41df21d80a9d894c58af2daba23c8dd24 (patch) | |
| tree | 945eaef322c65471833954ddce161a7a913ee3c8 /src/lread.c | |
| parent | 7d0da90e7b98f5c09df82be9985cc27d30adea07 (diff) | |
| download | emacs-cd3520a41df21d80a9d894c58af2daba23c8dd24.tar.gz emacs-cd3520a41df21d80a9d894c58af2daba23c8dd24.zip | |
Move DEFSYM to lisp.h and use everywhere.
Diffstat (limited to 'src/lread.c')
| -rw-r--r-- | src/lread.c | 104 |
1 files changed, 31 insertions, 73 deletions
diff --git a/src/lread.c b/src/lread.c index 06b957cf392..f937fa39f0f 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -3983,8 +3983,7 @@ init_obarray (void) | |||
| 3983 | /* Qt is correct even if CANNOT_DUMP. loadup.el will set to nil at end. */ | 3983 | /* Qt is correct even if CANNOT_DUMP. loadup.el will set to nil at end. */ |
| 3984 | Vpurify_flag = Qt; | 3984 | Vpurify_flag = Qt; |
| 3985 | 3985 | ||
| 3986 | Qvariable_documentation = intern_c_string ("variable-documentation"); | 3986 | DEFSYM (Qvariable_documentation, "variable-documentation"); |
| 3987 | staticpro (&Qvariable_documentation); | ||
| 3988 | 3987 | ||
| 3989 | read_buffer_size = 100 + MAX_MULTIBYTE_LENGTH; | 3988 | read_buffer_size = 100 + MAX_MULTIBYTE_LENGTH; |
| 3990 | read_buffer = (char *) xmalloc (read_buffer_size); | 3989 | read_buffer = (char *) xmalloc (read_buffer_size); |
| @@ -4392,8 +4391,7 @@ customize `jka-compr-load-suffixes' rather than the present variable. */); | |||
| 4392 | 4391 | ||
| 4393 | DEFVAR_BOOL ("load-in-progress", load_in_progress, | 4392 | DEFVAR_BOOL ("load-in-progress", load_in_progress, |
| 4394 | doc: /* Non-nil if inside of `load'. */); | 4393 | doc: /* Non-nil if inside of `load'. */); |
| 4395 | Qload_in_progress = intern_c_string ("load-in-progress"); | 4394 | DEFSYM (Qload_in_progress, "load-in-progress"); |
| 4396 | staticpro (&Qload_in_progress); | ||
| 4397 | 4395 | ||
| 4398 | DEFVAR_LISP ("after-load-alist", Vafter_load_alist, | 4396 | DEFVAR_LISP ("after-load-alist", Vafter_load_alist, |
| 4399 | doc: /* An alist of expressions to be evalled when particular files are loaded. | 4397 | doc: /* An alist of expressions to be evalled when particular files are loaded. |
| @@ -4524,67 +4522,34 @@ This variable is automatically set from the file variables of an interpreted | |||
| 4524 | DEFVAR_LISP ("old-style-backquotes", Vold_style_backquotes, | 4522 | DEFVAR_LISP ("old-style-backquotes", Vold_style_backquotes, |
| 4525 | doc: /* Set to non-nil when `read' encounters an old-style backquote. */); | 4523 | doc: /* Set to non-nil when `read' encounters an old-style backquote. */); |
| 4526 | Vold_style_backquotes = Qnil; | 4524 | Vold_style_backquotes = Qnil; |
| 4527 | Qold_style_backquotes = intern_c_string ("old-style-backquotes"); | 4525 | DEFSYM (Qold_style_backquotes, "old-style-backquotes"); |
| 4528 | staticpro (&Qold_style_backquotes); | ||
| 4529 | 4526 | ||
| 4530 | /* Vsource_directory was initialized in init_lread. */ | 4527 | /* Vsource_directory was initialized in init_lread. */ |
| 4531 | 4528 | ||
| 4532 | load_descriptor_list = Qnil; | 4529 | load_descriptor_list = Qnil; |
| 4533 | staticpro (&load_descriptor_list); | 4530 | staticpro (&load_descriptor_list); |
| 4534 | 4531 | ||
| 4535 | Qcurrent_load_list = intern_c_string ("current-load-list"); | 4532 | DEFSYM (Qcurrent_load_list, "current-load-list"); |
| 4536 | staticpro (&Qcurrent_load_list); | 4533 | DEFSYM (Qstandard_input, "standard-input"); |
| 4537 | 4534 | DEFSYM (Qread_char, "read-char"); | |
| 4538 | Qstandard_input = intern_c_string ("standard-input"); | 4535 | DEFSYM (Qget_file_char, "get-file-char"); |
| 4539 | staticpro (&Qstandard_input); | 4536 | DEFSYM (Qget_emacs_mule_file_char, "get-emacs-mule-file-char"); |
| 4540 | 4537 | DEFSYM (Qload_force_doc_strings, "load-force-doc-strings"); | |
| 4541 | Qread_char = intern_c_string ("read-char"); | 4538 | |
| 4542 | staticpro (&Qread_char); | 4539 | DEFSYM (Qbackquote, "`"); |
| 4543 | 4540 | DEFSYM (Qcomma, ","); | |
| 4544 | Qget_file_char = intern_c_string ("get-file-char"); | 4541 | DEFSYM (Qcomma_at, ",@"); |
| 4545 | staticpro (&Qget_file_char); | 4542 | DEFSYM (Qcomma_dot, ",."); |
| 4546 | 4543 | ||
| 4547 | Qget_emacs_mule_file_char = intern_c_string ("get-emacs-mule-file-char"); | 4544 | DEFSYM (Qinhibit_file_name_operation, "inhibit-file-name-operation"); |
| 4548 | staticpro (&Qget_emacs_mule_file_char); | 4545 | DEFSYM (Qascii_character, "ascii-character"); |
| 4549 | 4546 | DEFSYM (Qfunction, "function"); | |
| 4550 | Qload_force_doc_strings = intern_c_string ("load-force-doc-strings"); | 4547 | DEFSYM (Qload, "load"); |
| 4551 | staticpro (&Qload_force_doc_strings); | 4548 | DEFSYM (Qload_file_name, "load-file-name"); |
| 4552 | 4549 | DEFSYM (Qeval_buffer_list, "eval-buffer-list"); | |
| 4553 | Qbackquote = intern_c_string ("`"); | 4550 | DEFSYM (Qfile_truename, "file-truename"); |
| 4554 | staticpro (&Qbackquote); | 4551 | DEFSYM (Qdir_ok, "dir-ok"); |
| 4555 | Qcomma = intern_c_string (","); | 4552 | DEFSYM (Qdo_after_load_evaluation, "do-after-load-evaluation"); |
| 4556 | staticpro (&Qcomma); | ||
| 4557 | Qcomma_at = intern_c_string (",@"); | ||
| 4558 | staticpro (&Qcomma_at); | ||
| 4559 | Qcomma_dot = intern_c_string (",."); | ||
| 4560 | staticpro (&Qcomma_dot); | ||
| 4561 | |||
| 4562 | Qinhibit_file_name_operation = intern_c_string ("inhibit-file-name-operation"); | ||
| 4563 | staticpro (&Qinhibit_file_name_operation); | ||
| 4564 | |||
| 4565 | Qascii_character = intern_c_string ("ascii-character"); | ||
| 4566 | staticpro (&Qascii_character); | ||
| 4567 | |||
| 4568 | Qfunction = intern_c_string ("function"); | ||
| 4569 | staticpro (&Qfunction); | ||
| 4570 | |||
| 4571 | Qload = intern_c_string ("load"); | ||
| 4572 | staticpro (&Qload); | ||
| 4573 | |||
| 4574 | Qload_file_name = intern_c_string ("load-file-name"); | ||
| 4575 | staticpro (&Qload_file_name); | ||
| 4576 | |||
| 4577 | Qeval_buffer_list = intern_c_string ("eval-buffer-list"); | ||
| 4578 | staticpro (&Qeval_buffer_list); | ||
| 4579 | |||
| 4580 | Qfile_truename = intern_c_string ("file-truename"); | ||
| 4581 | staticpro (&Qfile_truename) ; | ||
| 4582 | |||
| 4583 | Qdir_ok = intern_c_string ("dir-ok"); | ||
| 4584 | staticpro (&Qdir_ok); | ||
| 4585 | |||
| 4586 | Qdo_after_load_evaluation = intern_c_string ("do-after-load-evaluation"); | ||
| 4587 | staticpro (&Qdo_after_load_evaluation) ; | ||
| 4588 | 4553 | ||
| 4589 | staticpro (&dump_path); | 4554 | staticpro (&dump_path); |
| 4590 | 4555 | ||
| @@ -4596,18 +4561,11 @@ This variable is automatically set from the file variables of an interpreted | |||
| 4596 | Vloads_in_progress = Qnil; | 4561 | Vloads_in_progress = Qnil; |
| 4597 | staticpro (&Vloads_in_progress); | 4562 | staticpro (&Vloads_in_progress); |
| 4598 | 4563 | ||
| 4599 | Qhash_table = intern_c_string ("hash-table"); | 4564 | DEFSYM (Qhash_table, "hash-table"); |
| 4600 | staticpro (&Qhash_table); | 4565 | DEFSYM (Qdata, "data"); |
| 4601 | Qdata = intern_c_string ("data"); | 4566 | DEFSYM (Qtest, "test"); |
| 4602 | staticpro (&Qdata); | 4567 | DEFSYM (Qsize, "size"); |
| 4603 | Qtest = intern_c_string ("test"); | 4568 | DEFSYM (Qweakness, "weakness"); |
| 4604 | staticpro (&Qtest); | 4569 | DEFSYM (Qrehash_size, "rehash-size"); |
| 4605 | Qsize = intern_c_string ("size"); | 4570 | DEFSYM (Qrehash_threshold, "rehash-threshold"); |
| 4606 | staticpro (&Qsize); | ||
| 4607 | Qweakness = intern_c_string ("weakness"); | ||
| 4608 | staticpro (&Qweakness); | ||
| 4609 | Qrehash_size = intern_c_string ("rehash-size"); | ||
| 4610 | staticpro (&Qrehash_size); | ||
| 4611 | Qrehash_threshold = intern_c_string ("rehash-threshold"); | ||
| 4612 | staticpro (&Qrehash_threshold); | ||
| 4613 | } | 4571 | } |