Mercurial > emacs
diff src/regex.c @ 44145:aad3682a49ba
(GET_UNSIGNED_NUMBER): Give proper error for spaces.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 25 Mar 2002 00:45:48 +0000 |
parents | fd6c1f8ebd4e |
children | c299d527a088 |
line wrap: on
line diff
--- a/src/regex.c Mon Mar 25 00:44:51 2002 +0000 +++ b/src/regex.c Mon Mar 25 00:45:48 2002 +0000 @@ -1944,7 +1944,8 @@ do { if (p != pend) \ { \ PATFETCH (c); \ - while (c == ' ') PATFETCH (c); \ + if (c == ' ') \ + FREE_STACK_RETURN (REG_BADBR); \ while ('0' <= c && c <= '9') \ { \ int prev; \ @@ -1958,7 +1959,8 @@ break; \ PATFETCH (c); \ } \ - while (c == ' ') PATFETCH (c); \ + if (c == ' ') \ + FREE_STACK_RETURN (REG_BADBR); \ } \ } while (0)