summaryrefslogtreecommitdiffstats
path: root/mac
diff options
context:
space:
mode:
authorjingham <jingham>2000-02-10 08:38:58 (GMT)
committerjingham <jingham>2000-02-10 08:38:58 (GMT)
commitbe3a66cd070299ac1b1eccae5b282a77dbceb7ce (patch)
treea638afce5e9d8501faab9fea4b4994ae8049eaf1 /mac
parent9205dde79c211967d291a4c5e971eeea85c00c20 (diff)
downloadtcl-be3a66cd070299ac1b1eccae5b282a77dbceb7ce.zip
tcl-be3a66cd070299ac1b1eccae5b282a77dbceb7ce.tar.gz
tcl-be3a66cd070299ac1b1eccae5b282a77dbceb7ce.tar.bz2
Change to using .h files as the prefix file. This is more convenient, since the same file can be used for all targets. Also add a pre-built .pch file for tcltest
Diffstat (limited to 'mac')
-rwxr-xr-xmac/MW_TclAppleScriptHeader.h7
-rwxr-xr-xmac/MW_TclHeader.h7
-rwxr-xr-xmac/MW_TclTestHeader.h7
-rwxr-xr-xmac/MW_TclTestHeader.pch53
4 files changed, 74 insertions, 0 deletions
diff --git a/mac/MW_TclAppleScriptHeader.h b/mac/MW_TclAppleScriptHeader.h
new file mode 100755
index 0000000..6ce3853
--- /dev/null
+++ b/mac/MW_TclAppleScriptHeader.h
@@ -0,0 +1,7 @@
+#if __POWERPC__
+#include "MW_TclAppleScriptHeaderPPC"
+#elif __CFM68K__
+#include "MW_TclAppleScriptHeaderCFM68K"
+#else
+#include "MW_TclAppleScriptHeader68K"
+#endif
diff --git a/mac/MW_TclHeader.h b/mac/MW_TclHeader.h
new file mode 100755
index 0000000..43a9029
--- /dev/null
+++ b/mac/MW_TclHeader.h
@@ -0,0 +1,7 @@
+#if __POWERPC__
+#include "MW_TclHeaderPPC"
+#elif __CFM68K__
+#include "MW_TclHeaderCFM68K"
+#else
+#include "MW_TclHeader68K"
+#endif
diff --git a/mac/MW_TclTestHeader.h b/mac/MW_TclTestHeader.h
new file mode 100755
index 0000000..c47bb97
--- /dev/null
+++ b/mac/MW_TclTestHeader.h
@@ -0,0 +1,7 @@
+#if __POWERPC__
+#include "MW_TclTestHeaderPPC"
+#elif __CFM68K__
+#include "MW_TclTestHeaderCFM68K"
+#else
+#include "MW_TclTestHeader68K"
+#endif
diff --git a/mac/MW_TclTestHeader.pch b/mac/MW_TclTestHeader.pch
new file mode 100755
index 0000000..ba588bb
--- /dev/null
+++ b/mac/MW_TclTestHeader.pch
@@ -0,0 +1,53 @@
+/*
+ * MW_TclHeader.pch --
+ *
+ * This file is the source for a pre-compilied header that gets used
+ * for all files in the Tcl projects. This make compilies go a bit
+ * faster. This file is only intended to be used in the MetroWerks
+ * CodeWarrior environment. It essentially acts as a place to set
+ * compiler flags. See MetroWerks documention for more details.
+ *
+ * Copyright (c) 1995-1997 Sun Microsystems, Inc.
+ *
+ * See the file "license.terms" for information on usage and redistribution
+ * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
+ *
+ * RCS: @(#) $Id: MW_TclTestHeader.pch,v 1.1 2000/02/10 08:39:11 jingham Exp $
+ */
+
+/*
+ * To use the compilied header you need to set the "Prefix file" in
+ * the "C/C++ Language" preference panel to point to the created
+ * compilied header. The name of the header depends on the
+ * architecture we are compiling for (see the code below). For
+ * example, for a 68k app the prefix file should be: MW_TclHeader68K.
+ */
+#if __POWERPC__
+#pragma precompile_target "MW_TclTestHeaderPPC"
+#elif __CFM68K__
+#pragma precompile_target "MW_TclTestHeaderCFM68K"
+#else
+#pragma precompile_target "MW_TclTestHeader68K"
+#endif
+
+#define TCL_DEBUG 1
+
+/*#define TCL_THREADS 1*/
+
+#include "tclMacCommonPch.h"
+
+/*
+ * Place any includes below that will are needed by the majority of the
+ * and is OK to be in any file in the system. The pragma's are used
+ * to control what functions are exported in the Tcl shared library.
+ */
+
+#pragma export on
+#include "tcl.h"
+#include "tclMac.h"
+#include "tclInt.h"
+#include "MoreFiles.h"
+#include "MoreFilesExtras.h"
+
+#pragma export reset
+