summaryrefslogtreecommitdiff
path: root/src/lread.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-04-13 18:41:38 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-04-13 18:41:38 -0700
commit1e3890d19599e8c4736e74a11f95b70b6f11f72b (patch)
tree907e73f88f02344f54671a5bf050cdaf2e40e546 /src/lread.c
parent8a1414fa0fa4706b59589d11f3deaf6199e9a305 (diff)
downloademacs-1e3890d19599e8c4736e74a11f95b70b6f11f72b.tar.gz
emacs-1e3890d19599e8c4736e74a11f95b70b6f11f72b.tar.bz2
emacs-1e3890d19599e8c4736e74a11f95b70b6f11f72b.zip
* lread.c: Make symbols static if they're not exported.
(read_objects, initial_obarray, oblookup_last_bucket_number): Now static. (make_symbol): Remove; unused. * lisp.h (initial_obarray, make_symbol): Remove decls.
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/lread.c b/src/lread.c
index 2d383350ec1..fdb477c0218 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -91,7 +91,7 @@ static Lisp_Object Qload_in_progress;
Each member of the list has the form (n . object), and is used to
look up the object for the corresponding #n# construct.
It must be set to nil before all top-level calls to read0. */
-Lisp_Object read_objects;
+static Lisp_Object read_objects;
/* Nonzero means READCHAR should read bytes one by one (not character)
when READCHARFUN is Qget_file_char or Qget_emacs_mule_file_char.
@@ -3578,11 +3578,11 @@ read_list (int flag, register Lisp_Object readcharfun)
}
}
-Lisp_Object initial_obarray;
+static Lisp_Object initial_obarray;
/* oblookup stores the bucket number here, for the sake of Funintern. */
-int oblookup_last_bucket_number;
+static int oblookup_last_bucket_number;
static int hash_string (const char *ptr, int len);
@@ -3642,18 +3642,6 @@ intern_c_string (const char *str)
return Fintern (make_pure_c_string (str), obarray);
}
-
-/* Create an uninterned symbol with name STR. */
-
-Lisp_Object
-make_symbol (const char *str)
-{
- int len = strlen (str);
-
- return Fmake_symbol (!NILP (Vpurify_flag)
- ? make_pure_string (str, len, len, 0)
- : make_string (str, len));
-}
DEFUE ("intern", Fintern, Sintern, 1, 2, 0,
doc: /* Return the canonical symbol whose name is STRING.