Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5d5b907f
Commit
5d5b907f
authored
May 05, 1995
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fexecute_extended_command): Handle long EMACS_INT in sprintf.
parent
b8180922
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
src/keyboard.c
src/keyboard.c
+16
-2
No files found.
src/keyboard.c
View file @
5d5b907f
...
...
@@ -6054,9 +6054,23 @@ DEFUN ("execute-extended-command", Fexecute_extended_command, Sexecute_extended_
else
if
(
CONSP
(
prefixarg
)
&&
XINT
(
XCONS
(
prefixarg
)
->
car
)
==
4
)
strcpy
(
buf
,
"C-u "
);
else
if
(
CONSP
(
prefixarg
)
&&
INTEGERP
(
XCONS
(
prefixarg
)
->
car
))
sprintf
(
buf
,
"%d "
,
XINT
(
XCONS
(
prefixarg
)
->
car
));
{
if
(
sizeof
(
int
)
==
sizeof
(
EMACS_INT
))
sprintf
(
buf
,
"%d "
,
XINT
(
XCONS
(
prefixarg
)
->
car
));
else
if
(
sizeof
(
long
)
==
sizeof
(
EMACS_INT
))
sprintf
(
buf
,
"%ld "
,
XINT
(
XCONS
(
prefixarg
)
->
car
));
else
abort
();
}
else
if
(
INTEGERP
(
prefixarg
))
sprintf
(
buf
,
"%d "
,
XINT
(
prefixarg
));
{
if
(
sizeof
(
int
)
==
sizeof
(
EMACS_INT
))
sprintf
(
buf
,
"%d "
,
XINT
(
prefixarg
));
else
if
(
sizeof
(
long
)
==
sizeof
(
EMACS_INT
))
sprintf
(
buf
,
"%ld "
,
XINT
(
prefixarg
));
else
abort
();
}
/* This isn't strictly correct if execute-extended-command
is bound to anything else. Perhaps it should use
...
...
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