diff options
author | joye <joye> | 2014-07-08 19:55:45 (GMT) |
---|---|---|
committer | joye <joye> | 2014-07-08 19:55:45 (GMT) |
commit | d94450a5cfe4e5e7117cdc87e20d906f843e9990 (patch) | |
tree | 0855ba38b4c83cbfe50b485b22a845294e3f6bd4 /src/bltOp.h | |
parent | d9392c93890e89f29b64c963e8ff39c6e8d402a9 (diff) | |
download | blt-d94450a5cfe4e5e7117cdc87e20d906f843e9990.zip blt-d94450a5cfe4e5e7117cdc87e20d906f843e9990.tar.gz blt-d94450a5cfe4e5e7117cdc87e20d906f843e9990.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltOp.h')
-rw-r--r-- | src/bltOp.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/bltOp.h b/src/bltOp.h index 2311714..fc9ffb7 100644 --- a/src/bltOp.h +++ b/src/bltOp.h @@ -35,30 +35,33 @@ #include <tk.h> -typedef struct { +#define BLT_OP_BINARY_SEARCH 0 +#define BLT_OP_LINEAR_SEARCH 1 + +namespace Blt { + + typedef struct { const char *name; /* Name of operation */ int minChars; /* Minimum # characters to disambiguate */ void *proc; int minArgs; /* Minimum # args required */ int maxArgs; /* Maximum # args required */ const char *usage; /* Usage message */ -} Blt_OpSpec; + } Blt_OpSpec; -typedef enum { + typedef enum { BLT_OP_ARG0, /* Op is the first argument. */ BLT_OP_ARG1, /* Op is the second argument. */ BLT_OP_ARG2, /* Op is the third argument. */ BLT_OP_ARG3, /* Op is the fourth argument. */ BLT_OP_ARG4 /* Op is the fifth argument. */ -} Blt_OpIndex; - -#define BLT_OP_BINARY_SEARCH 0 -#define BLT_OP_LINEAR_SEARCH 1 + } Blt_OpIndex; -void *Blt_GetOpFromObj(Tcl_Interp* interp, int nSpecs, - Blt_OpSpec *specs, int operPos, int objc, - Tcl_Obj* const objv[], int flags); + void *GetOpFromObj(Tcl_Interp* interp, int nSpecs, + Blt_OpSpec *specs, int operPos, int objc, + Tcl_Obj* const objv[], int flags); +}; #endif |