4 * Declarations of the public API for Tcl DataBase Connectivity (TDBC)
6 * Copyright (c) 2006 by Kevin B. Kenny
8 * See the file "license.terms" for information on usage and redistribution of
9 * this file, and for a DISCLAIMER OF ALL WARRANTIES.
13 *-----------------------------------------------------------------------------
16 #ifndef TDBC_H_INCLUDED
17 #define TDBC_H_INCLUDED 1
22 # if defined(BUILD_tdbc)
23 # define TDBCAPI MODULE_SCOPE
25 # define TDBCAPI extern
26 # undef USE_TDBC_STUBS
27 # define USE_TDBC_STUBS 1
35 #if defined(BUILD_tdbc)
36 DLLEXPORT int Tdbc_Init(Tcl_Interp *interp);
37 #elif defined(STATIC_BUILD)
38 extern int Tdbc_Init(Tcl_Interp* interp);
40 DLLIMPORT int Tdbc_Init(Tcl_Interp* interp);
43 #define Tdbc_InitStubs(interp) TdbcInitializeStubs(interp, \
44 TDBC_VERSION, TDBC_STUBS_EPOCH, TDBC_STUBS_REVISION)
45 #if defined(USE_TDBC_STUBS)
46 TDBCAPI const char* TdbcInitializeStubs(
47 Tcl_Interp* interp, const char* version, int epoch, int revision);
49 # define TdbcInitializeStubs(interp, version, epoch, revision) \
50 (Tcl_PkgRequire(interp, "tdbc", version))
58 * TDBC_VERSION and TDBC_PATCHLEVEL here must match the ones that
59 * appear near the top of configure.in.
62 #define TDBC_VERSION "1.0.3"
63 #define TDBC_PATCHLEVEL "1.0.3"
66 * Include the Stubs declarations for the public API, generated from
70 #include "tdbcDecls.h"