diff options
author | nijtmans <nijtmans> | 2010-02-22 23:31:41 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-02-22 23:31:41 (GMT) |
commit | 718a26fe2a6c218477b2486bcc3d014df7b559fa (patch) | |
tree | e6177ca61b1da75b2580be08eb4087ac9b62e192 /unix/dltest/pkge.c | |
parent | b3ceb866eec8e0f9dbde55f024efb248732602ca (diff) | |
download | tcl-718a26fe2a6c218477b2486bcc3d014df7b559fa.zip tcl-718a26fe2a6c218477b2486bcc3d014df7b559fa.tar.gz tcl-718a26fe2a6c218477b2486bcc3d014df7b559fa.tar.bz2 |
Remove unnecessary EXTERN's, which already
are in the global stub table.
Use @EXEEXT@ in stead of @EXT_SUFFIX@
Use -DBUILD_tcl in Makefile for CYGWIN
Use EXTERN to control CYGWIN exported symbols
Remove some unnecessary type casts.
Diffstat (limited to 'unix/dltest/pkge.c')
-rw-r--r-- | unix/dltest/pkge.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/unix/dltest/pkge.c b/unix/dltest/pkge.c index 827ee4e..145bbf5 100644 --- a/unix/dltest/pkge.c +++ b/unix/dltest/pkge.c @@ -10,11 +10,19 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: pkge.c,v 1.11 2009/08/16 10:20:20 nijtmans Exp $ + * RCS: @(#) $Id: pkge.c,v 1.12 2010/02/22 23:31:42 nijtmans Exp $ */ #include "tcl.h" +/* + * TCL_STORAGE_CLASS is set unconditionally to DLLEXPORT because the + * Pkge_Init declaration is in the source file itself, which is only + * accessed when we are building a library. + */ +#undef TCL_STORAGE_CLASS +#define TCL_STORAGE_CLASS DLLEXPORT + /* *---------------------------------------------------------------------- @@ -33,7 +41,7 @@ *---------------------------------------------------------------------- */ -int +EXTERN int Pkge_Init( Tcl_Interp *interp) /* Interpreter in which the package is to be * made available. */ |