conformtest: Update expectations for time.h
Joseph S. Myers
joseph@codesourcery.com
Tue Jul 24 00:09:00 GMT 2012
Continuing the review of conformtest data for ISO C standards, this
patch updates the data for time.h to correspond more accurately with
C90, C99 and C11 and to use conformtest features to describe as many
requirements of the standards on that header as possible. Tested
x86_64.
This completes updating for ISO C standards the data for headers
present in C90. I think the next step will be C90 Amendment 1 support
for conformtest, and updates for the headers added in C90 Amendment 1,
so that conformtest then completely covers everything from
stdlib/isomac.c.
2012-07-23 Joseph Myers <joseph@codesourcery.com>
* conform/data/time.h-data (NULL): Use macro-constant. Require
equal to 0.
(CLOCKS_PER_SEC): Use macro instead of constant. Specify type as
clock_t.
[ISO11] (TIME_UTC): Use macro-int-constant. Require value > 0.
diff --git a/conform/data/time.h-data b/conform/data/time.h-data
index 0deb6be..8ed2b4a 100644
--- a/conform/data/time.h-data
+++ b/conform/data/time.h-data
@@ -1,8 +1,8 @@
-constant NULL
-constant CLOCKS_PER_SEC
+macro-constant NULL == 0
+macro CLOCKS_PER_SEC {clock_t}
#ifdef ISO11
-macro TIME_UTC
+macro-int-constant TIME_UTC > 0
#endif
#if !defined ISO && !defined ISO99
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list