/[webpac]/openisis/0.9.9e/tcl/maletecl.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

Contents of /openisis/0.9.9e/tcl/maletecl.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 604 - (show annotations)
Mon Dec 27 21:49:01 2004 UTC (18 years, 1 month ago) by dpavlin
File MIME type: text/plain
File size: 1542 byte(s)
import of new openisis release, 0.9.9e

1 /*
2 The Malete project - the Z39.2/Z39.50 database framework of OpenIsis.
3 Version 0.9.x (patchlevel see file Version)
4 Copyright (C) 2001-2004 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.
14 See the GNU 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: maletecl.c,v 1.1 2004/09/27 13:19:21 kripke Exp $
25 malete command language (Tcl extension)
26 */
27
28 #include <tcl.h>
29 #include <stdlib.h> /* getenv */
30
31 #include "../core/core.h"
32 #include "../pw/pw.h"
33 #include "../tcl/maletecl.h"
34
35
36 static int malete (
37 ClientData cd, Tcl_Interp *ip, int argc, Tcl_Obj* const argv[]
38 ) {
39 return TCL_OK;
40 }
41
42
43 int maleteclInit (struct Tcl_Interp *ip)
44 {
45 static List *args = 0;
46
47 if ( !args ) { /* TODO: load env from file ? */
48 cInit(args = mListAlloc(getenv("MALETECL_INIT")), 0, 0);
49 }
50 Tcl_CreateObjCommand(ip, "malete", malete, 0, 0);
51
52 return TCL_OK;
53 } /* maleteclInit */

  ViewVC Help
Powered by ViewVC 1.1.26