From 8eb86ab78d19cc9e97b09cd6107397221552817d Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Thu, 6 May 2010 02:19:00 +0200 Subject: Add nan, snan and inf float constants --- tcctok.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tcctok.h') diff --git a/tcctok.h b/tcctok.h index 02ac767..28c4236 100644 --- a/tcctok.h +++ b/tcctok.h @@ -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") -- cgit v1.3.1