4 * Stub object that will be statically linked into extensions that wish
7 * Copyright (c) 1998-1999 by XXXX
8 * Copyright (c) 1998 Paul Duffin.
10 * See the file "license.terms" for information on usage and redistribution
11 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
17 * We need to ensure that we use the stub macros so that this file contains
18 * no references to any of the stub functions. This will make it possible
19 * to build an extension that references Tcl_InitStubs but doesn't end up
20 * including the rest of the stub functions.
26 #undef USE_TCL_STUB_PROCS
31 #undef USE_ITK_STUB_PROCS
35 ItkStubs *itkStubsPtr;
39 *----------------------------------------------------------------------
43 * Tries to initialise the stub table pointers and ensures that
44 * the correct version of Itk is loaded.
47 * The actual version of Itk that satisfies the request, or
48 * NULL to indicate that an error occurred.
51 * Sets the stub table pointers.
53 *----------------------------------------------------------------------
57 Itk_InitStubs (interp, version, exact)
62 CONST char *actualVersion;
64 actualVersion = Tcl_PkgRequireEx(interp, "Itk", (CONST84 char *)version, exact,
65 (ClientData *) &itkStubsPtr);
67 if (actualVersion == NULL) {