public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b920e5
)
Modified to allow a space between the sign and the first digit of a constant.
author
dtrg
<none@none>
Mon, 23 Apr 2007 23:24:46 +0000
(23:24 +0000)
committer
dtrg
<none@none>
Mon, 23 Apr 2007 23:24:46 +0000
(23:24 +0000)
modules/src/read_em/reade.c
patch
|
blob
|
history
diff --git
a/modules/src/read_em/reade.c
b/modules/src/read_em/reade.c
index
69acf27
..
f8bf157
100644
(file)
--- a/
modules/src/read_em/reade.c
+++ b/
modules/src/read_em/reade.c
@@
-293,6
+293,11
@@
getnumber(c, ap)
c = getbyte();
}
+ /* Soak up any whitespace (to allow "- 4" to be considered a number). */
+
+ while (isspace(c))
+ c = getbyte();
+
if (! isdigit(c)) {
ungetbyte(c);
syntax("digit expected");