diff options
| author | dgp@users.sourceforge.net <dgp> | 2004-12-13 22:17:32 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2004-12-13 22:17:32 (GMT) |
| commit | 8bf667f709f183da0304b9ca3b7f30a82cd93cdc (patch) | |
| tree | f5600cd139205dc62f3333dc5c6012814ba16df7 | |
| parent | 7bfb480031953ab2cf4322d0ce61aa452afa4c52 (diff) | |
| download | tcl-8bf667f709f183da0304b9ca3b7f30a82cd93cdc.zip tcl-8bf667f709f183da0304b9ca3b7f30a82cd93cdc.tar.gz tcl-8bf667f709f183da0304b9ca3b7f30a82cd93cdc.tar.bz2 | |
* generic/tcl.h: Restored extern "C" guards so that C++ code
sees function pointer typedef linkage consistent with earlier Tcl
releases. [Bug 1082349].
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | generic/tcl.h | 18 |
2 files changed, 21 insertions, 1 deletions
@@ -1,5 +1,9 @@ 2004-12-13 Don Porter <dgp@users.sourceforge.net> + * generic/tcl.h: Restored extern "C" guards so that C++ code + sees function pointer typedef linkage consistent with earlier Tcl + releases. [Bug 1082349]. + * generic/tclEncoding.c: Plugged some memory leaks. Thanks to * generic/tclUtil.c: Rolf Ade for reports and testing [Bug 1083082] diff --git a/generic/tcl.h b/generic/tcl.h index 2a58e9d..c183783 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -13,13 +13,21 @@ * 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.192 2004/12/10 23:00:30 dkf Exp $ + * RCS: @(#) $Id: tcl.h,v 1.193 2004/12/13 22:17:33 dgp Exp $ */ #ifndef _TCL #define _TCL /* + * * For C++ compilers, use extern "C" + * */ + +#ifdef __cplusplus +extern "C" { +#endif + +/* * The following defines are used to indicate the various release levels. */ @@ -2353,4 +2361,12 @@ EXTERN int Tcl_AppInit _ANSI_ARGS_((Tcl_Interp *interp)); #define TCL_STORAGE_CLASS DLLIMPORT #endif /* RC_INVOKED */ + +/* + * * end block for C++ + * */ +#ifdef __cplusplus +} +#endif + #endif /* _TCL */ |
