From: Sven Verdoolaege Date: Wed, 3 Mar 2010 22:04:34 +0000 (+0100) Subject: isl_stream: parse NaN X-Git-Tag: isl-0.02~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e66467246b555a4df2af7b69003d87d7a10bf9b;p=platform%2Fupstream%2Fisl.git isl_stream: parse NaN --- diff --git a/include/isl_stream.h b/include/isl_stream.h index b69e8ab..f3ab6f2 100644 --- a/include/isl_stream.h +++ b/include/isl_stream.h @@ -23,7 +23,7 @@ enum isl_token_type { ISL_TOKEN_ERROR = -1, ISL_TOKEN_LE, ISL_TOKEN_GT, ISL_TOKEN_LT, ISL_TOKEN_TO, ISL_TOKEN_AND, ISL_TOKEN_OR, ISL_TOKEN_EXISTS, - ISL_TOKEN_DEF, ISL_TOKEN_INFTY, + ISL_TOKEN_DEF, ISL_TOKEN_INFTY, ISL_TOKEN_NAN, ISL_TOKEN_LAST }; struct isl_token { diff --git a/isl_stream.c b/isl_stream.c index fe5ee87..37fa75f 100644 --- a/isl_stream.c +++ b/isl_stream.c @@ -213,6 +213,8 @@ static enum isl_token_type check_keywords(struct isl_stream *s) return ISL_TOKEN_INFTY; if (!strcasecmp(s->buffer, "infinity")) return ISL_TOKEN_INFTY; + if (!strcasecmp(s->buffer, "NaN")) + return ISL_TOKEN_NAN; if (!s->keywords) return ISL_TOKEN_IDENT;