| 1 | /* tt_tclutils.h - This file define a set of utils functions. |
|---|
| 2 | GNU/tolTcl Library |
|---|
| 3 | |
|---|
| 4 | Copyright (C) 2001, 2002, 2003 - Bayes Decisión, SL |
|---|
| 5 | |
|---|
| 6 | This program is free software; you can redistribute it and/or modify |
|---|
| 7 | it under the terms of the GNU General Public License as published by |
|---|
| 8 | the Free Software Foundation; either version 2, or (at your option) |
|---|
| 9 | any later version. |
|---|
| 10 | |
|---|
| 11 | This program is distributed in the hope that it will be useful, |
|---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | GNU General Public License for more details. |
|---|
| 15 | |
|---|
| 16 | You should have received a copy of the GNU General Public License |
|---|
| 17 | along with this program; if not, write to the Free Software |
|---|
| 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
|---|
| 19 | USA. |
|---|
| 20 | */ |
|---|
| 21 | |
|---|
| 22 | #ifndef VB_UTILS_H |
|---|
| 23 | #define VB_UTILS_H 1 |
|---|
| 24 | |
|---|
| 25 | #include <string.h> |
|---|
| 26 | #include <windows.h> |
|---|
| 27 | |
|---|
| 28 | #if defined(_MSC_VER) |
|---|
| 29 | #include <config.h> |
|---|
| 30 | #include <tol_init.h> |
|---|
| 31 | #include <tol_bmatgra.h> |
|---|
| 32 | #else |
|---|
| 33 | #include <tol/config.h> |
|---|
| 34 | #include <tol/tol_init.h> |
|---|
| 35 | #include <tol/tol_bmatgra.h> |
|---|
| 36 | #endif |
|---|
| 37 | |
|---|
| 38 | #if defined(_MSC_VER) |
|---|
| 39 | #define DLLEXPORT(f) f __declspec(dllexport) CALLBACK |
|---|
| 40 | #else |
|---|
| 41 | #define DLLEXPORT(f) extern "C" __declspec(dllexport) f __stdcall |
|---|
| 42 | #endif |
|---|
| 43 | |
|---|
| 44 | class BList; |
|---|
| 45 | |
|---|
| 46 | extern BList VB_stack; |
|---|
| 47 | |
|---|
| 48 | void VB_concat(BList* head, BList* tail); |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | typedef void (__stdcall *FN_PTR)(BSTR str); |
|---|
| 52 | |
|---|
| 53 | extern FN_PTR VB_Writer; |
|---|
| 54 | |
|---|
| 55 | void VBTol_gsl_error_handler(const char * reason, const char * file, int line, |
|---|
| 56 | int gsl_errno); |
|---|
| 57 | |
|---|
| 58 | void VBTol_HciWriter(const BText & str); |
|---|
| 59 | |
|---|
| 60 | |
|---|
| 61 | #endif |
|---|