comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/tdbc.h @ 69:33d812a61356

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 17:55:14 -0400
parents
children
comparison
equal deleted inserted replaced
67:0e9998148a16 69:33d812a61356
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.ac.
60 */
61
62 #define TDBC_VERSION "1.1"
63 #define TDBC_PATCHLEVEL "1.1.5"
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
74 /*
75 * Local Variables:
76 * mode: c
77 * c-basic-offset: 4
78 * fill-column: 78
79 * End:
80 */