From c627b2a3a1ca1a6aca1c20e133db0f95a65a71fb Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 28 May 1996 21:40:52 +0000 Subject: split the inclusion of "EXTERN" data based on whether it was sapi, score, rtems api, or posix api related. --- c/src/exec/score/include/rtems/system.h | 41 ++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 8 deletions(-) (limited to 'c/src/exec/score/include/rtems/system.h') 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 -- cgit v1.2.3