PLplot 5.15.0
Loading...
Searching...
No Matches
tclMain.c File Reference
#include "pltcl.h"
#include "plplotP.h"

Go to the source code of this file.

Macros

#define TclFormatInt(buf, n)
#define TCL_STORAGE_CLASS   DLLEXPORT

Functions

int isatty (int fd)
char * strcpy (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))

Variables

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

◆ TCL_STORAGE_CLASS

#define TCL_STORAGE_CLASS   DLLEXPORT

Definition at line 60 of file tclMain.c.

◆ TclFormatInt

#define TclFormatInt ( buf,
n )
Value:
sprintf( ( buf ), "%ld", (long) ( n ) )
static char buf[200]
Definition tclAPI.c:879

Definition at line 57 of file tclMain.c.

Function Documentation

◆ isatty()

int isatty ( int fd)
extern

◆ plPrepOutputHandler() [1/2]

void plPrepOutputHandler ( Tcl_Interp * interp,
int code,
int tty )
static

◆ plPrepOutputHandler() [2/2]

void plPrepOutputHandler ( Tcl_Interp * PL_UNUSEDinterp,
int PL_UNUSEDcode,
int PL_UNUSEDtty )
static

Definition at line 510 of file tclMain.c.

◆ pltclMain()

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

Definition at line 220 of file tclMain.c.

◆ strcpy()

char * strcpy ( char * dst,
const char * src )
extern

◆ TclGetStartupScriptFileName()

const char * TclGetStartupScriptFileName ( void )

Definition at line 193 of file tclMain.c.

◆ TclSetStartupScriptFileName()

void TclSetStartupScriptFileName ( char * fileName)

Definition at line 171 of file tclMain.c.

Variable Documentation

◆ options

PLOptionTable options[]
static

Definition at line 114 of file tclMain.c.

◆ pltcl_notes

const char* pltcl_notes[]
static
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.",
NULL
}

Definition at line 107 of file tclMain.c.

◆ tclErrorHandler

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

Definition at line 99 of file tclMain.c.

◆ tclPrepOutputHandler

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

Definition at line 101 of file tclMain.c.

◆ tclStartupScript

char* tclStartupScript = NULL
static

Definition at line 106 of file tclMain.c.

◆ tclStartupScriptFileName

const char* tclStartupScriptFileName = NULL
static

Definition at line 86 of file tclMain.c.