Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1077c789
Commit
1077c789
authored
Apr 09, 1995
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(xmalloc, xrealloc): Declare them here.
(doprnt): Cast pointer to int by way of EMACS_INT.
parent
7d5f0c06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/doprnt.c
src/doprnt.c
+3
-1
No files found.
src/doprnt.c
View file @
1077c789
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment