Mercurial > emacs
comparison src/print.c @ 109179:8cfee7d2955f
Convert DEFUNs to standard C.
* src/alloc.c: Convert DEFUNs to standard C.
* src/buffer.c:
* src/bytecode.c:
* src/callint.c:
* src/callproc.c:
* src/casefiddle.c:
* src/casetab.c:
* src/category.c:
* src/character.c:
* src/charset.c:
* src/chartab.c:
* src/cmds.c:
* src/coding.c:
* src/composite.c:
* src/data.c:
* src/dbusbind.c:
* src/dired.c:
* src/dispnew.c:
* src/doc.c:
* src/dosfns.c:
* src/editfns.c:
* src/emacs.c:
* src/eval.c:
* src/fileio.c:
* src/filelock.c:
* src/floatfns.c:
* src/fns.c:
* src/font.c:
* src/fontset.c:
* src/frame.c:
* src/fringe.c:
* src/image.c:
* src/indent.c:
* src/insdel.c:
* src/keyboard.c:
* src/keymap.c:
* src/lread.c:
* src/macros.c:
* src/marker.c:
* src/menu.c:
* src/minibuf.c:
* src/msdos.c:
* src/nsfns.m:
* src/nsmenu.m:
* src/nsselect.m:
* src/print.c:
* src/process.c:
* src/search.c:
* src/sound.c:
* src/syntax.c:
* src/term.c:
* src/terminal.c:
* src/textprop.c:
* src/undo.c:
* src/w16select.c:
* src/w32console.c:
* src/w32fns.c:
* src/w32font.c:
* src/w32menu.c:
* src/w32proc.c:
* src/w32select.c:
* src/window.c:
* src/xdisp.c:
* src/xfaces.c:
* src/xfns.c:
* src/xmenu.c:
* src/xselect.c:
* src/xsettings.c:
* src/xsmfns.c: Likewise.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Thu, 08 Jul 2010 14:25:08 -0700 |
parents | 750db9f3e6d8 |
children | e856a274549b |
comparison
equal
deleted
inserted
replaced
109178:53f8ebcd9a97 | 109179:8cfee7d2955f |
---|---|
520 } | 520 } |
521 | 521 |
522 DEFUN ("write-char", Fwrite_char, Swrite_char, 1, 2, 0, | 522 DEFUN ("write-char", Fwrite_char, Swrite_char, 1, 2, 0, |
523 doc: /* Output character CHARACTER to stream PRINTCHARFUN. | 523 doc: /* Output character CHARACTER to stream PRINTCHARFUN. |
524 PRINTCHARFUN defaults to the value of `standard-output' (which see). */) | 524 PRINTCHARFUN defaults to the value of `standard-output' (which see). */) |
525 (character, printcharfun) | 525 (Lisp_Object character, Lisp_Object printcharfun) |
526 Lisp_Object character, printcharfun; | |
527 { | 526 { |
528 PRINTDECLARE; | 527 PRINTDECLARE; |
529 | 528 |
530 if (NILP (printcharfun)) | 529 if (NILP (printcharfun)) |
531 printcharfun = Vstandard_output; | 530 printcharfun = Vstandard_output; |
651 buffer temporarily current, and the window that was used to display it | 650 buffer temporarily current, and the window that was used to display it |
652 temporarily selected. But it doesn't run `temp-buffer-show-hook' | 651 temporarily selected. But it doesn't run `temp-buffer-show-hook' |
653 if it uses `temp-buffer-show-function'. | 652 if it uses `temp-buffer-show-function'. |
654 | 653 |
655 usage: (with-output-to-temp-buffer BUFNAME BODY...) */) | 654 usage: (with-output-to-temp-buffer BUFNAME BODY...) */) |
656 (args) | 655 (Lisp_Object args) |
657 Lisp_Object args; | |
658 { | 656 { |
659 struct gcpro gcpro1; | 657 struct gcpro gcpro1; |
660 Lisp_Object name; | 658 Lisp_Object name; |
661 int count = SPECPDL_INDEX (); | 659 int count = SPECPDL_INDEX (); |
662 Lisp_Object buf, val; | 660 Lisp_Object buf, val; |
684 static void print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag); | 682 static void print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag); |
685 | 683 |
686 DEFUN ("terpri", Fterpri, Sterpri, 0, 1, 0, | 684 DEFUN ("terpri", Fterpri, Sterpri, 0, 1, 0, |
687 doc: /* Output a newline to stream PRINTCHARFUN. | 685 doc: /* Output a newline to stream PRINTCHARFUN. |
688 If PRINTCHARFUN is omitted or nil, the value of `standard-output' is used. */) | 686 If PRINTCHARFUN is omitted or nil, the value of `standard-output' is used. */) |
689 (printcharfun) | 687 (Lisp_Object printcharfun) |
690 Lisp_Object printcharfun; | |
691 { | 688 { |
692 PRINTDECLARE; | 689 PRINTDECLARE; |
693 | 690 |
694 if (NILP (printcharfun)) | 691 if (NILP (printcharfun)) |
695 printcharfun = Vstandard_output; | 692 printcharfun = Vstandard_output; |
720 - a symbol, in which case that symbol's function definition is called; or | 717 - a symbol, in which case that symbol's function definition is called; or |
721 - t, in which case the output is displayed in the echo area. | 718 - t, in which case the output is displayed in the echo area. |
722 | 719 |
723 If PRINTCHARFUN is omitted, the value of `standard-output' (which see) | 720 If PRINTCHARFUN is omitted, the value of `standard-output' (which see) |
724 is used instead. */) | 721 is used instead. */) |
725 (object, printcharfun) | 722 (Lisp_Object object, Lisp_Object printcharfun) |
726 Lisp_Object object, printcharfun; | |
727 { | 723 { |
728 PRINTDECLARE; | 724 PRINTDECLARE; |
729 | 725 |
730 if (NILP (printcharfun)) | 726 if (NILP (printcharfun)) |
731 printcharfun = Vstandard_output; | 727 printcharfun = Vstandard_output; |
747 | 743 |
748 OBJECT is any of the Lisp data types: a number, a string, a symbol, | 744 OBJECT is any of the Lisp data types: a number, a string, a symbol, |
749 a list, a buffer, a window, a frame, etc. | 745 a list, a buffer, a window, a frame, etc. |
750 | 746 |
751 A printed representation of an object is text which describes that object. */) | 747 A printed representation of an object is text which describes that object. */) |
752 (object, noescape) | 748 (Lisp_Object object, Lisp_Object noescape) |
753 Lisp_Object object, noescape; | |
754 { | 749 { |
755 Lisp_Object printcharfun; | 750 Lisp_Object printcharfun; |
756 /* struct gcpro gcpro1, gcpro2; */ | 751 /* struct gcpro gcpro1, gcpro2; */ |
757 Lisp_Object save_deactivate_mark; | 752 Lisp_Object save_deactivate_mark; |
758 int count = SPECPDL_INDEX (); | 753 int count = SPECPDL_INDEX (); |
816 - a symbol, in which case that symbol's function definition is called; or | 811 - a symbol, in which case that symbol's function definition is called; or |
817 - t, in which case the output is displayed in the echo area. | 812 - t, in which case the output is displayed in the echo area. |
818 | 813 |
819 If PRINTCHARFUN is omitted, the value of `standard-output' (which see) | 814 If PRINTCHARFUN is omitted, the value of `standard-output' (which see) |
820 is used instead. */) | 815 is used instead. */) |
821 (object, printcharfun) | 816 (Lisp_Object object, Lisp_Object printcharfun) |
822 Lisp_Object object, printcharfun; | |
823 { | 817 { |
824 PRINTDECLARE; | 818 PRINTDECLARE; |
825 | 819 |
826 if (NILP (printcharfun)) | 820 if (NILP (printcharfun)) |
827 printcharfun = Vstandard_output; | 821 printcharfun = Vstandard_output; |
852 - a symbol, in which case that symbol's function definition is called; or | 846 - a symbol, in which case that symbol's function definition is called; or |
853 - t, in which case the output is displayed in the echo area. | 847 - t, in which case the output is displayed in the echo area. |
854 | 848 |
855 If PRINTCHARFUN is omitted, the value of `standard-output' (which see) | 849 If PRINTCHARFUN is omitted, the value of `standard-output' (which see) |
856 is used instead. */) | 850 is used instead. */) |
857 (object, printcharfun) | 851 (Lisp_Object object, Lisp_Object printcharfun) |
858 Lisp_Object object, printcharfun; | |
859 { | 852 { |
860 PRINTDECLARE; | 853 PRINTDECLARE; |
861 struct gcpro gcpro1; | 854 struct gcpro gcpro1; |
862 | 855 |
863 if (NILP (printcharfun)) | 856 if (NILP (printcharfun)) |
878 | 871 |
879 DEFUN ("external-debugging-output", Fexternal_debugging_output, Sexternal_debugging_output, 1, 1, 0, | 872 DEFUN ("external-debugging-output", Fexternal_debugging_output, Sexternal_debugging_output, 1, 1, 0, |
880 doc: /* Write CHARACTER to stderr. | 873 doc: /* Write CHARACTER to stderr. |
881 You can call print while debugging emacs, and pass it this function | 874 You can call print while debugging emacs, and pass it this function |
882 to make it write to the debugging output. */) | 875 to make it write to the debugging output. */) |
883 (character) | 876 (Lisp_Object character) |
884 Lisp_Object character; | |
885 { | 877 { |
886 CHECK_NUMBER (character); | 878 CHECK_NUMBER (character); |
887 putc (XINT (character), stderr); | 879 putc (XINT (character), stderr); |
888 | 880 |
889 #ifdef WINDOWSNT | 881 #ifdef WINDOWSNT |
921 "FDebug output file: \nP", | 913 "FDebug output file: \nP", |
922 doc: /* Redirect debugging output (stderr stream) to file FILE. | 914 doc: /* Redirect debugging output (stderr stream) to file FILE. |
923 If FILE is nil, reset target to the initial stderr stream. | 915 If FILE is nil, reset target to the initial stderr stream. |
924 Optional arg APPEND non-nil (interactively, with prefix arg) means | 916 Optional arg APPEND non-nil (interactively, with prefix arg) means |
925 append to existing target file. */) | 917 append to existing target file. */) |
926 (file, append) | 918 (Lisp_Object file, Lisp_Object append) |
927 Lisp_Object file, append; | |
928 { | 919 { |
929 if (initial_stderr_stream != NULL) | 920 if (initial_stderr_stream != NULL) |
930 { | 921 { |
931 BLOCK_INPUT; | 922 BLOCK_INPUT; |
932 fclose (stderr); | 923 fclose (stderr); |
980 DEFUN ("error-message-string", Ferror_message_string, Serror_message_string, | 971 DEFUN ("error-message-string", Ferror_message_string, Serror_message_string, |
981 1, 1, 0, | 972 1, 1, 0, |
982 doc: /* Convert an error value (ERROR-SYMBOL . DATA) to an error message. | 973 doc: /* Convert an error value (ERROR-SYMBOL . DATA) to an error message. |
983 See Info anchor `(elisp)Definition of signal' for some details on how this | 974 See Info anchor `(elisp)Definition of signal' for some details on how this |
984 error message is constructed. */) | 975 error message is constructed. */) |
985 (obj) | 976 (Lisp_Object obj) |
986 Lisp_Object obj; | |
987 { | 977 { |
988 struct buffer *old = current_buffer; | 978 struct buffer *old = current_buffer; |
989 Lisp_Object value; | 979 Lisp_Object value; |
990 struct gcpro gcpro1; | 980 struct gcpro gcpro1; |
991 | 981 |