summaryrefslogtreecommitdiff
path: root/support/texaccents/compiler.inc
diff options
context:
space:
mode:
Diffstat (limited to 'support/texaccents/compiler.inc')
-rw-r--r--support/texaccents/compiler.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/support/texaccents/compiler.inc b/support/texaccents/compiler.inc
new file mode 100644
index 0000000000..1360dd3834
--- /dev/null
+++ b/support/texaccents/compiler.inc
@@ -0,0 +1,14 @@
+* Compiler.inc
+* Gregory White <glwhite@netconnect.com.au>
+* Posted to the Snobol list (March 2003)
+* and adapted as a function
+
+ DEFINE('COMPILER()') :(COMPILER_END)
+compiler
+IDprocessor :($('COMPILER' SIZE(DATE())))
+COMPILER17 compiler = 'SPITBOL' :(return)
+COMPILER19 compiler = 'CSNOBOL4' :(return)
+COMPILER20 compiler = 'SNOBOL4+' :(return)
+compiler_end
+* Uses the different size of DATE() to detect the compiler used
+