summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/math
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/math
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/math')
-rw-r--r--testsuites/libtests/math/domath.c4
-rw-r--r--testsuites/libtests/math/domath.in4
-rw-r--r--testsuites/libtests/math/init.c27
3 files changed, 19 insertions, 16 deletions
diff --git a/testsuites/libtests/math/domath.c b/testsuites/libtests/math/domath.c
index 69f1459767..cc145142f3 100644
--- a/testsuites/libtests/math/domath.c
+++ b/testsuites/libtests/math/domath.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 domath (void);
+
void
domath (void)
{
diff --git a/testsuites/libtests/math/domath.in b/testsuites/libtests/math/domath.in
index 7a46dfa618..92bafff276 100644
--- a/testsuites/libtests/math/domath.in
+++ b/testsuites/libtests/math/domath.in
@@ -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 domath@FSUFFIX@ (void);
+
void
domath@FSUFFIX@ (void)
{
diff --git a/testsuites/libtests/math/init.c b/testsuites/libtests/math/init.c
index c490e6128e..e1ce9c50c1 100644
--- a/testsuites/libtests/math/init.c
+++ b/testsuites/libtests/math/init.c
@@ -34,6 +34,19 @@
extern void domath(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
)
@@ -49,17 +62,3 @@ int main( void )
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