summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/include/rtems/system.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-28 21:40:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-28 21:40:52 +0000
commitc627b2a3a1ca1a6aca1c20e133db0f95a65a71fb (patch)
tree8b369a80629ad635519105f923e1ca5a2a2bc87c /c/src/exec/score/include/rtems/system.h
parentadded maximum keys (diff)
downloadrtems-c627b2a3a1ca1a6aca1c20e133db0f95a65a71fb.tar.bz2
split the inclusion of "EXTERN" data based on whether it was sapi,
score, rtems api, or posix api related.
Diffstat (limited to '')
-rw-r--r--c/src/exec/score/include/rtems/system.h41
1 files changed, 33 insertions, 8 deletions
diff --git a/c/src/exec/score/include/rtems/system.h b/c/src/exec/score/include/rtems/system.h
index 9b50159c81..777a722588 100644
--- a/c/src/exec/score/include/rtems/system.h
+++ b/c/src/exec/score/include/rtems/system.h
@@ -36,16 +36,41 @@ extern "C" {
/*
* The following insures that all data is declared in the space
- * of the Initialization Manager. It is referenced as "external"
- * in every other file.
+ * of the initialization routine for either the Initialization Manager
+ * or the initialization file for the appropriate API. It is
+ * referenced as "external" in every other file.
*/
-#ifdef INIT
-#undef EXTERN
-#define EXTERN
+#ifdef SCORE_INIT
+#undef SCORE_EXTERN
+#define SCORE_EXTERN
#else
-#undef EXTERN
-#define EXTERN extern
+#undef SCORE_EXTERN
+#define SCORE_EXTERN extern
+#endif
+
+#ifdef SAPI_INIT
+#undef SAPI_EXTERN
+#define SAPI_EXTERN
+#else
+#undef SAPI_EXTERN
+#define SAPI_EXTERN extern
+#endif
+
+#ifdef RTEMS_API_INIT
+#undef RTEMS_EXTERN
+#define RTEMS_EXTERN
+#else
+#undef RTEMS_EXTERN
+#define RTEMS_EXTERN extern
+#endif
+
+#ifdef POSIX_API_INIT
+#undef POSIX_EXTERN
+#define POSIX_EXTERN
+#else
+#undef POSIX_EXTERN
+#define POSIX_EXTERN extern
#endif
/*
@@ -118,7 +143,7 @@ extern const char _Copyright_Notice[]; /* RTEMS copyright string */
* The following defines the CPU dependent information table.
*/
-EXTERN rtems_cpu_table _CPU_Table; /* CPU dependent info */
+SCORE_EXTERN rtems_cpu_table _CPU_Table; /* CPU dependent info */
/*
* XXX weird RTEMS stuff