home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!agate!adrianho
- From: adrianho@barkley.berkeley.edu (Adrian J Ho)
- Newsgroups: comp.lang.tcl
- Subject: Re: How do I imbed tcl in an application
- Date: 30 Jul 92 15:11:11
- Organization: University of California, Berkeley
- Lines: 31
- Message-ID: <ADRIANHO.92Jul30151111@barkley.berkeley.edu>
- References: <1992Jul27.175107.7633@rchland.ibm.com>
- <ADRIANHO.92Jul27175403@barkley.berkeley.edu>
- <1992Jul28.113922.19882@cas.org>,<156g6sINNnp2@agate.berkeley.edu>
- <1992Jul29.222557.7305@cpu.com>
- <ADRIANHO.92Jul29201730@barkley.berkeley.edu>
- NNTP-Posting-Host: barkley.berkeley.edu
- In-reply-to: adrianho@barkley.berkeley.edu's message of 29 Jul 92 20:17:30
-
- In article <ADRIANHO.92Jul29201730@barkley.berkeley.edu> adrianho@barkley.berkeley.edu (Adrian J Ho) writes:
- >IMHO, a neater way is to modify the Tcl library to allow for the
- >specification and storage of subcommand descriptors. [...]
-
- And of course I forgot to describe the changes for Tcl_DeleteCommand()
- and every other procedure that looks up the command hash table. At
- last glance, the list of procedures to be modified looks like this:
-
- tclBasic.c:
- Tcl_CreateCommand()
- Tcl_DeleteCommand()
- Tcl_DeleteInterp()
- Tcl_Eval()
- tclCmdIL.c:
- Tcl_InfoCmd()
- tclCmdMZ.c:
- Tcl_RenameCmd()
- tclProc.c:
- TclFindProc()
-
- All these procedures need to be modified to do some tree-walking
- instead of grabbing/modifying the top-level entry from the command
- hash table. Of course, it would probably be easier to construct
- special access methods for commandTables and modify all the above
- procedures to use them.
- --
- -----------------------------------------------------------------------------
- Adrian Ho, He With The Embarrassingly *Dead* Passion ** Phone: (510) 642-5563
- System Manager, CFD Lab, ME Dept, UC Berkeley * adrianho@barkley.berkeley.edu
- Maintainer, Tcl/Tk Contrib Archive ---- barkley.berkeley.edu [128.32.142.237]
- Send all Tcl/Tk Archive-related stuff to tcl-archive@barkley.berkeley.edu
-