diff options
| author | Ken Raeburn | 1999-09-13 02:23:04 +0000 |
|---|---|---|
| committer | Ken Raeburn | 1999-09-13 02:23:04 +0000 |
| commit | 03699b140e13aee5b49fa4678e97dff5855e789c (patch) | |
| tree | 79213225b326eeaa5385bf863f2e3c2df62963e5 /src/doc.c | |
| parent | 926106201f8bfebbaac3c5b0f5e36192b7f00f1b (diff) | |
| download | emacs-03699b140e13aee5b49fa4678e97dff5855e789c.tar.gz emacs-03699b140e13aee5b49fa4678e97dff5855e789c.zip | |
Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member access.
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 14 |
1 files changed, 7 insertions, 7 deletions
| @@ -126,8 +126,8 @@ get_doc_string (filepos, unibyte, definition) | |||
| 126 | } | 126 | } |
| 127 | else if (CONSP (filepos)) | 127 | else if (CONSP (filepos)) |
| 128 | { | 128 | { |
| 129 | file = XCONS (filepos)->car; | 129 | file = XCAR (filepos); |
| 130 | position = XINT (XCONS (filepos)->cdr); | 130 | position = XINT (XCDR (filepos)); |
| 131 | if (position < 0) | 131 | if (position < 0) |
| 132 | position = - position; | 132 | position = - position; |
| 133 | } | 133 | } |
| @@ -353,7 +353,7 @@ string is passed through `substitute-command-keys'.") | |||
| 353 | /* Handle a doc reference--but these never come last | 353 | /* Handle a doc reference--but these never come last |
| 354 | in the function body, so reject them if they are last. */ | 354 | in the function body, so reject them if they are last. */ |
| 355 | else if ((NATNUMP (tem) || CONSP (tem)) | 355 | else if ((NATNUMP (tem) || CONSP (tem)) |
| 356 | && ! NILP (XCONS (tem1)->cdr)) | 356 | && ! NILP (XCDR (tem1))) |
| 357 | doc = get_doc_string (tem, 0, 0); | 357 | doc = get_doc_string (tem, 0, 0); |
| 358 | else | 358 | else |
| 359 | return Qnil; | 359 | return Qnil; |
| @@ -424,15 +424,15 @@ store_function_docstring (fun, offset) | |||
| 424 | { | 424 | { |
| 425 | Lisp_Object tem; | 425 | Lisp_Object tem; |
| 426 | 426 | ||
| 427 | tem = XCONS (fun)->car; | 427 | tem = XCAR (fun); |
| 428 | if (EQ (tem, Qlambda) || EQ (tem, Qautoload)) | 428 | if (EQ (tem, Qlambda) || EQ (tem, Qautoload)) |
| 429 | { | 429 | { |
| 430 | tem = Fcdr (Fcdr (fun)); | 430 | tem = Fcdr (Fcdr (fun)); |
| 431 | if (CONSP (tem) && INTEGERP (XCONS (tem)->car)) | 431 | if (CONSP (tem) && INTEGERP (XCAR (tem))) |
| 432 | XSETFASTINT (XCONS (tem)->car, offset); | 432 | XSETFASTINT (XCAR (tem), offset); |
| 433 | } | 433 | } |
| 434 | else if (EQ (tem, Qmacro)) | 434 | else if (EQ (tem, Qmacro)) |
| 435 | store_function_docstring (XCONS (fun)->cdr, offset); | 435 | store_function_docstring (XCDR (fun), offset); |
| 436 | } | 436 | } |
| 437 | 437 | ||
| 438 | /* Bytecode objects sometimes have slots for it. */ | 438 | /* Bytecode objects sometimes have slots for it. */ |