diff options
author | Bruno Haible <bruno@clisp.org> | 2000-07-31 20:26:18 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2000-07-31 20:26:18 +0000 |
commit | df9bdbb270ba5ad80d5fde220039c974282887b5 (patch) | |
tree | 609f37ca13852c9672c943495deaea13e8dc9986 /intl/plural.y | |
parent | 2c3d99710370fb090cfd0c792204027fab0cad93 (diff) | |
download | external_gettext-df9bdbb270ba5ad80d5fde220039c974282887b5.zip external_gettext-df9bdbb270ba5ad80d5fde220039c974282887b5.tar.gz external_gettext-df9bdbb270ba5ad80d5fde220039c974282887b5.tar.bz2 |
Portability fixes.
Diffstat (limited to 'intl/plural.y')
-rw-r--r-- | intl/plural.y | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/intl/plural.y b/intl/plural.y index 9a1341b..42aac28 100644 --- a/intl/plural.y +++ b/intl/plural.y @@ -17,6 +17,10 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif + #include <stdarg.h> #include <stdlib.h> #include "gettext.h" @@ -218,7 +222,8 @@ yylex (YYSTYPE *lval, const char **pexp) result = *exp++; switch (result) { - case '0' ... '9': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': { unsigned long int n = exp[-1] - '0'; while (exp[0] >= '0' && exp[0] <= '9') |