diff options
author | joye <joye> | 2014-02-06 22:47:05 (GMT) |
---|---|---|
committer | joye <joye> | 2014-02-06 22:47:05 (GMT) |
commit | 1518ea3fe0237dca94a4c6c247489cef35e6e935 (patch) | |
tree | 5c3d4ffa3ae3d0c28fa3474732c3b348c51c3cf7 /src | |
parent | 901459ae177c63a57fa8492007b56be4d913e4fc (diff) | |
download | blt-1518ea3fe0237dca94a4c6c247489cef35e6e935.zip blt-1518ea3fe0237dca94a4c6c247489cef35e6e935.tar.gz blt-1518ea3fe0237dca94a4c6c247489cef35e6e935.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r-- | src/bltGraph.C | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/bltGraph.C b/src/bltGraph.C index ce526c3..36580fd 100644 --- a/src/bltGraph.C +++ b/src/bltGraph.C @@ -435,6 +435,26 @@ static int NewGraph(ClientData clientData, Tcl_Interp*interp, return TCL_ERROR; } +static Blt_OpSpec graphOps[]; +static int nGraphOps; +typedef int (GraphCmdProc)(Graph* graphPtr, Tcl_Interp* interp, int objc, + Tcl_Obj* const objv[]); + +int Blt_GraphInstCmdProc(ClientData clientData, Tcl_Interp* interp, int objc, + Tcl_Obj* const objv[]) +{ + Graph* graphPtr = clientData; + GraphCmdProc* proc = Blt_GetOpFromObj(interp, nGraphOps, graphOps, + BLT_OP_ARG1, objc, objv, 0); + if (proc == NULL) { + return TCL_ERROR; + } + Tcl_Preserve(graphPtr); + int result = (*proc) (graphPtr, interp, objc, objv); + Tcl_Release(graphPtr); + return result; +} + static int ConfigureOp(Graph* graphPtr, Tcl_Interp* interp, int objc, Tcl_Obj* const objv[]) { @@ -468,26 +488,6 @@ static int CgetOp(Graph* graphPtr, Tcl_Interp* interp, int objc, return TCL_OK; } -static Blt_OpSpec graphOps[]; -static int nGraphOps; -typedef int (GraphCmdProc)(Graph* graphPtr, Tcl_Interp* interp, int objc, - Tcl_Obj* const objv[]); - -int Blt_GraphInstCmdProc(ClientData clientData, Tcl_Interp* interp, int objc, - Tcl_Obj* const objv[]) -{ - Graph* graphPtr = clientData; - GraphCmdProc* proc = Blt_GetOpFromObj(interp, nGraphOps, graphOps, - BLT_OP_ARG1, objc, objv, 0); - if (proc == NULL) { - return TCL_ERROR; - } - Tcl_Preserve(graphPtr); - int result = (*proc) (graphPtr, interp, objc, objv); - Tcl_Release(graphPtr); - return result; -} - static int GraphObjConfigure(Tcl_Interp* interp, Graph* graphPtr, int objc, Tcl_Obj* const objv[]) { |