summaryrefslogtreecommitdiffstats
path: root/generic/tcl.h
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tcl.h')
-rw-r--r--generic/tcl.h33
1 files changed, 31 insertions, 2 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index 357bdbb..c662d08 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tcl.h,v 1.70.2.9 2001/10/17 19:29:24 das Exp $
+ * RCS: @(#) $Id: tcl.h,v 1.70.2.9.2.1 2001/11/28 17:58:35 andreas_kupries Exp $
*/
#ifndef _TCL
@@ -25,7 +25,36 @@
#ifdef __cplusplus
extern "C" {
#endif
-
+
+/* The following are
+ * - a clause to activate all macros cutting features out of the core.
+ * - feature dependencies
+ */
+
+#ifdef MODULAR_TCL
+#define TCL_NO_SOCKETS /* Disable "tcp" channel driver */
+#define TCL_NO_TTY /* Disable "tty" channel driver */
+#define TCL_NO_PIPES /* Disable "pipe" channel driver */
+#define TCL_NO_PIDCMD /* Disable "pid" command */
+#define TCL_NO_NONSTDCHAN /* Disable creation of channels beyond std* */
+#define TCL_NO_CHANNELCOPY /* Disable channel copying, C/Tcl [fcopy] */
+#define TCL_NO_CHANNEL_READ /* Disable Tcl_ReadChars, [read] */
+#define TCL_NO_CHANNEL_EOF /* Disable [eof] */
+#define TCL_NO_CHANNEL_CONFIG /* Disable [fconfigure] and Tcl_GetChannelOption */
+#define TCL_NO_CHANNEL_BLOCKED /* Disable [fblocked] */
+#define TCL_NO_FILEEVENTS /* Disable [fileevent] and underlying APIs */
+#define TCL_NO_FILESYSTEM /* Disable everything related to the filesystem */
+#define TCL_NO_LOADCMD /* Disable [load] and machinery below */
+#define TCL_NO_SLAVEINTERP /* No slave interp's */
+#define TCL_NO_CMDALIASES /* No command aliases */
+#endif
+
+#ifdef TCL_NO_NONSTDCHAN
+#define TCL_NO_SOCKETS /* Disable "tcp" channel driver */
+#define TCL_NO_TTY /* Disable "tty" channel driver */
+#define TCL_NO_PIPES /* Disable "pipe" channel driver */
+#endif
+
/*
* The following defines are used to indicate the various release levels.
*/