mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 19:36:28 -04:00
It's worth pointing out that the Tcl project used to *recommend* that application writers copy this kludge. These ports work fine with Tcl 8.3, which provided a fake matherr() even if the OS didn't, but here's what the Tcl 8.4 changelog has to say: 2002-05-31 (dead code)[474335,555635] removed all use of matherr() (english) *** POTENTIAL INCOMPATIBILITY *** The following lines can be safely removed from any application that has them, unless compatibility with SunOS 4.X is desired. extern int matherr(); int *tclDummyMathPtr = (int *) matherr; The build problems were pointed out by Kris, as usual. ;-)
17 lines
429 B
Text
17 lines
429 B
Text
--- bindings/Tcl/tclAppInit.c.orig Sat Feb 19 19:14:05 2005
|
|
+++ bindings/Tcl/tclAppInit.c Sat Feb 19 19:14:16 2005
|
|
@@ -15,14 +15,6 @@
|
|
|
|
#include "tcl.h"
|
|
|
|
-/*
|
|
- * The following variable is a special hack that is needed in order for
|
|
- * Sun shared libraries to be used for Tcl.
|
|
- */
|
|
-
|
|
-extern int matherr();
|
|
-int *tclDummyMathPtr = (int *) matherr;
|
|
-
|
|
EXTERN int Pitcl_Init _ANSI_ARGS_((Tcl_Interp *interp));
|
|
|
|
#ifdef TCL_TEST
|