codekingpro/portable-devtools
114k
1/*2 * tdbc.h --3 *4 * Declarations of the public API for Tcl DataBase Connectivity (TDBC)5 *6 * Copyright (c) 2006 by Kevin B. Kenny7 *8 * See the file "license.terms" for information on usage and redistribution of9 * this file, and for a DISCLAIMER OF ALL WARRANTIES.10 *11 * RCS: @(#) $Id$12 *13 *-----------------------------------------------------------------------------14 */15 16#ifndef TDBC_H_INCLUDED17#define TDBC_H_INCLUDED 118 19#include <tcl.h>20 21#ifndef TDBCAPI22# if defined(BUILD_tdbc)23# define TDBCAPI MODULE_SCOPE24# else25# define TDBCAPI extern26# undef USE_TDBC_STUBS27# define USE_TDBC_STUBS 128# endif29#endif30 31#ifdef __cplusplus32extern "C" {33#endif34 35#if defined(BUILD_tdbc)36DLLEXPORT int Tdbc_Init(Tcl_Interp *interp);37#elif defined(STATIC_BUILD)38extern int Tdbc_Init(Tcl_Interp* interp);39#else40DLLIMPORT int Tdbc_Init(Tcl_Interp* interp);41#endif42 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#else49# define TdbcInitializeStubs(interp, version, epoch, revision) \50 (Tcl_PkgRequire(interp, "tdbc", version))51#endif52 53#ifdef __cplusplus54}55#endif56 57/*58 * TDBC_VERSION and TDBC_PATCHLEVEL here must match the ones that59 * 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 from67 * tdbc.decls.68 */69 70#include "tdbcDecls.h"71 72#endif7374/*75 * Local Variables:76 * mode: c77 * c-basic-offset: 478 * fill-column: 7879 * End:80 */81 