OSDN Git Service

Please enter the commit message for your changes. Lines starting
[eos/hostdependX86LINUX64.git] / util / X86LINUX64 / include / tdbc.h
1 /*
2  * tdbc.h --
3  *
4  *      Declarations of the public API for Tcl DataBase Connectivity (TDBC)
5  *
6  * Copyright (c) 2006 by Kevin B. Kenny
7  *
8  * See the file "license.terms" for information on usage and redistribution of
9  * this file, and for a DISCLAIMER OF ALL WARRANTIES.
10  *
11  * RCS: @(#) $Id$
12  *
13  *-----------------------------------------------------------------------------
14  */
15
16 #ifndef TDBC_H_INCLUDED
17 #define TDBC_H_INCLUDED 1
18
19 #include <tcl.h>
20
21 #ifndef TDBCAPI
22 #   if defined(BUILD_tdbc)
23 #       define TDBCAPI MODULE_SCOPE
24 #   else
25 #       define TDBCAPI extern
26 #       undef USE_TDBC_STUBS
27 #       define USE_TDBC_STUBS 1
28 #   endif
29 #endif
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
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);
39 #else
40 DLLIMPORT int           Tdbc_Init(Tcl_Interp* interp);
41 #endif
42
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);
48 #else
49 #    define TdbcInitializeStubs(interp, version, epoch, revision) \
50         (Tcl_PkgRequire(interp, "tdbc", version))
51 #endif
52
53 #ifdef __cplusplus
54 }
55 #endif
56
57 /*
58  * TDBC_VERSION and TDBC_PATCHLEVEL here must match the ones that
59  * appear near the top of configure.in.
60  */
61
62 #define TDBC_VERSION    "1.0.3"
63 #define TDBC_PATCHLEVEL "1.0.3"
64
65 /*
66  * Include the Stubs declarations for the public API, generated from
67  * tdbc.decls.
68  */
69
70 #include "tdbcDecls.h"
71
72 #endif
73 \f
74 /*
75  * Local Variables:
76  * mode: c
77  * c-basic-offset: 4
78  * fill-column: 78
79  * End:
80  */