pkgsrc/devel/tcl-tclcl/patches/patch-tclcl.h
markd 2fe02671f0 Update to tcl-tclcl version 1.20
changes unknown.

patches for tcl8.6 from freebsd ports.
2014-02-01 08:00:06 +00:00

15 lines
572 B
C

$NetBSD: patch-tclcl.h,v 1.1 2014/02/01 08:00:06 markd Exp $
Build with tcl8.6
--- tclcl.h.orig 2005-09-07 04:53:51.000000000 +0000
+++ tclcl.h
@@ -85,7 +85,7 @@ class Tcl {
/* may not work at all! */
inline char* result() const { return (tcl_->result); }
#endif /* TCL_MAJOR_VERSION >= 8 */
- inline void result(const char* p) { tcl_->result = (char*)p; }
+ inline void result(const char* p) { Tcl_SetResult (tcl_, (char *)p, NULL);}
void resultf(const char* fmt, ...);
inline void CreateCommand(const char* cmd, Tcl_CmdProc* cproc,
ClientData cd = 0,