Add nan, snan and inf float constants

This commit is contained in:
Thomas Preud'homme
2010-05-06 02:19:00 +02:00
parent 2220467fcf
commit 8eb86ab78d
2 changed files with 32 additions and 2 deletions

View File

@ -81,10 +81,15 @@
DEF(TOK___TIME__, "__TIME__")
DEF(TOK___FUNCTION__, "__FUNCTION__")
DEF(TOK___VA_ARGS__, "__VA_ARGS__")
/* special identifiers */
DEF(TOK___FUNC__, "__func__")
/* special floating point values */
DEF(TOK___NAN__, "__nan__")
DEF(TOK___SNAN__, "__snan__")
DEF(TOK___INF__, "__inf__")
/* attribute identifiers */
/* XXX: handle all tokens generically since speed is not critical */
DEF(TOK_SECTION1, "section")