Mercurial > emacs
diff src/editfns.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 |
line wrap: on
line diff
--- a/src/editfns.c Thu Jul 08 21:04:31 2010 +0300 +++ b/src/editfns.c Thu Jul 08 14:25:08 2010 -0700 @@ -209,8 +209,7 @@ DEFUN ("char-to-string", Fchar_to_string, Schar_to_string, 1, 1, 0, doc: /* Convert arg CHAR to a string containing that character. usage: (char-to-string CHAR) */) - (character) - Lisp_Object character; + (Lisp_Object character) { int len; unsigned char str[MAX_MULTIBYTE_LENGTH]; @@ -223,8 +222,7 @@ DEFUN ("byte-to-string", Fbyte_to_string, Sbyte_to_string, 1, 1, 0, doc: /* Convert arg BYTE to a string containing that byte. */) - (byte) - Lisp_Object byte; + (Lisp_Object byte) { unsigned char b; CHECK_NUMBER (byte); @@ -235,8 +233,7 @@ DEFUN ("string-to-char", Fstring_to_char, Sstring_to_char, 1, 1, 0, doc: /* Convert arg STRING to a character, the first character of that string. A multibyte character is handled correctly. */) - (string) - register Lisp_Object string; + (register Lisp_Object string) { register Lisp_Object val; CHECK_STRING (string); @@ -264,7 +261,7 @@ DEFUN ("point", Fpoint, Spoint, 0, 0, 0, doc: /* Return value of point, as an integer. Beginning of buffer is position (point-min). */) - () + (void) { Lisp_Object temp; XSETFASTINT (temp, PT); @@ -273,7 +270,7 @@ DEFUN ("point-marker", Fpoint_marker, Spoint_marker, 0, 0, 0, doc: /* Return value of point, as a marker object. */) - () + (void) { return buildmark (PT, PT_BYTE); } @@ -294,8 +291,7 @@ Beginning of buffer is position (point-min), end is (point-max). The return value is POSITION. */) - (position) - register Lisp_Object position; + (register Lisp_Object position) { int pos; @@ -347,14 +343,14 @@ DEFUN ("region-beginning", Fregion_beginning, Sregion_beginning, 0, 0, 0, doc: /* Return position of beginning of region, as an integer. */) - () + (void) { return region_limit (1); } DEFUN ("region-end", Fregion_end, Sregion_end, 0, 0, 0, doc: /* Return position of end of region, as an integer. */) - () + (void) { return region_limit (0); } @@ -363,7 +359,7 @@ doc: /* Return this buffer's mark, as a marker object. Watch out! Moving this marker changes the mark position. If you set the marker not to point anywhere, the buffer will have no mark. */) - () + (void) { return current_buffer->mark; } @@ -639,8 +635,7 @@ doc: /* Delete the field surrounding POS. A field is a region of text with the same `field' property. If POS is nil, the value of point is used for POS. */) - (pos) - Lisp_Object pos; + (Lisp_Object pos) { int beg, end; find_field (pos, Qnil, Qnil, &beg, Qnil, &end); @@ -653,8 +648,7 @@ doc: /* Return the contents of the field surrounding POS as a string. A field is a region of text with the same `field' property. If POS is nil, the value of point is used for POS. */) - (pos) - Lisp_Object pos; + (Lisp_Object pos) { int beg, end; find_field (pos, Qnil, Qnil, &beg, Qnil, &end); @@ -665,8 +659,7 @@ doc: /* Return the contents of the field around POS, without text properties. A field is a region of text with the same `field' property. If POS is nil, the value of point is used for POS. */) - (pos) - Lisp_Object pos; + (Lisp_Object pos) { int beg, end; find_field (pos, Qnil, Qnil, &beg, Qnil, &end); @@ -681,8 +674,7 @@ field, then the beginning of the *previous* field is returned. If LIMIT is non-nil, it is a buffer position; if the beginning of the field is before LIMIT, then LIMIT will be returned instead. */) - (pos, escape_from_edge, limit) - Lisp_Object pos, escape_from_edge, limit; + (Lisp_Object pos, Lisp_Object escape_from_edge, Lisp_Object limit) { int beg; find_field (pos, escape_from_edge, limit, &beg, Qnil, 0); @@ -697,8 +689,7 @@ then the end of the *following* field is returned. If LIMIT is non-nil, it is a buffer position; if the end of the field is after LIMIT, then LIMIT will be returned instead. */) - (pos, escape_from_edge, limit) - Lisp_Object pos, escape_from_edge, limit; + (Lisp_Object pos, Lisp_Object escape_from_edge, Lisp_Object limit) { int end; find_field (pos, escape_from_edge, Qnil, 0, limit, &end); @@ -732,9 +723,7 @@ a non-nil property of that name, then any field boundaries are ignored. Field boundaries are not noticed if `inhibit-field-text-motion' is non-nil. */) - (new_pos, old_pos, escape_from_edge, only_in_line, inhibit_capture_property) - Lisp_Object new_pos, old_pos; - Lisp_Object escape_from_edge, only_in_line, inhibit_capture_property; + (Lisp_Object new_pos, Lisp_Object old_pos, Lisp_Object escape_from_edge, Lisp_Object only_in_line, Lisp_Object inhibit_capture_property) { /* If non-zero, then the original point, before re-positioning. */ int orig_point = 0; @@ -829,8 +818,7 @@ boundaries bind `inhibit-field-text-motion' to t. This function does not move point. */) - (n) - Lisp_Object n; + (Lisp_Object n) { int orig, orig_byte, end; int count = SPECPDL_INDEX (); @@ -868,8 +856,7 @@ boundaries bind `inhibit-field-text-motion' to t. This function does not move point. */) - (n) - Lisp_Object n; + (Lisp_Object n) { int end_pos; int orig = PT; @@ -1000,8 +987,7 @@ then just use `save-current-buffer', or even `with-current-buffer'. usage: (save-excursion &rest BODY) */) - (args) - Lisp_Object args; + (Lisp_Object args) { register Lisp_Object val; int count = SPECPDL_INDEX (); @@ -1016,8 +1002,7 @@ doc: /* Save the current buffer; execute BODY; restore the current buffer. Executes BODY just like `progn'. usage: (save-current-buffer &rest BODY) */) - (args) - Lisp_Object args; + (Lisp_Object args) { Lisp_Object val; int count = SPECPDL_INDEX (); @@ -1031,8 +1016,7 @@ DEFUN ("buffer-size", Fbufsize, Sbufsize, 0, 1, 0, doc: /* Return the number of characters in the current buffer. If BUFFER, return the number of characters in that buffer instead. */) - (buffer) - Lisp_Object buffer; + (Lisp_Object buffer) { if (NILP (buffer)) return make_number (Z - BEG); @@ -1047,7 +1031,7 @@ DEFUN ("point-min", Fpoint_min, Spoint_min, 0, 0, 0, doc: /* Return the minimum permissible value of point in the current buffer. This is 1, unless narrowing (a buffer restriction) is in effect. */) - () + (void) { Lisp_Object temp; XSETFASTINT (temp, BEGV); @@ -1057,7 +1041,7 @@ DEFUN ("point-min-marker", Fpoint_min_marker, Spoint_min_marker, 0, 0, 0, doc: /* Return a marker to the minimum permissible value of point in this buffer. This is the beginning, unless narrowing (a buffer restriction) is in effect. */) - () + (void) { return buildmark (BEGV, BEGV_BYTE); } @@ -1066,7 +1050,7 @@ doc: /* Return the maximum permissible value of point in the current buffer. This is (1+ (buffer-size)), unless narrowing (a buffer restriction) is in effect, in which case it is less. */) - () + (void) { Lisp_Object temp; XSETFASTINT (temp, ZV); @@ -1077,7 +1061,7 @@ doc: /* Return a marker to the maximum permissible value of point in this buffer. This is (1+ (buffer-size)), unless narrowing (a buffer restriction) is in effect, in which case it is less. */) - () + (void) { return buildmark (ZV, ZV_BYTE); } @@ -1085,7 +1069,7 @@ DEFUN ("gap-position", Fgap_position, Sgap_position, 0, 0, 0, doc: /* Return the position of the gap, in the current buffer. See also `gap-size'. */) - () + (void) { Lisp_Object temp; XSETFASTINT (temp, GPT); @@ -1095,7 +1079,7 @@ DEFUN ("gap-size", Fgap_size, Sgap_size, 0, 0, 0, doc: /* Return the size of the current buffer's gap. See also `gap-position'. */) - () + (void) { Lisp_Object temp; XSETFASTINT (temp, GAP_SIZE); @@ -1105,8 +1089,7 @@ DEFUN ("position-bytes", Fposition_bytes, Sposition_bytes, 1, 1, 0, doc: /* Return the byte position for character position POSITION. If POSITION is out of range, the value is nil. */) - (position) - Lisp_Object position; + (Lisp_Object position) { CHECK_NUMBER_COERCE_MARKER (position); if (XINT (position) < BEG || XINT (position) > Z) @@ -1117,8 +1100,7 @@ DEFUN ("byte-to-position", Fbyte_to_position, Sbyte_to_position, 1, 1, 0, doc: /* Return the character position for byte position BYTEPOS. If BYTEPOS is out of range, the value is nil. */) - (bytepos) - Lisp_Object bytepos; + (Lisp_Object bytepos) { CHECK_NUMBER (bytepos); if (XINT (bytepos) < BEG_BYTE || XINT (bytepos) > Z_BYTE) @@ -1129,7 +1111,7 @@ DEFUN ("following-char", Ffollowing_char, Sfollowing_char, 0, 0, 0, doc: /* Return the character following point, as a number. At the end of the buffer or accessible region, return 0. */) - () + (void) { Lisp_Object temp; if (PT >= ZV) @@ -1142,7 +1124,7 @@ DEFUN ("preceding-char", Fprevious_char, Sprevious_char, 0, 0, 0, doc: /* Return the character preceding point, as a number. At the beginning of the buffer or accessible region, return 0. */) - () + (void) { Lisp_Object temp; if (PT <= BEGV) @@ -1161,7 +1143,7 @@ DEFUN ("bobp", Fbobp, Sbobp, 0, 0, 0, doc: /* Return t if point is at the beginning of the buffer. If the buffer is narrowed, this means the beginning of the narrowed part. */) - () + (void) { if (PT == BEGV) return Qt; @@ -1171,7 +1153,7 @@ DEFUN ("eobp", Feobp, Seobp, 0, 0, 0, doc: /* Return t if point is at the end of the buffer. If the buffer is narrowed, this means the end of the narrowed part. */) - () + (void) { if (PT == ZV) return Qt; @@ -1180,7 +1162,7 @@ DEFUN ("bolp", Fbolp, Sbolp, 0, 0, 0, doc: /* Return t if point is at the beginning of a line. */) - () + (void) { if (PT == BEGV || FETCH_BYTE (PT_BYTE - 1) == '\n') return Qt; @@ -1190,7 +1172,7 @@ DEFUN ("eolp", Feolp, Seolp, 0, 0, 0, doc: /* Return t if point is at the end of a line. `End of a line' includes point being at the end of the buffer. */) - () + (void) { if (PT == ZV || FETCH_BYTE (PT_BYTE) == '\n') return Qt; @@ -1201,8 +1183,7 @@ doc: /* Return character in current buffer at position POS. POS is an integer or a marker and defaults to point. If POS is out of range, the value is nil. */) - (pos) - Lisp_Object pos; + (Lisp_Object pos) { register int pos_byte; @@ -1234,8 +1215,7 @@ doc: /* Return character in current buffer preceding position POS. POS is an integer or a marker and defaults to point. If POS is out of range, the value is nil. */) - (pos) - Lisp_Object pos; + (Lisp_Object pos) { register Lisp_Object val; register int pos_byte; @@ -1284,8 +1264,7 @@ If optional argument UID is an integer or a float, return the login name of the user with that uid, or nil if there is no such user. */) - (uid) - Lisp_Object uid; + (Lisp_Object uid) { struct passwd *pw; uid_t id; @@ -1311,7 +1290,7 @@ doc: /* Return the name of the user's real uid, as a string. This ignores the environment variables LOGNAME and USER, so it differs from `user-login-name' when running under `su'. */) - () + (void) { /* Set up the user name info if we didn't do it before. (That can happen if Emacs is dumpable @@ -1324,7 +1303,7 @@ DEFUN ("user-uid", Fuser_uid, Suser_uid, 0, 0, 0, doc: /* Return the effective uid of Emacs. Value is an integer or a float, depending on the value. */) - () + (void) { /* Assignment to EMACS_INT stops GCC whining about limited range of data type. */ @@ -1340,7 +1319,7 @@ DEFUN ("user-real-uid", Fuser_real_uid, Suser_real_uid, 0, 0, 0, doc: /* Return the real uid of Emacs. Value is an integer or a float, depending on the value. */) - () + (void) { /* Assignment to EMACS_INT stops GCC whining about limited range of data type. */ @@ -1362,8 +1341,7 @@ of the user with that uid, or nil if there is no such user. If UID is a string, return the full name of the user with that login name, or nil if there is no such user. */) - (uid) - Lisp_Object uid; + (Lisp_Object uid) { struct passwd *pw; register unsigned char *p, *q; @@ -1419,7 +1397,7 @@ DEFUN ("system-name", Fsystem_name, Ssystem_name, 0, 0, 0, doc: /* Return the host name of the machine you are running on, as a string. */) - () + (void) { return Vsystem_name; } @@ -1446,7 +1424,7 @@ DEFUN ("emacs-pid", Femacs_pid, Semacs_pid, 0, 0, 0, doc: /* Return the process ID of Emacs, as an integer. */) - () + (void) { return make_number (getpid ()); } @@ -1460,7 +1438,7 @@ The microsecond count is zero on systems that do not provide resolution finer than a second. */) - () + (void) { EMACS_TIME t; @@ -1481,7 +1459,7 @@ On systems that can't determine the run time, `get-internal-run-time' does the same thing as `current-time'. The microsecond count is zero on systems that do not provide resolution finer than a second. */) - () + (void) { #ifdef HAVE_GETRUSAGE struct rusage usage; @@ -1572,8 +1550,7 @@ WARNING: Since the result is floating point, it may not be exact. If precise time stamps are required, use either `current-time', or (if you need time as a string) `format-time-string'. */) - (specified_time) - Lisp_Object specified_time; + (Lisp_Object specified_time) { time_t sec; int usec; @@ -1683,8 +1660,7 @@ %OX is like %X, but uses the locale's number symbols. For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z". */) - (format_string, time, universal) - Lisp_Object format_string, time, universal; + (Lisp_Object format_string, Lisp_Object time, Lisp_Object universal) { time_t value; int size; @@ -1751,8 +1727,7 @@ otherwise nil. ZONE is an integer indicating the number of seconds east of Greenwich. (Note that Common Lisp has different meanings for DOW and ZONE.) */) - (specified_time) - Lisp_Object specified_time; + (Lisp_Object specified_time) { time_t time_spec; struct tm save_tm; @@ -1812,9 +1787,7 @@ year values as low as 1901 do work. usage: (encode-time SECOND MINUTE HOUR DAY MONTH YEAR &optional ZONE) */) - (nargs, args) - int nargs; - register Lisp_Object *args; + (int nargs, register Lisp_Object *args) { time_t time; struct tm tm; @@ -1900,8 +1873,7 @@ Thus, you can use times obtained from `current-time' and from `file-attributes'. SPECIFIED-TIME can also have the form (HIGH . LOW), but this is considered obsolete. */) - (specified_time) - Lisp_Object specified_time; + (Lisp_Object specified_time) { time_t value; struct tm *tm; @@ -1963,8 +1935,7 @@ Some operating systems cannot provide all this information to Emacs; in this case, `current-time-zone' returns a list containing nil for the data it can't find. */) - (specified_time) - Lisp_Object specified_time; + (Lisp_Object specified_time) { time_t value; struct tm *t; @@ -2028,8 +1999,7 @@ doc: /* Set the local time zone using TZ, a string specifying a time zone rule. If TZ is nil, use implementation-defined default time zone information. If TZ is t, use Universal Time. */) - (tz) - Lisp_Object tz; + (Lisp_Object tz) { char *tzstring; @@ -2225,9 +2195,7 @@ and insert the result. usage: (insert &rest ARGS) */) - (nargs, args) - int nargs; - register Lisp_Object *args; + (int nargs, register Lisp_Object *args) { general_insert_function (insert, insert_from_string, 0, nargs, args); return Qnil; @@ -2246,9 +2214,7 @@ to unibyte for insertion. usage: (insert-and-inherit &rest ARGS) */) - (nargs, args) - int nargs; - register Lisp_Object *args; + (int nargs, register Lisp_Object *args) { general_insert_function (insert_and_inherit, insert_from_string, 1, nargs, args); @@ -2265,9 +2231,7 @@ to unibyte for insertion. usage: (insert-before-markers &rest ARGS) */) - (nargs, args) - int nargs; - register Lisp_Object *args; + (int nargs, register Lisp_Object *args) { general_insert_function (insert_before_markers, insert_from_string_before_markers, 0, @@ -2286,9 +2250,7 @@ to unibyte for insertion. usage: (insert-before-markers-and-inherit &rest ARGS) */) - (nargs, args) - int nargs; - register Lisp_Object *args; + (int nargs, register Lisp_Object *args) { general_insert_function (insert_before_markers_and_inherit, insert_from_string_before_markers, 1, @@ -2301,8 +2263,7 @@ Point, and before-insertion markers, are relocated as in the function `insert'. The optional third arg INHERIT, if non-nil, says to inherit text properties from adjoining text, if those properties are sticky. */) - (character, count, inherit) - Lisp_Object character, count, inherit; + (Lisp_Object character, Lisp_Object count, Lisp_Object inherit) { register unsigned char *string; register int strlen; @@ -2354,8 +2315,7 @@ Point, and before-insertion markers, are relocated as in the function `insert'. The optional third arg INHERIT, if non-nil, says to inherit text properties from adjoining text, if those properties are sticky. */) - (byte, count, inherit) - Lisp_Object byte, count, inherit; + (Lisp_Object byte, Lisp_Object count, Lisp_Object inherit) { CHECK_NUMBER (byte); if (XINT (byte) < 0 || XINT (byte) > 255) @@ -2477,8 +2437,7 @@ This function copies the text properties of that part of the buffer into the result string; if you don't want the text properties, use `buffer-substring-no-properties' instead. */) - (start, end) - Lisp_Object start, end; + (Lisp_Object start, Lisp_Object end) { register int b, e; @@ -2494,8 +2453,7 @@ doc: /* Return the characters of part of the buffer, without the text properties. The two arguments START and END are character positions; they can be in either order. */) - (start, end) - Lisp_Object start, end; + (Lisp_Object start, Lisp_Object end) { register int b, e; @@ -2510,7 +2468,7 @@ doc: /* Return the contents of the current buffer as a string. If narrowing is in effect, this function returns only the visible part of the buffer. */) - () + (void) { return make_buffer_string (BEGV, ZV, 1); } @@ -2521,8 +2479,7 @@ BUFFER may be a buffer or a buffer name. Arguments START and END are character positions specifying the substring. They default to the values of (point-min) and (point-max) in BUFFER. */) - (buffer, start, end) - Lisp_Object buffer, start, end; + (Lisp_Object buffer, Lisp_Object start, Lisp_Object end) { register int b, e, temp; register struct buffer *bp, *obuf; @@ -2575,8 +2532,7 @@ The value of `case-fold-search' in the current buffer determines whether case is significant or ignored. */) - (buffer1, start1, end1, buffer2, start2, end2) - Lisp_Object buffer1, start1, end1, buffer2, start2, end2; + (Lisp_Object buffer1, Lisp_Object start1, Lisp_Object end1, Lisp_Object buffer2, Lisp_Object start2, Lisp_Object end2) { register int begp1, endp1, begp2, endp2, temp; register struct buffer *bp1, *bp2; @@ -2743,8 +2699,7 @@ If optional arg NOUNDO is non-nil, don't record this change for undo and don't mark the buffer as really changed. Both characters must have the same length of multi-byte form. */) - (start, end, fromchar, tochar, noundo) - Lisp_Object start, end, fromchar, tochar, noundo; + (Lisp_Object start, Lisp_Object end, Lisp_Object fromchar, Lisp_Object tochar, Lisp_Object noundo) { register int pos, pos_byte, stop, i, len, end_byte; /* Keep track of the first change in the buffer: @@ -2985,10 +2940,7 @@ TABLE is a string or a char-table; the Nth character in it is the mapping for the character with code N. It returns the number of characters changed. */) - (start, end, table) - Lisp_Object start; - Lisp_Object end; - register Lisp_Object table; + (Lisp_Object start, Lisp_Object end, register Lisp_Object table) { register unsigned char *tt; /* Trans table. */ register int nc; /* New character. */ @@ -3154,8 +3106,7 @@ When called from a program, expects two arguments, positions (integers or markers) specifying the stretch to be deleted. */) - (start, end) - Lisp_Object start, end; + (Lisp_Object start, Lisp_Object end) { validate_region (&start, &end); del_range (XINT (start), XINT (end)); @@ -3165,8 +3116,7 @@ DEFUN ("delete-and-extract-region", Fdelete_and_extract_region, Sdelete_and_extract_region, 2, 2, 0, doc: /* Delete the text between START and END and return it. */) - (start, end) - Lisp_Object start, end; + (Lisp_Object start, Lisp_Object end) { validate_region (&start, &end); if (XINT (start) == XINT (end)) @@ -3177,7 +3127,7 @@ DEFUN ("widen", Fwiden, Swiden, 0, 0, "", doc: /* Remove restrictions (narrowing) from current buffer. This allows the buffer's full text to be seen and edited. */) - () + (void) { if (BEG != BEGV || Z != ZV) current_buffer->clip_changed = 1; @@ -3198,8 +3148,7 @@ When calling from a program, pass two arguments; positions (integers or markers) bounding the text that should remain visible. */) - (start, end) - register Lisp_Object start, end; + (register Lisp_Object start, Lisp_Object end) { CHECK_NUMBER_COERCE_MARKER (start); CHECK_NUMBER_COERCE_MARKER (end); @@ -3332,8 +3281,7 @@ (save-excursion (save-restriction ...)) usage: (save-restriction &rest BODY) */) - (body) - Lisp_Object body; + (Lisp_Object body) { register Lisp_Object val; int count = SPECPDL_INDEX (); @@ -3366,9 +3314,7 @@ also `current-message'. usage: (message FORMAT-STRING &rest ARGS) */) - (nargs, args) - int nargs; - Lisp_Object *args; + (int nargs, Lisp_Object *args) { if (NILP (args[0]) || (STRINGP (args[0]) @@ -3396,9 +3342,7 @@ message; let the minibuffer contents show. usage: (message-box FORMAT-STRING &rest ARGS) */) - (nargs, args) - int nargs; - Lisp_Object *args; + (int nargs, Lisp_Object *args) { if (NILP (args[0])) { @@ -3458,9 +3402,7 @@ message; let the minibuffer contents show. usage: (message-or-box FORMAT-STRING &rest ARGS) */) - (nargs, args) - int nargs; - Lisp_Object *args; + (int nargs, Lisp_Object *args) { #ifdef HAVE_MENUS if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) @@ -3472,7 +3414,7 @@ DEFUN ("current-message", Fcurrent_message, Scurrent_message, 0, 0, 0, doc: /* Return the string currently displayed in the echo area, or nil if none. */) - () + (void) { return current_message (); } @@ -3484,9 +3426,7 @@ Remaining arguments form a sequence of PROPERTY VALUE pairs for text properties to add to the result. usage: (propertize STRING &rest PROPERTIES) */) - (nargs, args) - int nargs; - Lisp_Object *args; + (int nargs, Lisp_Object *args) { Lisp_Object properties, string; struct gcpro gcpro1, gcpro2; @@ -3568,9 +3508,7 @@ specifier truncates the string to the given width. usage: (format STRING &rest OBJECTS) */) - (nargs, args) - int nargs; - register Lisp_Object *args; + (int nargs, register Lisp_Object *args) { register int n; /* The number of the next arg to substitute */ register int total; /* An estimate of the final length */ @@ -4186,8 +4124,7 @@ doc: /* Return t if two characters match, optionally ignoring case. Both arguments must be characters (i.e. integers). Case is ignored if `case-fold-search' is non-nil in the current buffer. */) - (c1, c2) - register Lisp_Object c1, c2; + (register Lisp_Object c1, Lisp_Object c2) { int i1, i2; /* Check they're chars, not just integers, otherwise we could get array @@ -4313,8 +4250,7 @@ any markers that happen to be located in the regions. Transposing beyond buffer boundaries is an error. */) - (startr1, endr1, startr2, endr2, leave_markers) - Lisp_Object startr1, endr1, startr2, endr2, leave_markers; + (Lisp_Object startr1, Lisp_Object endr1, Lisp_Object startr2, Lisp_Object endr2, Lisp_Object leave_markers) { register EMACS_INT start1, end1, start2, end2; EMACS_INT start1_byte, start2_byte, len1_byte, len2_byte;