Switch from direct tcl_interp->result access to Tcl_GetStringResult() and Tcl_AppendResult()

This allows building against recent libtcl versions.

A fallback definition of Tcl_GetStringResult() is included so that building against libtcl 7 still works.
This commit is contained in:
Kevin Easton
2017-07-01 00:47:20 +10:00
parent 356eb699d0
commit ac84793dd6
6 changed files with 80 additions and 54 deletions

View File

@@ -28,6 +28,11 @@ void tcl_load (char *, char *, char *, char *);
#define USE_NON_CONST
#include <tcl.h>
#if (TCL_MAJOR_VERSION < 8)
#define Tcl_GetStringResult(interp) ((interp)->result)
#endif
extern Tcl_Interp *tcl_interp;
void check_tcl_tand (char *, char *, char *);
void check_tcl_msgm (char *, char *, char *, char *, char *);