Changeset 503 for trunk/gui/src


Ignore:
Timestamp:
Aug 7, 2006, 1:11:38 PM (18 years ago)
Author:
nkissebe
Message:

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

Location:
trunk/gui/src
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/src/RpInit.c

    r193 r503  
    1717int RpRlimit_Init _ANSI_ARGS_((Tcl_Interp *interp));
    1818
     19#ifdef BUILD_Rappture
     20__declspec( dllexport )
     21#endif
    1922int
    20 Rappturegui_Init(interp)
    21     Tcl_Interp *interp;  /* interpreter being initialized */
     23Rappturegui_Init(Tcl_Interp *interp)   /* interpreter being initialized */
    2224{
     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    }
    2334    if (RpRlimit_Init(interp) != TCL_OK) {
    2435        return TCL_ERROR;
  • trunk/gui/src/RpRlimit.c

    r158 r503  
    1616 */
    1717#include <tcl.h>
     18#ifndef _WIN32
    1819#include <sys/time.h>
    1920#include <sys/resource.h>
     21#else
     22#include "RpWinResource.h"
     23#endif
    2024
    2125#include "bltInt.h"
  • trunk/gui/src/RpRusage.c

    r158 r503  
    1616 */
    1717#include <tcl.h>
     18#ifndef WIN32
    1819#include <sys/time.h>
    1920#include <sys/resource.h>
     21#else
     22#include "RpWinResource.h"
     23#endif
    2024
    2125#include "bltInt.h"
     
    252256    return tval;
    253257}
     258
  • trunk/gui/src/RpSignal.c

    r193 r503  
    4242    int signum;
    4343} RpSignalNames;
     44
     45#ifdef _WIN32
     46#define SIGHUP -1
     47#define SIGQUIT -1
     48#define SIGKILL -1
     49#define SIGPIPE -1
     50#define SIGALRM -1
     51#define SIGUSR1 -1
     52#define SIGUSR2 -1
     53#define SIGCHLD -1
     54#define SIGCONT -1
     55#define SIGSTOP -1
     56#define SIGTSTP -1
     57#define SIGTTIN -1
     58#define SIGTTOU -1
     59#endif
    4460
    4561static RpSignalNames signalNames[] = {
Note: See TracChangeset for help on using the changeset viewer.