Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-05-18 08:30:22

0001 /*
0002  * tdbc.h --
0003  *
0004  *  Declarations of the public API for Tcl DataBase Connectivity (TDBC)
0005  *
0006  * Copyright (c) 2006 by Kevin B. Kenny
0007  *
0008  * See the file "license.terms" for information on usage and redistribution of
0009  * this file, and for a DISCLAIMER OF ALL WARRANTIES.
0010  *
0011  * RCS: @(#) $Id$
0012  *
0013  *-----------------------------------------------------------------------------
0014  */
0015 
0016 #ifndef TDBC_H_INCLUDED
0017 #define TDBC_H_INCLUDED 1
0018 
0019 #include <tcl.h>
0020 
0021 #ifndef TDBCAPI
0022 #   if defined(BUILD_tdbc)
0023 #   define TDBCAPI MODULE_SCOPE
0024 #   else
0025 #   define TDBCAPI extern
0026 #   undef USE_TDBC_STUBS
0027 #   define USE_TDBC_STUBS 1
0028 #   endif
0029 #endif
0030 
0031 #ifdef __cplusplus
0032 extern "C" {
0033 #endif
0034 
0035 #if defined(BUILD_tdbc)
0036 DLLEXPORT int       Tdbc_Init(Tcl_Interp *interp);
0037 #elif defined(STATIC_BUILD)
0038 extern    int       Tdbc_Init(Tcl_Interp* interp);
0039 #else
0040 DLLIMPORT int       Tdbc_Init(Tcl_Interp* interp);
0041 #endif
0042 
0043 #define Tdbc_InitStubs(interp) TdbcInitializeStubs(interp, \
0044         TDBC_VERSION, TDBC_STUBS_EPOCH, TDBC_STUBS_REVISION)
0045 #if defined(USE_TDBC_STUBS)
0046     TDBCAPI const char* TdbcInitializeStubs(
0047         Tcl_Interp* interp, const char* version, int epoch, int revision);
0048 #else
0049 #    define TdbcInitializeStubs(interp, version, epoch, revision) \
0050         (Tcl_PkgRequire(interp, "tdbc", version))
0051 #endif
0052 
0053 #ifdef __cplusplus
0054 }
0055 #endif
0056 
0057 /*
0058  * TDBC_VERSION and TDBC_PATCHLEVEL here must match the ones that
0059  * appear near the top of configure.ac.
0060  */
0061 
0062 #define TDBC_VERSION    "1.1"
0063 #define TDBC_PATCHLEVEL "1.1.3"
0064 
0065 /*
0066  * Include the Stubs declarations for the public API, generated from
0067  * tdbc.decls.
0068  */
0069 
0070 #include "tdbcDecls.h"
0071 
0072 #endif
0073 
0074 /*
0075  * Local Variables:
0076  * mode: c
0077  * c-basic-offset: 4
0078  * fill-column: 78
0079  * End:
0080  */