[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commits] r16172 - in /libdfp/trunk: ChangeLog tests/decode.h tests/scaffold.c tests/test-strtod.c
- To: commits@xxxxxxxxxx
- Subject: [Commits] r16172 - in /libdfp/trunk: ChangeLog tests/decode.h tests/scaffold.c tests/test-strtod.c
- From: ryanarn@xxxxxxxxxx
- Date: Sat, 10 Dec 2011 16:51:16 -0000
Author: ryanarn
Date: Sat Dec 10 16:51:16 2011
New Revision: 16172
Log:
Allow decoded[32|64|128] to be used in C++ compatibility test cases without
warning.
2011-12-10 Ryan S. Arnold <rsa@xxxxxxxxxxxxxxxxxx>
* decode.h: Added __BEGIN_DECLS and __END_DECLS around
decoded[32|64|128] prototypes in order to allow them to be used in C++
compatibility testcases without warnings.
* scaffold.c: Removed extra #include "decode.h".
* test-strtod.c: Likewise.
Modified:
libdfp/trunk/ChangeLog
libdfp/trunk/tests/decode.h
libdfp/trunk/tests/scaffold.c
libdfp/trunk/tests/test-strtod.c
Modified: libdfp/trunk/ChangeLog
==============================================================================
--- libdfp/trunk/ChangeLog (original)
+++ libdfp/trunk/ChangeLog Sat Dec 10 16:51:16 2011
@@ -1,3 +1,11 @@
+2011-12-10 Ryan S. Arnold <rsa@xxxxxxxxxxxxxxxxxx>
+
+ * decode.h: Added __BEGIN_DECLS and __END_DECLS around
+ decoded[32|64|128] prototypes in order to allow them to be used in C++
+ compatibility testcases without warnings.
+ * scaffold.c: Removed extra #include "decode.h".
+ * test-strtod.c: Likewise.
+
2011-12-10 Ryan S. Arnold <rsa@xxxxxxxxxxxxxxxxxx>
* Makefile.in: Copied contents of $(system_header_dirs) into
Modified: libdfp/trunk/tests/decode.h
==============================================================================
--- libdfp/trunk/tests/decode.h (original)
+++ libdfp/trunk/tests/decode.h Sat Dec 10 16:51:16 2011
@@ -25,6 +25,10 @@
#ifndef _DFP_DECODE_H
#define _DFP_DECODE_H
+#include <features.h>
+
+__BEGIN_DECLS
+
/* char * should ref a 14 byte char array, +0,000,000E+0\0 */
extern char * decoded32 (_Decimal32, char*);
/* char * should ref a 26 byte char array, +0,000,000,000,000,000E+0\0 */
@@ -33,4 +37,6 @@
* +0,000,000,000,000,000,000,000,000,000,000,000E+0\0 */
extern char * decoded128 (_Decimal128, char*);
+__END_DECLS
+
#endif /* _DFP_DECODE_H */
Modified: libdfp/trunk/tests/scaffold.c
==============================================================================
--- libdfp/trunk/tests/scaffold.c (original)
+++ libdfp/trunk/tests/scaffold.c Sat Dec 10 16:51:16 2011
@@ -24,7 +24,6 @@
#include <stdio.h>
-#include "decode.h"
static int fail = 0;
static int testnum = 0;
Modified: libdfp/trunk/tests/test-strtod.c
==============================================================================
--- libdfp/trunk/tests/test-strtod.c (original)
+++ libdfp/trunk/tests/test-strtod.c Sat Dec 10 16:51:16 2011
@@ -31,11 +31,12 @@
#include <stdint.h>
#include <math.h>
+#include "decode.h"
+
#define _WANT_VC 1
#define _WANT_DC 1
#include "scaffold.c"
-#include "decode.h"
/* Inspired by GLIBC stdio-common/tfformat.c */
typedef struct{
@@ -95,8 +96,6 @@
{0,0,0,0,0 }
};
-#include "decode.h"
-
int main(void) {
d_type *dptr;
_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits