source: tol/toltcl/generic/toltcl.h

devel
Last change on this file was 40eeecf, checked in by Pedro Gea <pgea@…>, 11 years ago

Refs #1899
Se cambia la versión de toltcl a 3.3
Véase [7168]

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7265 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 1.9 KB
Line 
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
29#if defined(__TOLTCL_MAJOR_VERSION__)
30#define TOLTCL_MAJOR_VERSION    __TOLTCL_MAJOR_VERSION__
31#else
32#define TOLTCL_MAJOR_VERSION    3
33#endif
34
35#if defined(__TOLTCL_MINOR_VERSION__)
36#define TOLTCL_MINOR_VERSION    __TOLTCL_MINOR_VERSION__
37#else
38#define TOLTCL_MINOR_VERSION    3
39#endif
40
41#define TOLTCL_TO_STRING0( x ) #x
42#define TOLTCL_TO_STRING(  x )  TOLTCL_TO_STRING0( x )
43
44#ifdef PACKAGE_VERSION
45 #define TOLTCL_VERSION PACKAGE_VERSION
46#else
47
48#define TOLTCL_VERSION TOLTCL_TO_STRING( TOLTCL_MAJOR_VERSION ) "." TOLTCL_TO_STRING( TOLTCL_MINOR_VERSION )
49#endif
50
51/*
52 * Windows needs to know which symbols to export. Unix does not.
53 * BUILD_TOLTCL should be undefined for Unix.
54 */
55
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
65EXTERN int      Toltcl_Init _ANSI_ARGS_((Tcl_Interp * interp));
66
67#endif /* TOLTCL_H */
Note: See TracBrowser for help on using the repository browser.