aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.c
diff options
context:
space:
mode:
authorTom Tromey2018-07-06 21:56:17 -0600
committerTom Tromey2018-07-12 22:12:27 -0600
commit42fe787b0f26c2df682b2797407a669ef8522ccb (patch)
treee944fe465e2b65703a8361bc82647faf4f7907f1 /src/doc.c
parent01dbf2a347944497fdcf2ec156f4605020d7ba2a (diff)
downloademacs-42fe787b0f26c2df682b2797407a669ef8522ccb.tar.gz
emacs-42fe787b0f26c2df682b2797407a669ef8522ccb.zip
Rename integerp->fixnum, etc, in preparation for bignums
* src/json.c, src/keyboard.c, src/keyboard.h, src/keymap.c, src/kqueue.c, src/lcms.c, src/lisp.h, src/lread.c, src/macros.c, src/marker.c, src/menu.c, src/minibuf.c, src/msdos.c, src/print.c, src/process.c, src/profiler.c, src/search.c, src/sound.c, src/syntax.c, src/sysdep.c, src/term.c, src/terminal.c, src/textprop.c, src/undo.c, src/w16select.c, src/w32.c, src/w32console.c, src/w32cygwinx.c, src/w32fns.c, src/w32font.c, src/w32inevt.c, src/w32proc.c, src/w32select.c, src/w32term.c, src/w32uniscribe.c, src/widget.c, src/window.c, src/xdisp.c, src/xfaces.c, src/xfns.c, src/xfont.c, src/xftfont.c, src/xmenu.c, src/xrdb.c, src/xselect.c, src/xterm.c, src/xwidget.c: Rename INTEGERP->FIXNUM, make_number->make_fixnum, CHECK_NUMBER->CHECK_FIXNUM, make_natnum->make_fixed_natum, NUMBERP->FIXED_OR_FLOATP, NATNUMP->FIXNATP, CHECK_NATNUM->CHECK_FIXNAT.
Diffstat (limited to 'src/doc.c')
-rw-r--r--src/doc.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/doc.c b/src/doc.c
index 075154e94bc..a71c81b4e96 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -89,7 +89,7 @@ get_doc_string (Lisp_Object filepos, bool unibyte, bool definition)
89 ptrdiff_t count = SPECPDL_INDEX (); 89 ptrdiff_t count = SPECPDL_INDEX ();
90 USE_SAFE_ALLOCA; 90 USE_SAFE_ALLOCA;
91 91
92 if (INTEGERP (filepos)) 92 if (FIXNUMP (filepos))
93 { 93 {
94 file = Vdoc_file_name; 94 file = Vdoc_file_name;
95 pos = filepos; 95 pos = filepos;
@@ -339,7 +339,7 @@ string is passed through `substitute-command-keys'. */)
339 if (CONSP (fun) && EQ (XCAR (fun), Qmacro)) 339 if (CONSP (fun) && EQ (XCAR (fun), Qmacro))
340 fun = XCDR (fun); 340 fun = XCDR (fun);
341 if (SUBRP (fun)) 341 if (SUBRP (fun))
342 doc = make_number (XSUBR (fun)->doc); 342 doc = make_fixnum (XSUBR (fun)->doc);
343 else if (MODULE_FUNCTIONP (fun)) 343 else if (MODULE_FUNCTIONP (fun))
344 doc = XMODULE_FUNCTION (fun)->documentation; 344 doc = XMODULE_FUNCTION (fun)->documentation;
345 else if (COMPILEDP (fun)) 345 else if (COMPILEDP (fun))
@@ -351,7 +351,7 @@ string is passed through `substitute-command-keys'. */)
351 Lisp_Object tem = AREF (fun, COMPILED_DOC_STRING); 351 Lisp_Object tem = AREF (fun, COMPILED_DOC_STRING);
352 if (STRINGP (tem)) 352 if (STRINGP (tem))
353 doc = tem; 353 doc = tem;
354 else if (NATNUMP (tem) || CONSP (tem)) 354 else if (FIXNATP (tem) || CONSP (tem))
355 doc = tem; 355 doc = tem;
356 else 356 else
357 return Qnil; 357 return Qnil;
@@ -378,7 +378,7 @@ string is passed through `substitute-command-keys'. */)
378 doc = tem; 378 doc = tem;
379 /* Handle a doc reference--but these never come last 379 /* Handle a doc reference--but these never come last
380 in the function body, so reject them if they are last. */ 380 in the function body, so reject them if they are last. */
381 else if ((NATNUMP (tem) || (CONSP (tem) && INTEGERP (XCDR (tem)))) 381 else if ((FIXNATP (tem) || (CONSP (tem) && FIXNUMP (XCDR (tem))))
382 && !NILP (XCDR (tem1))) 382 && !NILP (XCDR (tem1)))
383 doc = tem; 383 doc = tem;
384 else 384 else
@@ -395,9 +395,9 @@ string is passed through `substitute-command-keys'. */)
395 395
396 /* If DOC is 0, it's typically because of a dumped file missing 396 /* If DOC is 0, it's typically because of a dumped file missing
397 from the DOC file (bug in src/Makefile.in). */ 397 from the DOC file (bug in src/Makefile.in). */
398 if (EQ (doc, make_number (0))) 398 if (EQ (doc, make_fixnum (0)))
399 doc = Qnil; 399 doc = Qnil;
400 if (INTEGERP (doc) || CONSP (doc)) 400 if (FIXNUMP (doc) || CONSP (doc))
401 { 401 {
402 Lisp_Object tem; 402 Lisp_Object tem;
403 tem = get_doc_string (doc, 0, 0); 403 tem = get_doc_string (doc, 0, 0);
@@ -437,9 +437,9 @@ aren't strings. */)
437 documentation_property: 437 documentation_property:
438 438
439 tem = Fget (symbol, prop); 439 tem = Fget (symbol, prop);
440 if (EQ (tem, make_number (0))) 440 if (EQ (tem, make_fixnum (0)))
441 tem = Qnil; 441 tem = Qnil;
442 if (INTEGERP (tem) || (CONSP (tem) && INTEGERP (XCDR (tem)))) 442 if (FIXNUMP (tem) || (CONSP (tem) && FIXNUMP (XCDR (tem))))
443 { 443 {
444 Lisp_Object doc = tem; 444 Lisp_Object doc = tem;
445 tem = get_doc_string (tem, 0, 0); 445 tem = get_doc_string (tem, 0, 0);
@@ -486,10 +486,10 @@ store_function_docstring (Lisp_Object obj, EMACS_INT offset)
486 || (EQ (tem, Qclosure) && (fun = XCDR (fun), 1))) 486 || (EQ (tem, Qclosure) && (fun = XCDR (fun), 1)))
487 { 487 {
488 tem = Fcdr (Fcdr (fun)); 488 tem = Fcdr (Fcdr (fun));
489 if (CONSP (tem) && INTEGERP (XCAR (tem))) 489 if (CONSP (tem) && FIXNUMP (XCAR (tem)))
490 /* FIXME: This modifies typically pure hash-cons'd data, so its 490 /* FIXME: This modifies typically pure hash-cons'd data, so its
491 correctness is quite delicate. */ 491 correctness is quite delicate. */
492 XSETCAR (tem, make_number (offset)); 492 XSETCAR (tem, make_fixnum (offset));
493 } 493 }
494 } 494 }
495 495
@@ -503,7 +503,7 @@ store_function_docstring (Lisp_Object obj, EMACS_INT offset)
503 /* This bytecode object must have a slot for the 503 /* This bytecode object must have a slot for the
504 docstring, since we've found a docstring for it. */ 504 docstring, since we've found a docstring for it. */
505 if (PVSIZE (fun) > COMPILED_DOC_STRING) 505 if (PVSIZE (fun) > COMPILED_DOC_STRING)
506 ASET (fun, COMPILED_DOC_STRING, make_number (offset)); 506 ASET (fun, COMPILED_DOC_STRING, make_fixnum (offset));
507 else 507 else
508 { 508 {
509 AUTO_STRING (format, "No docstring slot for %s"); 509 AUTO_STRING (format, "No docstring slot for %s");
@@ -635,7 +635,7 @@ the same file name is found in the `doc-directory'. */)
635 || !NILP (Fmemq (sym, delayed_init))) 635 || !NILP (Fmemq (sym, delayed_init)))
636 && strncmp (end, "\nSKIP", 5)) 636 && strncmp (end, "\nSKIP", 5))
637 Fput (sym, Qvariable_documentation, 637 Fput (sym, Qvariable_documentation,
638 make_number ((pos + end + 1 - buf) 638 make_fixnum ((pos + end + 1 - buf)
639 * (end[1] == '*' ? -1 : 1))); 639 * (end[1] == '*' ? -1 : 1)));
640 } 640 }
641 641
@@ -671,7 +671,7 @@ default_to_grave_quoting_style (void)
671 Lisp_Object dv = DISP_CHAR_VECTOR (XCHAR_TABLE (Vstandard_display_table), 671 Lisp_Object dv = DISP_CHAR_VECTOR (XCHAR_TABLE (Vstandard_display_table),
672 LEFT_SINGLE_QUOTATION_MARK); 672 LEFT_SINGLE_QUOTATION_MARK);
673 return (VECTORP (dv) && ASIZE (dv) == 1 673 return (VECTORP (dv) && ASIZE (dv) == 1
674 && EQ (AREF (dv, 0), make_number ('`'))); 674 && EQ (AREF (dv, 0), make_fixnum ('`')));
675} 675}
676 676
677/* Return the current effective text quoting style. */ 677/* Return the current effective text quoting style. */