BRL-CAD
cmdhist_obj.c File Reference
#include "common.h"
#include <string.h>
#include "tcl.h"
#include "bu/cmd.h"
#include "tclcad.h"
Include dependency graph for cmdhist_obj.c:

Go to the source code of this file.

Functions

HIDDEN int cho_cmd (ClientData clientData, Tcl_Interp *interp, int argc, const char **argv)
 
HIDDEN void cho_deleteProc (ClientData clientData)
 
HIDDEN struct bu_cmdhist_objcho_open (ClientData clientData, Tcl_Interp *interp, const char *name)
 
int cho_open_tcl (ClientData clientData, Tcl_Interp *interp, int argc, const char **argv)
 
int Cho_Init (Tcl_Interp *interp)
 

Function Documentation

HIDDEN int cho_cmd ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
const char **  argv 
)

Definition at line 42 of file cmdhist_obj.c.

References BRLCAD_ERROR, BRLCAD_OK, bu_cmd(), BU_CMD_NULL, bu_cmdhist_add(), bu_cmdhist_curr(), bu_cmdhist_history(), bu_cmdhist_next(), bu_cmdhist_prev(), bu_log(), bu_vls_addr(), and HIDDEN.

Referenced by cho_open_tcl().

Here is the call graph for this function:

HIDDEN void cho_deleteProc ( ClientData  clientData)

Definition at line 67 of file cmdhist_obj.c.

References bu_free(), BU_LIST_DEQUEUE, BU_LIST_NEXT, BU_LIST_NOT_HEAD, BU_LIST_PNEXT, BU_PUT, bu_vls_free(), bu_cmdhist_obj::cho_head, bu_cmdhist_obj::cho_name, bu_cmdhist::h_command, bu_cmdhist::l, and bu_cmdhist_obj::l.

Referenced by cho_open_tcl().

Here is the call graph for this function:

HIDDEN struct bu_cmdhist_obj* cho_open ( ClientData  clientData,
Tcl_Interp *  interp,
const char *  name 
)

Definition at line 94 of file cmdhist_obj.c.

References BU_CMDHIST_OBJ_NULL, BU_GET, BU_LIST_APPEND, BU_LIST_FOR, BU_LIST_INIT, BU_STR_EQUAL, bu_vls_addr(), bu_vls_init(), bu_vls_strcpy(), bu_cmdhist_obj::cho_curr, bu_cmdhist_obj::cho_head, bu_cmdhist_obj::cho_name, bu_cmdhist::h_command, bu_cmdhist::h_finish, bu_cmdhist::h_start, bu_cmdhist::h_status, bu_cmdhist::l, and bu_cmdhist_obj::l.

Referenced by cho_open_tcl().

Here is the call graph for this function: