Back to index

openldap  2.4.31
Functions | Variables
tclAppInit.c File Reference
#include "tcl.h"

Go to the source code of this file.

Functions

int matherr ()
int main (int argc, char **argv)
int Tcl_AppInit (Tcl_Interp *interp)

Variables

inttclDummyMathPtr = (int *) matherr

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 48 of file tclAppInit.c.

{
#ifdef USE_TCLX
    TclX_Main(argc, argv, Tcl_AppInit);
#else
    Tcl_Main(argc, argv, Tcl_AppInit);
#endif
    return 0;               /* Needed only to prevent compiler warning. */
}

Here is the call graph for this function:

int matherr ( )
int Tcl_AppInit ( Tcl_Interp *  interp)

Definition at line 80 of file tclAppInit.c.

{
    if (Tcl_Init(interp) == TCL_ERROR) {
       return TCL_ERROR;
    }

#ifdef USE_ITCL
    if (Itcl_Init(interp) == TCL_ERROR) {
       return TCL_ERROR;
    }
    Tcl_StaticPackage (interp, "Itcl", Itcl_Init, NULL);
#endif

#ifdef TCL_TEST
    if (Tcltest_Init(interp) == TCL_ERROR) {
       return TCL_ERROR;
    }
    Tcl_StaticPackage(interp, "Tcltest", Tcltest_Init,
            (Tcl_PackageInitProc *) NULL);
#endif /* TCL_TEST */

#ifdef USE_TCLX
    if (Tclx_Init (interp) == TCL_ERROR) {
       return TCL_ERROR;
    }   
    Tcl_StaticPackage (interp, "Tclx", Tclx_Init, NULL);
#endif

    if (Ldaptcl_Init(interp) == TCL_ERROR) {
       return TCL_ERROR;
    }
    Tcl_StaticPackage(interp, "Ldaptcl", Ldaptcl_Init,
            (Tcl_PackageInitProc *) NULL);

    /*
     * Call the init procedures for included packages.  Each call should
     * look like this:
     *
     * if (Mod_Init(interp) == TCL_ERROR) {
     *     return TCL_ERROR;
     * }
     *
     * where "Mod" is the name of the module.
     */

    /*
     * Call Tcl_CreateCommand for application-specific commands, if
     * they weren't already created by the init procedures called above.
     */

    /*
     * Specify a user-specific startup file to invoke if the application
     * is run interactively.  Typically the startup file is "~/.apprc"
     * where "app" is the name of the application.  If this line is deleted
     * then no user-specific startup file will be run under any conditions.
     */

    Tcl_SetVar(interp, "tcl_rcFileName", "~/.tclshrc", TCL_GLOBAL_ONLY);
    return TCL_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 24 of file tclAppInit.c.