aboutsummaryrefslogtreecommitdiff
path: root/src/kadmin/testing/util/test.c
blob: f9da0523890d56d8e71c629aade61c903bf75600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <tcl.h>

#define _TCL_MAIN ((TCL_MAJOR_VERSION * 100 + TCL_MINOR_VERSION) >= 704)

#if _TCL_MAIN
int
main(argc, argv)
    int argc;			/* Number of command-line arguments. */
    char **argv;		/* Values of command-line arguments. */
{
    Tcl_Main(argc, argv, Tcl_AppInit);
    return 0;			/* Needed only to prevent compiler warning. */
}
#else
/*
 * The following variable is a special hack that allows applications
 * to be linked using the procedure "main" from the Tcl library.  The
 * variable generates a reference to "main", which causes main to
 * be brought in from the library (and all of Tcl with it).
 */

extern int main();
int *tclDummyMainPtr = (int *) main;
#endif

int Tcl_AppInit(Tcl_Interp *interp)
{
     Tcl_ovsec_kadm_init(interp);
     Tcl_kadm5_init(interp);

     return(TCL_OK);
}