diff options
| author | Ken Raeburn | 1999-09-14 15:12:57 +0000 |
|---|---|---|
| committer | Ken Raeburn | 1999-09-14 15:12:57 +0000 |
| commit | 94b342cea5e49654451a91eef2468890f2b864ed (patch) | |
| tree | 398f13296abd0c0a8862e2acbad8c9c4089180a8 /src | |
| parent | 5c187deef57a0bf7b1fc7cf9afcba6813f708886 (diff) | |
| download | emacs-94b342cea5e49654451a91eef2468890f2b864ed.tar.gz emacs-94b342cea5e49654451a91eef2468890f2b864ed.zip | |
Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member access.
Diffstat (limited to 'src')
| -rw-r--r-- | src/print.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/print.c b/src/print.c index d61557f6333..3c560855b41 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -855,11 +855,11 @@ DEFUN ("error-message-string", Ferror_message_string, Serror_message_string, | |||
| 855 | /* If OBJ is (error STRING), just return STRING. | 855 | /* If OBJ is (error STRING), just return STRING. |
| 856 | That is not only faster, it also avoids the need to allocate | 856 | That is not only faster, it also avoids the need to allocate |
| 857 | space here when the error is due to memory full. */ | 857 | space here when the error is due to memory full. */ |
| 858 | if (CONSP (obj) && EQ (XCONS (obj)->car, Qerror) | 858 | if (CONSP (obj) && EQ (XCAR (obj), Qerror) |
| 859 | && CONSP (XCONS (obj)->cdr) | 859 | && CONSP (XCDR (obj)) |
| 860 | && STRINGP (XCONS (XCONS (obj)->cdr)->car) | 860 | && STRINGP (XCAR (XCDR (obj))) |
| 861 | && NILP (XCONS (XCONS (obj)->cdr)->cdr)) | 861 | && NILP (XCDR (XCDR (obj)))) |
| 862 | return XCONS (XCONS (obj)->cdr)->car; | 862 | return XCAR (XCDR (obj)); |
| 863 | 863 | ||
| 864 | print_error_message (obj, Vprin1_to_string_buffer); | 864 | print_error_message (obj, Vprin1_to_string_buffer); |
| 865 | 865 | ||
| @@ -909,7 +909,7 @@ print_error_message (data, stream) | |||
| 909 | /* For file-error, make error message by concatenating | 909 | /* For file-error, make error message by concatenating |
| 910 | all the data items. They are all strings. */ | 910 | all the data items. They are all strings. */ |
| 911 | if (!NILP (file_error) && CONSP (tail)) | 911 | if (!NILP (file_error) && CONSP (tail)) |
| 912 | errmsg = XCONS (tail)->car, tail = XCONS (tail)->cdr; | 912 | errmsg = XCAR (tail), tail = XCDR (tail); |
| 913 | 913 | ||
| 914 | if (STRINGP (errmsg)) | 914 | if (STRINGP (errmsg)) |
| 915 | Fprinc (errmsg, stream); | 915 | Fprinc (errmsg, stream); |
| @@ -1266,7 +1266,7 @@ print_object (obj, printcharfun, escapeflag) | |||
| 1266 | { | 1266 | { |
| 1267 | char pigbuf[350]; /* see comments in float_to_string */ | 1267 | char pigbuf[350]; /* see comments in float_to_string */ |
| 1268 | 1268 | ||
| 1269 | float_to_string (pigbuf, XFLOAT(obj)->data); | 1269 | float_to_string (pigbuf, XFLOAT_DATA (obj)); |
| 1270 | strout (pigbuf, -1, -1, printcharfun, 0); | 1270 | strout (pigbuf, -1, -1, printcharfun, 0); |
| 1271 | } | 1271 | } |
| 1272 | break; | 1272 | break; |
| @@ -1814,10 +1814,10 @@ print_object (obj, printcharfun, escapeflag) | |||
| 1814 | printcharfun, escapeflag); | 1814 | printcharfun, escapeflag); |
| 1815 | } | 1815 | } |
| 1816 | strout ("[alist-elt] ", -1, -1, printcharfun, 0); | 1816 | strout ("[alist-elt] ", -1, -1, printcharfun, 0); |
| 1817 | print_object (XCONS (XBUFFER_LOCAL_VALUE (obj)->cdr)->car, | 1817 | print_object (XCAR (XBUFFER_LOCAL_VALUE (obj)->cdr), |
| 1818 | printcharfun, escapeflag); | 1818 | printcharfun, escapeflag); |
| 1819 | strout ("[default-value] ", -1, -1, printcharfun, 0); | 1819 | strout ("[default-value] ", -1, -1, printcharfun, 0); |
| 1820 | print_object (XCONS (XBUFFER_LOCAL_VALUE (obj)->cdr)->cdr, | 1820 | print_object (XCDR (XBUFFER_LOCAL_VALUE (obj)->cdr), |
| 1821 | printcharfun, escapeflag); | 1821 | printcharfun, escapeflag); |
| 1822 | PRINTCHAR ('>'); | 1822 | PRINTCHAR ('>'); |
| 1823 | break; | 1823 | break; |