PLplot  5.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
tclMatrix.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pldll.h"
#include "tclMatrix.h"

Go to the source code of this file.

Macros

#define MAX(a, b)   ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) )
#define MIN(a, b)   ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) )
#define dbug_enter(a)

Functions

static int matrixInitialize (Tcl_Interp *interp, tclMatrix *m, int dim, int offs, int nargs, const char **args)
static int MatrixCmd (ClientData clientData, Tcl_Interp *interp, int argc, const char **argv)
static char * DeleteMatrixVar (ClientData clientData, Tcl_Interp *interp, char *name1, char *name2, int flags)
static void DeleteMatrixCmd (ClientData clientData)
static void MatrixPut_f (ClientData clientData, Tcl_Interp *interp, int index, const char *string)
static void MatrixGet_f (ClientData clientData, Tcl_Interp *interp, int index, char *string)
static void MatrixPut_i (ClientData clientData, Tcl_Interp *interp, int index, const char *string)
static void MatrixGet_i (ClientData clientData, Tcl_Interp *interp, int index, char *string)
int Tcl_MatrixCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char **argv)
tclMatrixTcl_GetMatrixPtr (Tcl_Interp *interp, const char *matName)
int Tcl_MatrixInstallXtnsn (const char *cmd, tclMatrixXtnsnProc proc)
static void MatrixPut_f (ClientData clientData, Tcl_Interp *PL_UNUSED(interp), int index, const char *string)
static void MatrixPut_i (ClientData clientData, Tcl_Interp *PL_UNUSED(interp), int index, const char *string)
static void MatrixGet_i (ClientData clientData, Tcl_Interp *PL_UNUSED(interp), int index, char *string)
static char * DeleteMatrixVar (ClientData clientData, Tcl_Interp *PL_UNUSED(interp), char *PL_UNUSED(name1), char *PL_UNUSED(name2), int PL_UNUSED(flags))

Variables

static int matTable_initted = 0
static Tcl_HashTable matTable
static tclMatrixXtnsnDescrhead = (tclMatrixXtnsnDescr *) NULL
static tclMatrixXtnsnDescrtail = (tclMatrixXtnsnDescr *) NULL

Macro Definition Documentation

#define dbug_enter (   a)

Definition at line 60 of file tclMatrix.c.

#define MAX (   a,
 
)    ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) )

Definition at line 47 of file tclMatrix.c.

#define MIN (   a,
 
)    ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) )

Definition at line 50 of file tclMatrix.c.

Function Documentation

static void DeleteMatrixCmd ( ClientData  clientData)
static

Definition at line 1083 of file tclMatrix.c.

static char* DeleteMatrixVar ( ClientData  clientData,
Tcl_Interp *  interp,
char *  name1,
char *  name2,
int  flags 
)
static
static char* DeleteMatrixVar ( ClientData  clientData,
Tcl_Interp *  PL_UNUSEDinterp,
char *  PL_UNUSEDname1,
char *  PL_UNUSEDname2,
int   PL_UNUSEDflags 
)
static

Definition at line 1028 of file tclMatrix.c.

static int MatrixCmd ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
const char **  argv 
)
static

Definition at line 524 of file tclMatrix.c.

static void MatrixGet_f ( ClientData  clientData,
Tcl_Interp *  interp,
int  index,
char *  string 
)
static

Definition at line 982 of file tclMatrix.c.

static void MatrixGet_i ( ClientData  clientData,
Tcl_Interp *  interp,
int  index,
char *  string 
)
static
static void MatrixGet_i ( ClientData  clientData,
Tcl_Interp *  PL_UNUSEDinterp,
int  index,
char *  string 
)
static

Definition at line 1005 of file tclMatrix.c.

static int matrixInitialize ( Tcl_Interp *  interp,
tclMatrix m,
int  dim,
int  offs,
int  nargs,
const char **  args 
)
static

Definition at line 461 of file tclMatrix.c.

static void MatrixPut_f ( ClientData  clientData,
Tcl_Interp *  interp,
int  index,
const char *  string 
)
static
static void MatrixPut_f ( ClientData  clientData,
Tcl_Interp *  PL_UNUSEDinterp,
int  index,
const char *  string 
)
static

Definition at line 974 of file tclMatrix.c.

static void MatrixPut_i ( ClientData  clientData,
Tcl_Interp *  interp,
int  index,
const char *  string 
)
static
static void MatrixPut_i ( ClientData  clientData,
Tcl_Interp *  PL_UNUSEDinterp,
int  index,
const char *  string 
)
static

Definition at line 992 of file tclMatrix.c.

tclMatrix* Tcl_GetMatrixPtr ( Tcl_Interp *  interp,
const char *  matName 
)

Definition at line 370 of file tclMatrix.c.

int Tcl_MatrixCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char **  argv 
)

Definition at line 123 of file tclMatrix.c.

int Tcl_MatrixInstallXtnsn ( const char *  cmd,
tclMatrixXtnsnProc  proc 
)

Definition at line 410 of file tclMatrix.c.

Variable Documentation

tclMatrixXtnsnDescr* head = (tclMatrixXtnsnDescr *) NULL
static

Definition at line 406 of file tclMatrix.c.

Tcl_HashTable matTable
static

Definition at line 66 of file tclMatrix.c.

int matTable_initted = 0
static

Definition at line 65 of file tclMatrix.c.

tclMatrixXtnsnDescr* tail = (tclMatrixXtnsnDescr *) NULL
static

Definition at line 407 of file tclMatrix.c.