diff options
author | Adrián Medraño Calvo <adrian@medranocalvo.com> | 2017-07-18 09:10:30 (GMT) |
---|---|---|
committer | Adrián Medraño Calvo <adrian@medranocalvo.com> | 2017-07-18 09:10:30 (GMT) |
commit | 71312d1e172edf9c37e7a16ab881980523d5babd (patch) | |
tree | c53477f175de027634a7cc2364d0dd2f26d24001 /generic/tkbltStubLib.C | |
parent | ce90eafc809554ad9243f6f2dbacdb41474c9fe5 (diff) | |
download | blt-71312d1e172edf9c37e7a16ab881980523d5babd.zip blt-71312d1e172edf9c37e7a16ab881980523d5babd.tar.gz blt-71312d1e172edf9c37e7a16ab881980523d5babd.tar.bz2 |
Better align with TEA's expected file layout
TEA is quite picky about packages placing their sources in the generic/,
unix/, etc. directories. An immediate benefit of this change is support
for building in a separate directory.
Diffstat (limited to 'generic/tkbltStubLib.C')
-rw-r--r-- | generic/tkbltStubLib.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/generic/tkbltStubLib.C b/generic/tkbltStubLib.C new file mode 100644 index 0000000..e973063 --- /dev/null +++ b/generic/tkbltStubLib.C @@ -0,0 +1,15 @@ +#ifndef USE_TCL_STUBS +#define USE_TCL_STUBS +#endif + +#include <tcl.h> + +ClientData tkbltStubsPtr =NULL; + +const char* Tkblt_InitStubs(Tcl_Interp* interp, const char* version, int exact) +{ + const char* actualVersion = + Tcl_PkgRequireEx(interp, "tkblt", version, exact, &tkbltStubsPtr); + + return (actualVersion && tkbltStubsPtr) ? actualVersion : NULL; +} |