diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-01-27 23:51:56 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-01-27 23:51:56 +0000 |
commit | 6ab0c0f5bf14ed9c15370407b9ee7e0b4b089ae1 (patch) | |
tree | 926065cf45450116098db664e3c61dced9e1f21a /src/h/features.h | |
download | icon-6ab0c0f5bf14ed9c15370407b9ee7e0b4b089ae1.tar.gz |
Initial upstream version 9.4.3upstream/9.4.3
Diffstat (limited to 'src/h/features.h')
-rw-r--r-- | src/h/features.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/src/h/features.h b/src/h/features.h new file mode 100644 index 0000000..047b4df --- /dev/null +++ b/src/h/features.h @@ -0,0 +1,77 @@ +/* + * features.h -- predefined symbols and &features + * + * This file consists entirely of a sequence of conditionalized calls + * to the Feature() macro. The macro is not defined here, but is + * defined to different things by the the code that includes it. + * + * For the macro call Feature(guard,symname,kwval) + * the parameters are: + * guard for the compiler's runtime system, an expression that must + * evaluate as true for the feature to be included in &features + * symname predefined name in the preprocessor; "" if none + * kwval value produced by the &features keyword; 0 if none + * + * The translator and compiler modify this list of predefined symbols + * through calls to ppdef(). + */ + + Feature(1, "_V9", 0) /* Version 9 (unconditional) */ + +#if MSWIN + Feature(1, "_MS_WINDOWS", "MS Windows") +#endif /* MSWIN */ + +#if CYGWIN + Feature(1, "_CYGWIN", "Cygwin") +#endif /* CYGWIN */ + +#if UNIX + Feature(1, "_UNIX", "UNIX") +#endif /* UNIX */ + + Feature(1, "_ASCII", "ASCII") + +#ifdef Coexpr + Feature(1, "_CO_EXPRESSIONS", "co-expressions") +#endif /* Coexpr */ + +#ifdef LoadFunc + Feature(1, "_DYNAMIC_LOADING", "dynamic loading") +#endif /* LoadFunc */ + + Feature(1, "", "environment variables") + +#ifdef EventMon + Feature(1, "_EVENT_MONITOR", "event monitoring") +#endif /* EventMon */ + +#ifdef ExternalFunctions + Feature(1, "_EXTERNAL_FUNCTIONS", "external functions") +#endif /* ExternalFunctions */ + +#ifdef KeyboardFncs + Feature(1, "_KEYBOARD_FUNCTIONS", "keyboard functions") +#endif /* KeyboardFncs */ + +#ifdef LargeInts + Feature(largeints, "_LARGE_INTEGERS", "large integers") +#endif /* LargeInts */ + +#ifdef MultiThread + Feature(1, "_MULTITASKING", "multiple programs") +#endif /* MultiThread */ + +#ifdef Pipes + Feature(1, "_PIPES", "pipes") +#endif /* Pipes */ + + Feature(1, "_SYSTEM_FUNCTION", "system function") + +#ifdef Graphics + Feature(1, "_GRAPHICS", "graphics") +#endif /* Graphics */ + +#ifdef XWindows + Feature(1, "_X_WINDOW_SYSTEM", "X Windows") +#endif /* XWindows */ |