Chapter 5. Complete program listings.
*/
void
CMySpecTclApp::SourceFunctionalScripts(CTCLInterpreter& rInterp)
{ CTclGrammerApp::SourceFunctionalScripts(rInterp);
}
// Function:
// int operator()()
// Operation Type:
// Override.
/*
Purpose:
Entered at Tcl/Tk initialization time (think of this
as the entry point of the SpecTcl program). The base
class default implementation calls the member functions
of this class in an appropriate order. It’s possible for the user
to extend this functionality by adding code to this function.
*/
int
CMySpecTclApp::operator()()
{
return CTclGrammerApp::operator()();
}
CMySpecTclApp myApp;
CTclGrammerApp& app(myApp); // Create an instance of me.
CTCLApplication* gpTCLApplication=&app; // Findable by the Tcl/tk framework.
Example 5-9. Makefile
INSTDIR=/scratch/fox/SpecTcl/3.1test
# Skeleton makefile for 3.1
include $(INSTDIR)/etc/SpecTcl_Makefile.include
# If you have any switches that need to be added to the default c++ compilation
# rules, add them to the definition below:
USERCXXFLAGS=
# If you have any switches you need to add to the default c compilation rules,
# add them to the defintion below:
USERCCFLAGS=$(USERCXXFLAGS)
# If you have any switches you need to add to the link add them below:
67
Comentários a estes Manuais