projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fc4d5d
)
(parse_action_list): Handle the case "(insert INTEGER)".
author
handa
<handa>
Fri, 25 Jan 2008 11:54:53 +0000
(11:54 +0000)
committer
handa
<handa>
Fri, 25 Jan 2008 11:54:53 +0000
(11:54 +0000)
src/input.c
patch
|
blob
|
history
diff --git
a/src/input.c
b/src/input.c
index
76f0261
..
635efb9
100644
(file)
--- a/
src/input.c
+++ b/
src/input.c
@@
-830,6
+830,13
@@
parse_action_list (MPlist *plist, MPlist *macros)
if (mtext_nchars (MPLIST_MTEXT (pl)) == 0)
MERROR (MERROR_IM, -1);
}
+ else if (MPLIST_INTEGER_P (pl))
+ {
+ int c = MPLIST_INTEGER (pl);
+
+ if (c < 0 || c > MCHAR_MAX)
+ MERROR (MERROR_IM, -1);
+ }
else if (MPLIST_PLIST_P (pl))
{
MPLIST_DO (pl, MPLIST_PLIST (pl))