Debian Codegraph @

generic/bltStubLib.c

raw symbols SCIP
1 #ifndef STATIC_BUILD
2 #ifndef USE_BLT_STUBS
3 #define USE_BLT_STUBS
4 #endif
5 #endif
6 #undef USE_BLT_STUB_PROCS
7
8 #include "tcl.h"
9 #include "bltDecls.h"
10
11 #undef TCL_STORAGE_CLASS
12 #define TCL_STORAGE_CLASS DLLEXPORT
13
14 #ifndef MODULE_SCOPE
15 # ifdef __cplusplus
16 # define MODULE_SCOPE extern "C"
17 # else
18 # define MODULE_SCOPE extern
19 # endif
20 #endif
21
22
23 MODULE_SCOPE BltStubs *bltStubsPtr;
24 BltStubs *bltStubsPtr;
25
26 #ifdef Blt_InitStubs
27 #undef Blt_InitStubs
28 #endif
29
30 MODULE_SCOPE CONST char *
31 Blt_InitStubs(interp, version, exact)
32 Tcl_Interp *interp;
33 char *version;
34 int exact;
35 {
36 CONST char *actualVersion;
37
38 actualVersion = Tcl_PkgRequireEx(interp, "BLT", version, exact,
39 (ClientData *) &bltStubsPtr);
40 if (!actualVersion) {
41 return NULL;
42 }
43
44 if (!bltStubsPtr) {
45 Tcl_SetResult(interp,
46 "This implementation of Tk does not support stubs",
47 TCL_STATIC);
48 return NULL;
49 }
50
51 return actualVersion;
52 }
53
54