diff options
author | patthoyts <patthoyts> | 2005-03-16 16:06:31 +0000 |
---|---|---|
committer | patthoyts <patthoyts> | 2005-03-16 16:06:31 +0000 |
commit | e57e62df32f40bb243f0e7a00e49d1e2ef41bd77 (patch) | |
tree | 6483bc1f0149c9c03a3c58a6d00f6155e22d86ef /jim.h | |
parent | 1ff57cf730bb7070c8302b919e0e5790f9043c86 (diff) | |
download | jimtcl-e57e62df32f40bb243f0e7a00e49d1e2ef41bd77.zip jimtcl-e57e62df32f40bb243f0e7a00e49d1e2ef41bd77.tar.gz jimtcl-e57e62df32f40bb243f0e7a00e49d1e2ef41bd77.tar.bz2 |
Added interpreter pointer to the command delete proc.
Diffstat (limited to 'jim.h')
-rw-r--r-- | jim.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* Jim - A small embeddable Tcl interpreter * Copyright 2005 Salvatore Sanfilippo <antirez@invece.org> * - * $Id: jim.h,v 1.55 2005/03/15 14:42:30 antirez Exp $ + * $Id: jim.h,v 1.56 2005/03/16 16:06:31 patthoyts Exp $ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -383,11 +383,12 @@ typedef struct Jim_Var { Jim_Obj *objPtr; struct Jim_CallFrame *linkFramePtr; } Jim_Var; - + /* The cmd structure. */ typedef int (*Jim_CmdProc)(struct Jim_Interp *interp, int argc, Jim_Obj *const *argv); -typedef void (*Jim_DelCmdProc)(void *privData); +typedef struct Jim_Interp Jim_Interp; +typedef void (*Jim_DelCmdProc)(Jim_Interp *interp, void *privData); /* A command is implemented in C if funcPtr is != NULL, otherwise * it's a Tcl procedure with the arglist and body represented by the |