diff options
| author | Ken Raeburn | 2002-05-20 08:05:43 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2002-05-20 08:05:43 +0000 |
| commit | c06583e1096f2148e031ed3657ab3e2b8c2ca18c (patch) | |
| tree | a323ce418df6ada6497023f0d6f6d035b8586271 /src | |
| parent | 29c6805db2051f7696ec1423d0a6a9893d0fdf72 (diff) | |
| download | emacs-c06583e1096f2148e031ed3657ab3e2b8c2ca18c.tar.gz emacs-c06583e1096f2148e031ed3657ab3e2b8c2ca18c.zip | |
* fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash): Use
SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 18 |
1 files changed, 9 insertions, 9 deletions
| @@ -219,9 +219,9 @@ Symbols are also allowed; their print names are used instead. */) | |||
| 219 | register Lisp_Object s1, s2; | 219 | register Lisp_Object s1, s2; |
| 220 | { | 220 | { |
| 221 | if (SYMBOLP (s1)) | 221 | if (SYMBOLP (s1)) |
| 222 | XSETSTRING (s1, XSYMBOL (s1)->name); | 222 | s1 = SYMBOL_NAME (s1); |
| 223 | if (SYMBOLP (s2)) | 223 | if (SYMBOLP (s2)) |
| 224 | XSETSTRING (s2, XSYMBOL (s2)->name); | 224 | s2 = SYMBOL_NAME (s2); |
| 225 | CHECK_STRING (s1); | 225 | CHECK_STRING (s1); |
| 226 | CHECK_STRING (s2); | 226 | CHECK_STRING (s2); |
| 227 | 227 | ||
| @@ -346,9 +346,9 @@ Symbols are also allowed; their print names are used instead. */) | |||
| 346 | register int i1, i1_byte, i2, i2_byte; | 346 | register int i1, i1_byte, i2, i2_byte; |
| 347 | 347 | ||
| 348 | if (SYMBOLP (s1)) | 348 | if (SYMBOLP (s1)) |
| 349 | XSETSTRING (s1, XSYMBOL (s1)->name); | 349 | s1 = SYMBOL_NAME (s1); |
| 350 | if (SYMBOLP (s2)) | 350 | if (SYMBOLP (s2)) |
| 351 | XSETSTRING (s2, XSYMBOL (s2)->name); | 351 | s2 = SYMBOL_NAME (s2); |
| 352 | CHECK_STRING (s1); | 352 | CHECK_STRING (s1); |
| 353 | CHECK_STRING (s2); | 353 | CHECK_STRING (s2); |
| 354 | 354 | ||
| @@ -3255,7 +3255,7 @@ The normal messages at start and end of loading FILENAME are suppressed. */) | |||
| 3255 | of what files are preloaded and when. */ | 3255 | of what files are preloaded and when. */ |
| 3256 | if (! NILP (Vpurify_flag)) | 3256 | if (! NILP (Vpurify_flag)) |
| 3257 | error ("(require %s) while preparing to dump", | 3257 | error ("(require %s) while preparing to dump", |
| 3258 | XSYMBOL (feature)->name->data); | 3258 | XSTRING (SYMBOL_NAME (feature))->data); |
| 3259 | 3259 | ||
| 3260 | /* A certain amount of recursive `require' is legitimate, | 3260 | /* A certain amount of recursive `require' is legitimate, |
| 3261 | but if we require the same feature recursively 3 times, | 3261 | but if we require the same feature recursively 3 times, |
| @@ -3269,7 +3269,7 @@ The normal messages at start and end of loading FILENAME are suppressed. */) | |||
| 3269 | } | 3269 | } |
| 3270 | if (nesting > 2) | 3270 | if (nesting > 2) |
| 3271 | error ("Recursive `require' for feature `%s'", | 3271 | error ("Recursive `require' for feature `%s'", |
| 3272 | XSYMBOL (feature)->name->data); | 3272 | XSTRING (SYMBOL_NAME (feature))->data); |
| 3273 | 3273 | ||
| 3274 | /* Update the list for any nested `require's that occur. */ | 3274 | /* Update the list for any nested `require's that occur. */ |
| 3275 | record_unwind_protect (require_unwind, require_nesting_list); | 3275 | record_unwind_protect (require_unwind, require_nesting_list); |
| @@ -3292,7 +3292,7 @@ The normal messages at start and end of loading FILENAME are suppressed. */) | |||
| 3292 | tem = Fmemq (feature, Vfeatures); | 3292 | tem = Fmemq (feature, Vfeatures); |
| 3293 | if (NILP (tem)) | 3293 | if (NILP (tem)) |
| 3294 | error ("Required feature `%s' was not provided", | 3294 | error ("Required feature `%s' was not provided", |
| 3295 | XSYMBOL (feature)->name->data); | 3295 | XSTRING (SYMBOL_NAME (feature))->data); |
| 3296 | 3296 | ||
| 3297 | /* Once loading finishes, don't undo it. */ | 3297 | /* Once loading finishes, don't undo it. */ |
| 3298 | Vautoload_queue = Qt; | 3298 | Vautoload_queue = Qt; |
| @@ -4796,8 +4796,8 @@ sxhash (obj, depth) | |||
| 4796 | break; | 4796 | break; |
| 4797 | 4797 | ||
| 4798 | case Lisp_Symbol: | 4798 | case Lisp_Symbol: |
| 4799 | hash = sxhash_string (XSYMBOL (obj)->name->data, | 4799 | hash = sxhash_string (XSTRING (SYMBOL_NAME (obj))->data, |
| 4800 | XSYMBOL (obj)->name->size); | 4800 | XSTRING (SYMBOL_NAME (obj))->size); |
| 4801 | break; | 4801 | break; |
| 4802 | 4802 | ||
| 4803 | case Lisp_Misc: | 4803 | case Lisp_Misc: |