summaryrefslogtreecommitdiffstats
path: root/generic/tclPkgConfig.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-07-21 14:38:31 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-07-21 14:38:31 (GMT)
commitbe7cd35abf2f4421f8c0c70780675e4313589df3 (patch)
treef4e1f849d58fbb34a2a00e11e8f3286b0d65cf09 /generic/tclPkgConfig.c
parent04b1bffa1cc7b07cafdb83dd3f39c271f6493f7b (diff)
downloadtcl-be7cd35abf2f4421f8c0c70780675e4313589df3.zip
tcl-be7cd35abf2f4421f8c0c70780675e4313589df3.tar.gz
tcl-be7cd35abf2f4421f8c0c70780675e4313589df3.tar.bz2
Systematizing the formatting
Diffstat (limited to 'generic/tclPkgConfig.c')
-rw-r--r--generic/tclPkgConfig.c149
1 files changed, 82 insertions, 67 deletions
diff --git a/generic/tclPkgConfig.c b/generic/tclPkgConfig.c
index 06070ef..b339607 100644
--- a/generic/tclPkgConfig.c
+++ b/generic/tclPkgConfig.c
@@ -1,122 +1,137 @@
-/*
+/*
* tclPkgConfig.c --
*
- * This file contains the configuration information to
- * embed into the tcl binary library.
+ * This file contains the configuration information to embed into the tcl
+ * binary library.
*
* Copyright (c) 2002 Andreas Kupries <andreas_kupries@users.sourceforge.net>
*
- * See the file "license.terms" for information on usage and redistribution
- * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
+ * See the file "license.terms" for information on usage and redistribution of
+ * this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclPkgConfig.c,v 1.2 2003/06/09 22:48:33 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclPkgConfig.c,v 1.3 2005/07/21 14:38:50 dkf Exp $
*/
-/* Note, the definitions in this module are influenced by the
- * following C preprocessor macros:
+/* Note, the definitions in this module are influenced by the following C
+ * preprocessor macros:
*
* OSCMa = shortcut for "old style configuration macro activates"
* NSCMdt = shortcut for "new style configuration macro declares that"
*
- * - TCL_THREADS OSCMa compilation as threaded core.
- * - TCL_MEM_DEBUG OSCMa memory debugging.
- * - TCL_COMPILE_DEBUG OSCMa debugging of bytecode compiler.
- * - TCL_COMPILE_STATS OSCMa bytecode compiler statistics.
+ * - TCL_THREADS OSCMa compilation as threaded core.
+ * - TCL_MEM_DEBUG OSCMa memory debugging.
+ * - TCL_COMPILE_DEBUG OSCMa debugging of bytecode compiler.
+ * - TCL_COMPILE_STATS OSCMa bytecode compiler statistics.
*
* - TCL_CFG_DO64BIT NSCMdt tcl is compiled for a 64bit system.
* - TCL_CFG_DEBUG NSCMdt tcl is compiled with symbol info on.
- * - TCL_CFG_OPTIMIZED NSCMdt tcl is compiled with cc optimizations on.
+ * - TCL_CFG_OPTIMIZED NSCMdt tcl is compiled with cc optimizations on
* - TCL_CFG_PROFILED NSCMdt tcl is compiled with profiling info.
*
* - CFG_RUNTIME_* Paths to various stuff at runtime.
* - CFG_INSTALL_* Paths to various stuff at installation time.
*
* - TCL_CFGVAL_ENCODING string containing the encoding used for the
- * configuration values.
+ * configuration values.
*/
#include "tclInt.h"
-
-
-/* Use C preprocessor statements to define the various values for the
- * embedded configuration information. */
+/*
+ * Use C preprocessor statements to define the various values for the embedded
+ * configuration information.
+ */
#ifdef TCL_THREADS
-# define CFG_THREADED "1"
+# define CFG_THREADED "1"
#else
-# define CFG_THREADED "0"
+# define CFG_THREADED "0"
#endif
+
#ifdef TCL_MEM_DEBUG
-# define CFG_MEMDEBUG "1"
+# define CFG_MEMDEBUG "1"
#else
-# define CFG_MEMDEBUG "0"
+# define CFG_MEMDEBUG "0"
#endif
+
#ifdef TCL_COMPILE_DEBUG
-# define CFG_COMPILE_DEBUG "1"
+# define CFG_COMPILE_DEBUG "1"
#else
-# define CFG_COMPILE_DEBUG "0"
+# define CFG_COMPILE_DEBUG "0"
#endif
+
#ifdef TCL_COMPILE_STATS
-# define CFG_COMPILE_STATS "1"
+# define CFG_COMPILE_STATS "1"
#else
-# define CFG_COMPILE_STATS "0"
+# define CFG_COMPILE_STATS "0"
#endif
+
#ifdef TCL_CFG_DO64BIT
-# define CFG_64 "1"
+# define CFG_64 "1"
#else
-# define CFG_64 "0"
+# define CFG_64 "0"
#endif
+
#ifdef TCL_CFG_DEBUG
-# define CFG_DEBUG "1"
+# define CFG_DEBUG "1"
#else
-# define CFG_DEBUG "0"
+# define CFG_DEBUG "0"
#endif
+
#ifdef TCL_CFG_OPTIMIZED
-# define CFG_OPTIMIZED "1"
+# define CFG_OPTIMIZED "1"
#else
-# define CFG_OPTIMIZED "0"
+# define CFG_OPTIMIZED "0"
#endif
+
#ifdef TCL_CFG_PROFILED
-# define CFG_PROFILED "1"
+# define CFG_PROFILED "1"
#else
-# define CFG_PROFILED "0"
+# define CFG_PROFILED "0"
#endif
-static Tcl_Config cfg [] = {
- {"debug", CFG_DEBUG},
- {"threaded", CFG_THREADED},
- {"profiled", CFG_PROFILED},
- {"64bit", CFG_64},
- {"optimized", CFG_OPTIMIZED},
- {"mem_debug", CFG_MEMDEBUG},
- {"compile_debug", CFG_COMPILE_DEBUG},
- {"compile_stats", CFG_COMPILE_STATS},
-
- /* Runtime paths to various stuff */
-
- {"libdir,runtime", CFG_RUNTIME_LIBDIR},
- {"bindir,runtime", CFG_RUNTIME_BINDIR},
- {"scriptdir,runtime", CFG_RUNTIME_SCRDIR},
- {"includedir,runtime", CFG_RUNTIME_INCDIR},
- {"docdir,runtime", CFG_RUNTIME_DOCDIR},
-
- /* Installation paths to various stuff */
-
- {"libdir,install", CFG_INSTALL_LIBDIR},
- {"bindir,install", CFG_INSTALL_BINDIR},
- {"scriptdir,install", CFG_INSTALL_SCRDIR},
- {"includedir,install", CFG_INSTALL_INCDIR},
- {"docdir,install", CFG_INSTALL_DOCDIR},
-
- /* Last entry, closes the array */
- {NULL, NULL}
-};
+static Tcl_Config cfg[] = {
+ {"debug", CFG_DEBUG},
+ {"threaded", CFG_THREADED},
+ {"profiled", CFG_PROFILED},
+ {"64bit", CFG_64},
+ {"optimized", CFG_OPTIMIZED},
+ {"mem_debug", CFG_MEMDEBUG},
+ {"compile_debug", CFG_COMPILE_DEBUG},
+ {"compile_stats", CFG_COMPILE_STATS},
+
+ /* Runtime paths to various stuff */
+
+ {"libdir,runtime", CFG_RUNTIME_LIBDIR},
+ {"bindir,runtime", CFG_RUNTIME_BINDIR},
+ {"scriptdir,runtime", CFG_RUNTIME_SCRDIR},
+ {"includedir,runtime", CFG_RUNTIME_INCDIR},
+ {"docdir,runtime", CFG_RUNTIME_DOCDIR},
+
+ /* Installation paths to various stuff */
+
+ {"libdir,install", CFG_INSTALL_LIBDIR},
+ {"bindir,install", CFG_INSTALL_BINDIR},
+ {"scriptdir,install", CFG_INSTALL_SCRDIR},
+ {"includedir,install", CFG_INSTALL_INCDIR},
+ {"docdir,install", CFG_INSTALL_DOCDIR},
+ /* Last entry, closes the array */
+ {NULL, NULL}
+};
+
void
-TclInitEmbeddedConfigurationInformation (interp)
- Tcl_Interp* interp; /* Interpreter the configuration
- * command is registered in. */
+TclInitEmbeddedConfigurationInformation(interp)
+ Tcl_Interp* interp; /* Interpreter the configuration command is
+ * registered in. */
{
- Tcl_RegisterConfig (interp, "tcl", cfg, TCL_CFGVAL_ENCODING);
+ Tcl_RegisterConfig(interp, "tcl", cfg, TCL_CFGVAL_ENCODING);
}
+
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 4
+ * fill-column: 78
+ * End:
+ */