aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2002-05-20 08:06:27 +0000
committerKen Raeburn2002-05-20 08:06:27 +0000
commit76d0b3ae65dc9ab0657a81023789fae9bb37d36a (patch)
treed02ca6e7b6d967e7cbd3e67278542ae4fd95c6cc /src
parentcaa4733e19c3adbd25e864050862806c37719cfd (diff)
downloademacs-76d0b3ae65dc9ab0657a81023789fae9bb37d36a.tar.gz
emacs-76d0b3ae65dc9ab0657a81023789fae9bb37d36a.zip
* print.c (print_error_message, print_object): Use SYMBOL_NAME and
XSTRING instead of XSYMBOL and name field.
Diffstat (limited to 'src')
-rw-r--r--src/print.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/print.c b/src/print.c
index 17f01522d52..c033f7574b0 100644
--- a/src/print.c
+++ b/src/print.c
@@ -970,7 +970,7 @@ print_error_message (data, stream)
970 *Messages*. */ 970 *Messages*. */
971 if (!NILP (Vsignaling_function) && SYMBOLP (Vsignaling_function)) 971 if (!NILP (Vsignaling_function) && SYMBOLP (Vsignaling_function))
972 { 972 {
973 char *name = XSYMBOL (Vsignaling_function)->name->data; 973 char *name = XSTRING (SYMBOL_NAME (Vsignaling_function))->data;
974 message_dolog (name, strlen (name), 0, 0); 974 message_dolog (name, strlen (name), 0, 0);
975 message_dolog (": ", 2, 0, 0); 975 message_dolog (": ", 2, 0, 0);
976 Vsignaling_function = Qnil; 976 Vsignaling_function = Qnil;
@@ -1490,13 +1490,13 @@ print_object (obj, printcharfun, escapeflag)
1490 case Lisp_Symbol: 1490 case Lisp_Symbol:
1491 { 1491 {
1492 register int confusing; 1492 register int confusing;
1493 register unsigned char *p = XSYMBOL (obj)->name->data; 1493 register unsigned char *p = XSTRING (SYMBOL_NAME (obj))->data;
1494 register unsigned char *end = p + STRING_BYTES (XSYMBOL (obj)->name); 1494 register unsigned char *end = p + STRING_BYTES (XSTRING (SYMBOL_NAME (obj)));
1495 register int c; 1495 register int c;
1496 int i, i_byte, size_byte; 1496 int i, i_byte, size_byte;
1497 Lisp_Object name; 1497 Lisp_Object name;
1498 1498
1499 XSETSTRING (name, XSYMBOL (obj)->name); 1499 name = SYMBOL_NAME (obj);
1500 1500
1501 if (p != end && (*p == '-' || *p == '+')) p++; 1501 if (p != end && (*p == '-' || *p == '+')) p++;
1502 if (p == end) 1502 if (p == end)
@@ -1744,9 +1744,9 @@ print_object (obj, printcharfun, escapeflag)
1744 { 1744 {
1745 PRINTCHAR (' '); 1745 PRINTCHAR (' ');
1746 PRINTCHAR ('\''); 1746 PRINTCHAR ('\'');
1747 strout (XSYMBOL (h->test)->name->data, -1, -1, printcharfun, 0); 1747 strout (XSTRING (SYMBOL_NAME (h->test))->data, -1, -1, printcharfun, 0);
1748 PRINTCHAR (' '); 1748 PRINTCHAR (' ');
1749 strout (XSYMBOL (h->weak)->name->data, -1, -1, printcharfun, 0); 1749 strout (XSTRING (SYMBOL_NAME (h->weak))->data, -1, -1, printcharfun, 0);
1750 PRINTCHAR (' '); 1750 PRINTCHAR (' ');
1751 sprintf (buf, "%d/%d", XFASTINT (h->count), 1751 sprintf (buf, "%d/%d", XFASTINT (h->count),
1752 XVECTOR (h->next)->size); 1752 XVECTOR (h->next)->size);