aboutsummaryrefslogtreecommitdiffstats
path: root/src/lread.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-15 00:48:51 -0700
committerPaul Eggert2011-04-15 00:48:51 -0700
commit4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9 (patch)
treee993b231bb5555c9c961f5d0b20d90ac76f77bbd /src/lread.c
parent1963a2e0bb07cc8dee6d27f972f93d9cfd7c6b2d (diff)
parent49093f601b69d91126aefd328ee8f6bfeb797407 (diff)
downloademacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.tar.gz
emacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.zip
Merge from mainline.
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c43
1 files changed, 16 insertions, 27 deletions
diff --git a/src/lread.c b/src/lread.c
index 8777bc34545..d32f0b6a7e2 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -61,20 +61,21 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
61#endif 61#endif
62 62
63/* hash table read constants */ 63/* hash table read constants */
64Lisp_Object Qhash_table, Qdata; 64static Lisp_Object Qhash_table, Qdata;
65Lisp_Object Qtest, Qsize; 65static Lisp_Object Qtest, Qsize;
66Lisp_Object Qweakness; 66static Lisp_Object Qweakness;
67Lisp_Object Qrehash_size; 67static Lisp_Object Qrehash_size;
68Lisp_Object Qrehash_threshold; 68static Lisp_Object Qrehash_threshold;
69 69
70Lisp_Object Qread_char, Qget_file_char, Qstandard_input, Qcurrent_load_list; 70static Lisp_Object Qread_char, Qget_file_char, Qcurrent_load_list;
71Lisp_Object Qstandard_input;
71Lisp_Object Qvariable_documentation; 72Lisp_Object Qvariable_documentation;
72Lisp_Object Qascii_character, Qload, Qload_file_name; 73static Lisp_Object Qascii_character, Qload, Qload_file_name;
73Lisp_Object Qbackquote, Qcomma, Qcomma_at, Qcomma_dot, Qfunction; 74Lisp_Object Qbackquote, Qcomma, Qcomma_at, Qcomma_dot, Qfunction;
74Lisp_Object Qinhibit_file_name_operation; 75static Lisp_Object Qinhibit_file_name_operation;
75Lisp_Object Qeval_buffer_list; 76static Lisp_Object Qeval_buffer_list;
76Lisp_Object Qlexical_binding; 77static Lisp_Object Qlexical_binding;
77Lisp_Object Qfile_truename, Qdo_after_load_evaluation; /* ACM 2006/5/16 */ 78static Lisp_Object Qfile_truename, Qdo_after_load_evaluation; /* ACM 2006/5/16 */
78 79
79/* Used instead of Qget_file_char while loading *.elc files compiled 80/* Used instead of Qget_file_char while loading *.elc files compiled
80 by Emacs 21 or older. */ 81 by Emacs 21 or older. */
@@ -90,7 +91,7 @@ static Lisp_Object Qload_in_progress;
90 Each member of the list has the form (n . object), and is used to 91 Each member of the list has the form (n . object), and is used to
91 look up the object for the corresponding #n# construct. 92 look up the object for the corresponding #n# construct.
92 It must be set to nil before all top-level calls to read0. */ 93 It must be set to nil before all top-level calls to read0. */
93Lisp_Object read_objects; 94static Lisp_Object read_objects;
94 95
95/* Nonzero means READCHAR should read bytes one by one (not character) 96/* Nonzero means READCHAR should read bytes one by one (not character)
96 when READCHARFUN is Qget_file_char or Qget_emacs_mule_file_char. 97 when READCHARFUN is Qget_file_char or Qget_emacs_mule_file_char.
@@ -3577,11 +3578,11 @@ read_list (int flag, register Lisp_Object readcharfun)
3577 } 3578 }
3578} 3579}
3579 3580
3580Lisp_Object initial_obarray; 3581static Lisp_Object initial_obarray;
3581 3582
3582/* oblookup stores the bucket number here, for the sake of Funintern. */ 3583/* oblookup stores the bucket number here, for the sake of Funintern. */
3583 3584
3584int oblookup_last_bucket_number; 3585static int oblookup_last_bucket_number;
3585 3586
3586static int hash_string (const char *ptr, int len); 3587static int hash_string (const char *ptr, int len);
3587 3588
@@ -3641,18 +3642,6 @@ intern_c_string (const char *str)
3641 3642
3642 return Fintern (make_pure_c_string (str), obarray); 3643 return Fintern (make_pure_c_string (str), obarray);
3643} 3644}
3644
3645/* Create an uninterned symbol with name STR. */
3646
3647Lisp_Object
3648make_symbol (const char *str)
3649{
3650 int len = strlen (str);
3651
3652 return Fmake_symbol (!NILP (Vpurify_flag)
3653 ? make_pure_string (str, len, len, 0)
3654 : make_string (str, len));
3655}
3656 3645
3657DEFUN ("intern", Fintern, Sintern, 1, 2, 0, 3646DEFUN ("intern", Fintern, Sintern, 1, 2, 0,
3658 doc: /* Return the canonical symbol whose name is STRING. 3647 doc: /* Return the canonical symbol whose name is STRING.