PLplot  5.15.0
tkMain.c File Reference
#include "plplotP.h"
#include "pltkd.h"
#include <stdio.h>
#include <stdlib.h>
#include <tcl.h>
#include <tk.h>

Go to the source code of this file.

Macros

#define BUFFER_SIZE   4000
 

Functions

EXTERN int Itk_Init _ANSI_ARGS_ ((Tcl_Interp *interp))
 
char *strrchr _ANSI_ARGS_ ((CONST char *string, int c))
 
static void Prompt _ANSI_ARGS_ ((Tcl_Interp *interploc, int partial))
 
static void StdinProc _ANSI_ARGS_ ((ClientData clientData, int mask))
 
int pltkMain (int argc, const char **argv, char *RcFileName, int(*AppInit)(Tcl_Interp *interp))
 
static void StdinProc (ClientData PL_UNUSED(clientData), int PL_UNUSED(mask))
 
static void Prompt (Tcl_Interp *interploc, int partial)
 

Variables

static Tcl_Interp * interp
 
static Tcl_DString command
 
static int tty
 
static char errorExitCmd [] = "exit 1"
 
static int synchronize = 0
 
static const char * script = NULL
 
static const char * fileName = NULL
 
static const char * name = NULL
 
static const char * display = NULL
 
static const char * geometry = NULL
 
static Tk_ArgvInfo argTable []
 

Macro Definition Documentation

◆ BUFFER_SIZE

#define BUFFER_SIZE   4000

Function Documentation

◆ _ANSI_ARGS_() [1/4]

EXTERN Tcl_Namespace *Tcl_GetGlobalNamespace _ANSI_ARGS_ ( (Tcl_Interp *interp )

◆ _ANSI_ARGS_() [2/4]

char* strrchr _ANSI_ARGS_ ( (CONST char *string, int c)  )

◆ _ANSI_ARGS_() [3/4]

static void Prompt _ANSI_ARGS_ ( (Tcl_Interp *interploc, int partial)  )
static

◆ _ANSI_ARGS_() [4/4]

static void StdinProc _ANSI_ARGS_ ( (ClientData clientData, int mask)  )
static

◆ pltkMain()

int pltkMain ( int  argc,
const char **  argv,
char *  RcFileName,
int(*)(Tcl_Interp *interp AppInit 
)

Definition at line 184 of file tkMain.c.

◆ Prompt()

static void Prompt ( Tcl_Interp *  interploc,
int  partial 
)
static

Definition at line 600 of file tkMain.c.

◆ StdinProc()

static void StdinProc ( ClientData   PL_UNUSEDclientData,
int   PL_UNUSEDmask 
)
static

Definition at line 494 of file tkMain.c.

Variable Documentation

◆ argTable

Tk_ArgvInfo argTable[]
static
Initial value:
= {
{ "-file", TK_ARGV_STRING, (char *) NULL, (char *) &fileName,
"File from which to read commands" },
{ "-e", TK_ARGV_STRING, (char *) NULL, (char *) &script,
"Script to execute on startup" },
{ "-geometry", TK_ARGV_STRING, (char *) NULL, (char *) &geometry,
"Initial geometry for window" },
{ "-display", TK_ARGV_STRING, (char *) NULL, (char *) &display,
"Display to use" },
{ "-name", TK_ARGV_STRING, (char *) NULL, (char *) &name,
"Name to use for application" },
{ "-sync", TK_ARGV_CONSTANT, (char *) 1, (char *) &synchronize,
"Use synchronous mode for display server" },
{ (char *) NULL, TK_ARGV_END, (char *) NULL, (char *) NULL,
(char *) NULL }
}
static const char * name
Definition: tkMain.c:135
static const char * geometry
Definition: tkMain.c:137
static const char * script
Definition: tkMain.c:133
static int synchronize
Definition: tkMain.c:132
static const char * fileName
Definition: tkMain.c:134
static const char * display
Definition: tkMain.c:136

Definition at line 139 of file tkMain.c.

◆ command

Tcl_DString command
static

Definition at line 121 of file tkMain.c.

◆ display

const char* display = NULL
static

Definition at line 136 of file tkMain.c.

◆ errorExitCmd

char errorExitCmd[] = "exit 1"
static

Definition at line 126 of file tkMain.c.

◆ fileName

const char* fileName = NULL
static

Definition at line 134 of file tkMain.c.

◆ geometry

const char* geometry = NULL
static

Definition at line 137 of file tkMain.c.

◆ interp

Tcl_Interp* interp
static

Definition at line 120 of file tkMain.c.

◆ name

const char* name = NULL
static

Definition at line 135 of file tkMain.c.

◆ script

const char* script = NULL
static

Definition at line 133 of file tkMain.c.

◆ synchronize

int synchronize = 0
static

Definition at line 132 of file tkMain.c.

◆ tty

int tty
static

Definition at line 123 of file tkMain.c.