| [6d7779d] | 1 | /* toltcl.h - This header file contains the function declarations |
|---|
| 2 | needed for all of the source files in this package. |
|---|
| 3 | GNU/tolTcl Library |
|---|
| 4 | |
|---|
| 5 | Copyright (C) 2001, 2002, 2003 - Bayes Decisión, SL |
|---|
| 6 | |
|---|
| 7 | This program is free software; you can redistribute it and/or modify |
|---|
| 8 | it under the terms of the GNU General Public License as published by |
|---|
| 9 | the Free Software Foundation; either version 2, or (at your option) |
|---|
| 10 | any later version. |
|---|
| 11 | |
|---|
| 12 | This program is distributed in the hope that it will be useful, |
|---|
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 15 | GNU General Public License for more details. |
|---|
| 16 | |
|---|
| 17 | You should have received a copy of the GNU General Public License |
|---|
| 18 | along with this program; if not, write to the Free Software |
|---|
| 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
|---|
| 20 | USA. |
|---|
| 21 | */ |
|---|
| 22 | |
|---|
| 23 | #ifndef TOLTCL_H |
|---|
| 24 | #define TOLTCL_H 1 |
|---|
| 25 | |
|---|
| 26 | #include <tt_common.h> |
|---|
| 27 | #include <tcl.h> |
|---|
| 28 | |
|---|
| [b6e5dacc] | 29 | #if defined(__TOLTCL_MAJOR_VERSION__) |
|---|
| 30 | #define TOLTCL_MAJOR_VERSION __TOLTCL_MAJOR_VERSION__ |
|---|
| 31 | #else |
|---|
| [1402166] | 32 | #define TOLTCL_MAJOR_VERSION 3 |
|---|
| [b6e5dacc] | 33 | #endif |
|---|
| 34 | |
|---|
| 35 | #if defined(__TOLTCL_MINOR_VERSION__) |
|---|
| 36 | #define TOLTCL_MINOR_VERSION __TOLTCL_MINOR_VERSION__ |
|---|
| 37 | #else |
|---|
| [40eeecf] | 38 | #define TOLTCL_MINOR_VERSION 3 |
|---|
| [b6e5dacc] | 39 | #endif |
|---|
| 40 | |
|---|
| 41 | #define TOLTCL_TO_STRING0( x ) #x |
|---|
| 42 | #define TOLTCL_TO_STRING( x ) TOLTCL_TO_STRING0( x ) |
|---|
| 43 | |
|---|
| [6d7779d] | 44 | #ifdef PACKAGE_VERSION |
|---|
| 45 | #define TOLTCL_VERSION PACKAGE_VERSION |
|---|
| 46 | #else |
|---|
| [b6e5dacc] | 47 | |
|---|
| 48 | #define TOLTCL_VERSION TOLTCL_TO_STRING( TOLTCL_MAJOR_VERSION ) "." TOLTCL_TO_STRING( TOLTCL_MINOR_VERSION ) |
|---|
| [6d7779d] | 49 | #endif |
|---|
| 50 | |
|---|
| [b6e5dacc] | 51 | /* |
|---|
| 52 | * Windows needs to know which symbols to export. Unix does not. |
|---|
| 53 | * BUILD_TOLTCL should be undefined for Unix. |
|---|
| 54 | */ |
|---|
| 55 | |
|---|
| [6d7779d] | 56 | #ifdef BUILD_TOLTCL |
|---|
| 57 | #undef TCL_STORAGE_CLASS |
|---|
| 58 | #define TCL_STORAGE_CLASS DLLEXPORT |
|---|
| 59 | #endif /* BUILD_TOLTCL */ |
|---|
| 60 | |
|---|
| 61 | /* |
|---|
| 62 | * Only the _Init function is exported. |
|---|
| 63 | */ |
|---|
| 64 | |
|---|
| 65 | EXTERN int Toltcl_Init _ANSI_ARGS_((Tcl_Interp * interp)); |
|---|
| 66 | |
|---|
| 67 | #endif /* TOLTCL_H */ |
|---|