PLplot  5.15.0
matrixInit.c
Go to the documentation of this file.
1 // Tcl Matrix initializer.
2 // Vince Darley
3 //
4 // Copyright (C) 2004 Joao Cardoso
5 //
6 // This file is part of PLplot.
7 //
8 // PLplot is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU Library General Public License as published
10 // by the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
12 //
13 // PLplot is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU Library General Public License for more details.
17 //
18 // You should have received a copy of the GNU Library General Public License
19 // along with PLplot; if not, write to the Free Software
20 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 //
22 //
23 
24 #include "pldll.h"
25 #include "tclMatrix.h"
26 
27 int Matrix_Init( Tcl_Interp *interp )
28 {
29 #ifdef USE_TCL_STUBS
30 //
31 // We hard-wire 8.1 here, rather than TCL_VERSION, TK_VERSION because
32 // we really don't mind which version of Tcl, Tk we use as long as it
33 // is 8.1 or newer. Otherwise if we compiled against 8.2, we couldn't
34 // be loaded into 8.1
35 //
36  Tcl_InitStubs( interp, "8.1", 0 );
37 #endif
38  // matrix -- matrix support command
39  Tcl_CreateCommand( interp, "matrix", (Tcl_CmdProc *) Tcl_MatrixCmd,
40  (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL );
41 
42  Tcl_PkgProvide( interp, "Matrix", "0.1" );
43  return TCL_OK;
44 }
int Tcl_MatrixCmd(ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char **argv)
Definition: tclMatrix.c:122
int Matrix_Init(Tcl_Interp *interp)
Definition: matrixInit.c:27
static Tcl_Interp * interp
Definition: tkMain.c:120