Re: Writing new TCL commands

Doug Hughes (Doug.Hughes@Eng.Auburn.EDU)
Tue, 4 Jun 1996 15:54:12 -0500

>
>Hi,
>I have a need to incorporate a 'C' subroutine into my Scotty agent, which I
>would like to do as a TCL command procedure. Where is the best place for me to
>put the 'Tcl_CreateCommand' for my command procedure? I want to do this with
>the least amount of modifications (preferably NO modifications) to Scotty
>code. I was hoping for the existence of an initialization exit or something
>for registering new commands. Can anyone provide me some guidance?
>thanks,
>Sandy-Dean@ti.com
>
>
>

Stick it in the main program stuff (which is basically just a {tcl,tk}AppInit.c
clone procedure).

When Scotty 2.1 comes out you'll be able to do it in a separate dynamically
loadable library, which means 0 modifications of anything.

--
____________________________________________________________________________
Doug Hughes					Engineering Network Services
System/Net Admin  				Auburn University
			doug@eng.auburn.edu
		Pro is to Con as progress is to congress