/[webpac]/trunk/openisis/tcl/wisish.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/openisis/tcl/wisish.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 237 - (hide annotations)
Mon Mar 8 17:43:12 2004 UTC (20 years, 1 month ago) by dpavlin
Original Path: openisis/current/tcl/wisish.c
File MIME type: text/plain
File size: 1902 byte(s)
initial import of openisis 0.9.0 vendor drop

1 dpavlin 237 /*
2     openisis - an open implementation of the CDS/ISIS database
3     Version 0.8.x (patchlevel see file Version)
4     Copyright (C) 2001-2003 by Erik Grziwotz, erik@openisis.org
5    
6     This library is free software; you can redistribute it and/or
7     modify it under the terms of the GNU Lesser General Public
8     License as published by the Free Software Foundation; either
9     version 2.1 of the License, or (at your option) any later version.
10    
11     This library 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 GNU
14     Lesser General Public License for more details.
15    
16     You should have received a copy of the GNU Lesser General Public
17     License along with this library; if not, write to the Free Software
18     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19    
20     see README for more information
21     EOH */
22    
23     /*
24     $Id: wisish.c,v 1.7 2003/05/26 19:17:48 mawag Exp $
25     OpenIsis Tcl shell
26     */
27    
28    
29     #include "openisis.h"
30     #include "openisistcl.h"
31    
32     #include <tk.h>
33    
34     #ifdef TKHTML
35     extern int Tkhtml_Init ( Tcl_Interp *ip );
36     #endif
37     #ifdef TIX
38     extern int Tix_Init ( Tcl_Interp *ip );
39     #endif
40     #ifdef ORATCL
41     extern int Oratcl_Init ( Tcl_Interp *ip );
42     #endif
43     #ifdef PGTCL
44     extern int Pgtcl_Init ( Tcl_Interp *ip );
45     #endif
46    
47     static int appinit ( Tcl_Interp *interp )
48     {
49     if ( TCL_OK != Tcl_Init( interp )
50     || TCL_OK != Tk_Init( interp )
51     || TCL_OK != openIsisTclInit ( interp )
52     #ifdef TKHTML
53     || TCL_OK != Tkhtml_Init( interp )
54     #endif
55     #ifdef TIX
56     || TCL_OK != Tix_Init( interp )
57     #endif
58     #ifdef ORATCL
59     || TCL_OK != Oratcl_Init( interp )
60     #endif
61     #ifdef PGTCL
62     || TCL_OK != Pgtcl_Init( interp )
63     #endif
64     )
65     return TCL_ERROR;
66     Tcl_StaticPackage( interp, "Tk", Tk_Init, Tk_SafeInit );
67     return TCL_OK;
68     }
69    
70    
71     int main ( int argc, char **argv )
72     {
73     openIsisCOpen(0);
74    
75     Tk_Main( argc, argv, appinit );
76     return 0;
77     }

  ViewVC Help
Powered by ViewVC 1.1.26