Attachment "patch" to
ticket [220842ff]
added by
dgp
2002-04-06 23:07:59.
*** generic/tcl.h.orig Tue Apr 4 19:09:54 2000
--- generic/tcl.h Tue Apr 4 19:13:52 2000
***************
*** 1579,1607 ****
#define TCL_STUB_MAGIC 0xFCA3BACF
/*
- * The following function is required to be defined in all stubs aware
- * extensions. The function is actually implemented in the stub
- * library, not the main Tcl library, although there is a trivial
- * implementation in the main library in case an extension is statically
- * linked into an application.
- */
-
- EXTERN char * Tcl_InitStubs _ANSI_ARGS_((Tcl_Interp *interp,
- char *version, int exact));
-
- #ifndef USE_TCL_STUBS
-
- /*
- * When not using stubs, make it a macro.
- */
-
- #define Tcl_InitStubs(interp, version, exact) \
- Tcl_PkgRequire(interp, "Tcl", version, exact)
-
- #endif
-
-
- /*
* Include the public function declarations that are accessible via
* the stubs table.
*/
--- 1579,1584 ----
***************
*** 1618,1630 ****
/*
* Convenience declaration of Tcl_AppInit for backwards compatibility.
* This function is not *implemented* by the tcl library, so the storage
! * class is neither DLLEXPORT nor DLLIMPORT
*/
#undef TCL_STORAGE_CLASS
#define TCL_STORAGE_CLASS
EXTERN int Tcl_AppInit _ANSI_ARGS_((Tcl_Interp *interp));
#endif /* RESOURCE_INCLUDED */
--- 1595,1625 ----
/*
* Convenience declaration of Tcl_AppInit for backwards compatibility.
* This function is not *implemented* by the tcl library, so the storage
! * class is neither DLLEXPORT nor DLLIMPORT. The same holds for
! * Tcl_InitStubs, which is required to be defined in all stubs aware
! * extensions. The function is actually implemented in the stub
! * library, not the main Tcl library, although there is a trivial
! * implementation in the main library in case an extension is statically
! * linked into an application.
*/
#undef TCL_STORAGE_CLASS
#define TCL_STORAGE_CLASS
EXTERN int Tcl_AppInit _ANSI_ARGS_((Tcl_Interp *interp));
+ EXTERN char * Tcl_InitStubs _ANSI_ARGS_((Tcl_Interp *interp,
+ char *version, int exact));
+
+ #ifndef USE_TCL_STUBS
+
+ /*
+ * When not using stubs, make it a macro.
+ */
+
+ #define Tcl_InitStubs(interp, version, exact) \
+ Tcl_PkgRequire(interp, "Tcl", version, exact)
+
+ #endif
#endif /* RESOURCE_INCLUDED */
*** generic/tclBasic.c.orig Tue Apr 4 19:14:40 2000
--- generic/tclBasic.c Tue Apr 4 19:15:46 2000
***************
*** 547,557 ****
*/
Tcl_PkgProvideEx(interp, "Tcl", TCL_VERSION, (ClientData) &tclStubs);
!
#ifdef Tcl_InitStubs
#undef Tcl_InitStubs
#endif
Tcl_InitStubs(interp, TCL_VERSION, 1);
return interp;
}
--- 547,559 ----
*/
Tcl_PkgProvideEx(interp, "Tcl", TCL_VERSION, (ClientData) &tclStubs);
!
! #ifndef __WIN32__
#ifdef Tcl_InitStubs
#undef Tcl_InitStubs
#endif
Tcl_InitStubs(interp, TCL_VERSION, 1);
+ #endif
return interp;
}
*** win/Makefile.in.orig Tue Apr 4 19:16:24 2000
--- win/Makefile.in Tue Apr 4 19:17:41 2000
***************
*** 243,249 ****
tclScan.$(OBJEXT) \
tclStringObj.$(OBJEXT) \
tclStubInit.$(OBJEXT) \
- tclStubLib.$(OBJEXT) \
tclThread.$(OBJEXT) \
tclTimer.$(OBJEXT) \
tclUtf.$(OBJEXT) \
--- 243,248 ----
*** win/makefile.vc.orig Tue Apr 4 19:16:30 2000
--- win/makefile.vc Tue Apr 4 19:17:00 2000
***************
*** 176,182 ****
$(TMPDIR)\tclScan.obj \
$(TMPDIR)\tclStringObj.obj \
$(TMPDIR)\tclStubInit.obj \
- $(TMPDIR)\tclStubLib.obj \
$(TMPDIR)\tclThread.obj \
$(TMPDIR)\tclTimer.obj \
$(TMPDIR)\tclUtf.obj \
--- 176,181 ----