summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/mathl
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-12-13 12:11:10 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-12-13 12:11:10 +0000
commitb3dbca32f20049315ff0304d41ffe4d2daba8fb9 (patch)
treed564963b8bd787e9efd6abcd232308d4935d7120 /testsuites/libtests/mathl
parent2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-b3dbca32f20049315ff0304d41ffe4d2daba8fb9.tar.bz2
2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* math/init.c, mathf/init.c, mathl/init.c: Move configuration section. * math/domath.c, mathf/domathf.c, mathl/domathl.c: Regenerate. * math/domath.in: Generate domath* prototype.
Diffstat (limited to 'testsuites/libtests/mathl')
-rw-r--r--testsuites/libtests/mathl/domathl.c4
-rw-r--r--testsuites/libtests/mathl/init.c28
2 files changed, 16 insertions, 16 deletions
diff --git a/testsuites/libtests/mathl/domathl.c b/testsuites/libtests/mathl/domathl.c
index 74b58e65fd..3ff381d712 100644
--- a/testsuites/libtests/mathl/domathl.c
+++ b/testsuites/libtests/mathl/domathl.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010 by
+ * Copyright (c) 2010, 2011 by
* Ralf Corsepius, Ulm/Germany. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
@@ -25,6 +25,8 @@
#define M_PI_4 0.78539816339744830962
#endif
+extern void domathl (void);
+
void
domathl (void)
{
diff --git a/testsuites/libtests/mathl/init.c b/testsuites/libtests/mathl/init.c
index 831aa97361..cb35aa4e55 100644
--- a/testsuites/libtests/mathl/init.c
+++ b/testsuites/libtests/mathl/init.c
@@ -34,6 +34,19 @@
extern void domathl(void);
#if __rtems__
+/* NOTICE: the clock driver is explicitly disabled */
+#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
+#define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM
+
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+#include <rtems/confdefs.h>
+
rtems_task Init(
rtems_task_argument ignored
)
@@ -48,18 +61,3 @@ int main( void )
fprintf( stdout, "*** END OF LONG DOUBLE MATH TEST ***\n" );
exit( 0 );
}
-
-#if __rtems__
-/* NOTICE: the clock driver is explicitly disabled */
-#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
-#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
-
-#define CONFIGURE_MAXIMUM_TASKS 1
-#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
-#define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM
-
-#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
-
-#define CONFIGURE_INIT
-#include <rtems/confdefs.h>
-#endif