PLplot  5.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
tclMain.c File Reference
#include "pltcl.h"
#include "plplotP.h"

Go to the source code of this file.


#define TclFormatInt(buf, n)   sprintf( ( buf ), "%ld", (long) ( n ) )


int isatty _ANSI_ARGS_ ((int fd))
char *strcpy _ANSI_ARGS_ ((char *dst, CONST char *src))
static void plPrepOutputHandler (Tcl_Interp *interp, int code, int tty)
void TclSetStartupScriptFileName (char *fileName)
const char * TclGetStartupScriptFileName (void)
int PLDLLEXPORT pltclMain (int argc, char **argv, char *PL_UNUSED(RcFileName), int(*appInitProc)(Tcl_Interp *interp))
static void plPrepOutputHandler (Tcl_Interp *PL_UNUSED(interp), int PL_UNUSED(code), int PL_UNUSED(tty))


static const char * tclStartupScriptFileName = NULL
void(* tclErrorHandler )(Tcl_Interp *interp, int code, int tty) = NULL
void(* tclPrepOutputHandler )(Tcl_Interp *interp, int code, int tty) = plPrepOutputHandler
static char * tclStartupScript = NULL
static const char * pltcl_notes []
static PLOptionTable options []

Macro Definition Documentation


Definition at line 54 of file tclMain.c.

#define TclFormatInt (   buf,
)    sprintf( ( buf ), "%ld", (long) ( n ) )

Definition at line 51 of file tclMain.c.

Function Documentation

int isatty _ANSI_ARGS_ ( (int fd)  )
char* strcpy _ANSI_ARGS_ ( (char *dst, CONST char *src)  )
static void plPrepOutputHandler ( Tcl_Interp *  interp,
int  code,
int  tty 
static void plPrepOutputHandler ( Tcl_Interp *  PL_UNUSEDinterp,
int   PL_UNUSEDcode,
int   PL_UNUSEDtty 

Definition at line 503 of file tclMain.c.

int PLDLLEXPORT pltclMain ( int  argc,
char **  argv,
char *  PL_UNUSEDRcFileName,
int(*)(Tcl_Interp *interp appInitProc 

Definition at line 214 of file tclMain.c.

const char * TclGetStartupScriptFileName ( void  )

Definition at line 187 of file tclMain.c.

void TclSetStartupScriptFileName ( char *  fileName)

Definition at line 165 of file tclMain.c.

Variable Documentation

PLOptionTable options[]

Definition at line 108 of file tclMain.c.

const char* pltcl_notes[]
Initial value:
= {
"Specifying the filename on the command line is compatible with modern",
"tclsh syntax. Old tclsh's used the -f syntax, which is still supported.",
"You may use either syntax but not both.",

Definition at line 101 of file tclMain.c.

void( * tclErrorHandler)(Tcl_Interp *interp, int code, int tty) = NULL

Definition at line 93 of file tclMain.c.

void( * tclPrepOutputHandler)(Tcl_Interp *interp, int code, int tty) = plPrepOutputHandler

Definition at line 95 of file tclMain.c.

char* tclStartupScript = NULL

Definition at line 100 of file tclMain.c.

const char* tclStartupScriptFileName = NULL

Definition at line 80 of file tclMain.c.