Back to index

openldap  2.4.31
Functions | Variables
tkAppInit.c File Reference
#include "tclExtend.h"
#include "tk.h"

Go to the source code of this file.

Functions

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

Variables

int(* tclDummyMathPtr )() = matherr

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 46 of file tkAppInit.c.

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

Here is the call graph for this function:

EXTERN int matherr ( )
int Tcl_AppInit ( Tcl_Interp *  interp)

Definition at line 76 of file tkAppInit.c.

{
    if (Tcl_Init (interp) == TCL_ERROR) {
        return TCL_ERROR;
    }
#ifdef USE_TCLX
    if (Tclx_Init(interp) == TCL_ERROR) {
        return TCL_ERROR;
    }
    Tcl_StaticPackage(interp, "Tclx", Tclx_Init, Tclx_SafeInit);
#endif
    if (Tk_Init(interp) == TCL_ERROR) {
        return TCL_ERROR;
    }
    Tcl_StaticPackage(interp, "Tk", Tk_Init, (Tcl_PackageInitProc *) NULL);
#ifdef USE_TCLX
    if (Tkx_Init(interp) == TCL_ERROR) {
        return TCL_ERROR;
    }
    Tcl_StaticPackage(interp, "Tkx", Tkx_Init, (Tcl_PackageInitProc *) NULL);
#endif

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

    /*
     * 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", "~/.wishxrc", TCL_GLOBAL_ONLY);
    return TCL_OK;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 31 of file tkAppInit.c.