source: trunk/gui/src/RpInit.c @ 607

Last change on this file since 607 was 503, checked in by nkissebe, 18 years ago

Converted to Tcl Extension Architecture (TEA) v3.5 for base Windows support. Added Windows ports of getrlimit, getrusage, gettimeofday, setrlimit functions.

File size: 1.2 KB
Line 
1/*
2 * ----------------------------------------------------------------------
3 *  RpInit
4 *
5 *  This file contains the function that initializes all of the various
6 *  extensions in this package.
7 * ======================================================================
8 *  AUTHOR:  Michael McLennan, Purdue University
9 *  Copyright (c) 2004-2006  Purdue Research Foundation
10 *
11 *  See the file "license.terms" for information on usage and
12 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13 * ======================================================================
14 */
15#include <tcl.h>
16
17int RpRlimit_Init _ANSI_ARGS_((Tcl_Interp *interp));
18
19#ifdef BUILD_Rappture
20__declspec( dllexport )
21#endif
22int
23Rappturegui_Init(Tcl_Interp *interp)   /* interpreter being initialized */
24{
25#ifdef _WIN32
26    rpWinInitJob();
27#endif
28    if (Tcl_InitStubs(interp, "8.4", 0) == NULL) {
29        return TCL_ERROR;
30    }
31    if (Tcl_PkgProvide(interp, "RapptureGUI", PACKAGE_VERSION) != TCL_OK) {
32        return TCL_ERROR;
33    }
34    if (RpRlimit_Init(interp) != TCL_OK) {
35        return TCL_ERROR;
36    }
37    if (RpRusage_Init(interp) != TCL_OK) {
38        return TCL_ERROR;
39    }
40    if (RpSignal_Init(interp) != TCL_OK) {
41        return TCL_ERROR;
42    }
43    return TCL_OK;
44}
Note: See TracBrowser for help on using the repository browser.