summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/include/rtems/rtems/status.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-10-25 07:45:47 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-10-25 07:45:47 +0000
commit95008c6dc4d1c4cdf63554512ed78b07142da969 (patch)
tree09282f98a224d5f9a3fc72c9c2e8de35a8366fd8 /cpukit/rtems/include/rtems/rtems/status.h
parent2011-10-25 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-95008c6dc4d1c4cdf63554512ed78b07142da969.tar.bz2
2011-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/Makefile.am: Add src/status.c. * rtems/include/rtems/rtems/status.h: Make _Status_Object_name_errors_to_status an external variable. * rtems/src/status.c: New (split out from rtems/include/rtems/rtems/status.h).
Diffstat (limited to 'cpukit/rtems/include/rtems/rtems/status.h')
-rw-r--r--cpukit/rtems/include/rtems/rtems/status.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/status.h b/cpukit/rtems/include/rtems/rtems/status.h
index 0f42a8b54d..7aad661111 100644
--- a/cpukit/rtems/include/rtems/rtems/status.h
+++ b/cpukit/rtems/include/rtems/rtems/status.h
@@ -188,22 +188,7 @@ typedef enum {
* This array is used to map SuperCore Object Handler return
* codes to Classic API status codes.
*/
-#ifdef RTEMS_API_INIT
-const rtems_status_code _Status_Object_name_errors_to_status[] = {
- /** This maps OBJECTS_SUCCESSFUL to RTEMS_SUCCESSFUL. */
- RTEMS_SUCCESSFUL,
- /** This maps OBJECTS_INVALID_NAME to RTEMS_INVALID_NAME. */
- RTEMS_INVALID_NAME,
- /** This maps OBJECTS_INVALID_ADDRESS to RTEMS_INVALID_NAME. */
- RTEMS_INVALID_ADDRESS,
- /** This maps OBJECTS_INVALID_ID to RTEMS_INVALID_ADDRESS. */
- RTEMS_INVALID_ID,
- /** This maps OBJECTS_INVALID_NODE to RTEMS_INVALID_NODE. */
- RTEMS_INVALID_NODE
-};
-#else
-extern rtems_status_code _Status_Object_name_errors_to_status[];
-#endif
+extern const rtems_status_code _Status_Object_name_errors_to_status[];
/*
* Applications are allowed to use the macros to compare status codes.