| Line | |
|---|
| 1 | #ifndef DIM_CORE
|
|---|
| 2 | #define DIM_CORE
|
|---|
| 3 |
|
|---|
| 4 | #if defined __cplusplus
|
|---|
| 5 | /* If the functions in this header have C linkage, this
|
|---|
| 6 | * will specify linkage for all C++ language compilers.
|
|---|
| 7 | */
|
|---|
| 8 | extern "C" {
|
|---|
| 9 | #endif
|
|---|
| 10 |
|
|---|
| 11 | # if defined __DECC || defined __DECCXX
|
|---|
| 12 | /* If you are using pragmas that are only defined
|
|---|
| 13 | * with DEC C and DEC C++, this line is necessary
|
|---|
| 14 | * for both C and C++ compilers. A common error
|
|---|
| 15 | * is to only have #ifdef __DECC, which causes
|
|---|
| 16 | * the compiler to skip the conditionalized
|
|---|
| 17 | * code.
|
|---|
| 18 | */
|
|---|
| 19 | # pragma __extern_model __save
|
|---|
| 20 | # pragma __extern_model __strict_refdef
|
|---|
| 21 | extern const char some_definition [];
|
|---|
| 22 | # pragma __extern_model __restore
|
|---|
| 23 | # endif
|
|---|
| 24 |
|
|---|
| 25 | /* ...some data and function definitions go here... */
|
|---|
| 26 |
|
|---|
| 27 | #include "dis.h"
|
|---|
| 28 | #include "dic.h"
|
|---|
| 29 |
|
|---|
| 30 | #if defined __cplusplus
|
|---|
| 31 | } /* matches the linkage specification at the beginning. */
|
|---|
| 32 | #endif
|
|---|
| 33 |
|
|---|
| 34 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.