]> git.eshelyaron.com Git - emacs.git/commitdiff
(xmalloc, xrealloc): Declare them here.
authorRichard M. Stallman <rms@gnu.org>
Sun, 9 Apr 1995 04:50:38 +0000 (04:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 9 Apr 1995 04:50:38 +0000 (04:50 +0000)
(doprnt): Cast pointer to int by way of EMACS_INT.

src/doprnt.c

index 3ea758d71e8a45f8e1720765450136217de9ced5..1743c785f010ac325f474a2af0647bd9fabbda20 100644 (file)
@@ -24,6 +24,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <stdio.h>
 #include <ctype.h>
 
+extern long *xmalloc (), *xrealloc ();
+
 /* Generate output from a format-spec FORMAT,
    terminated at position FORMAT_END.
    Output goes in BUFFER, which has room for BUFSIZE chars.
@@ -186,7 +188,7 @@ doprnt (buffer, bufsize, format, format_end, nargs, args)
            case 'c':
              if (cnt == nargs)
                error ("not enough arguments for format string");
-             *charbuf = (int) args[cnt++];
+             *charbuf = (EMACS_INT) args[cnt++];
              string = charbuf;
              tem = 1;
              if (fmtcpy[1] != 'c')