OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [unix/] [tixUnixSam.c] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/*
2
 * eixInit41.c --
3
 *
4
 *      Initializes embedded Tix for Tix version 4.1.
5
 *
6
 */
7
 
8
#include <tixPort.h>
9
#include <tixInt.h>
10
 
11
#include "tixSamLib.c"
12
 
13
int             SamTix_Init _ANSI_ARGS_((Tcl_Interp *interp));
14
 
15
int
16
Tixsam_Init(interp)
17
    Tcl_Interp *interp;         /* Interpreter to initialize. */
18
{
19
    Tcl_Interp * Et_Interp = interp;
20
 
21
    if (TixInitSam(interp) != TCL_OK ){
22
        return TCL_ERROR;
23
    }
24
    if (LoadScripts(interp) != TCL_OK ){
25
        return TCL_ERROR;
26
    }
27
    if (Tcl_GlobalEval(interp, "__tixInit") != TCL_OK) {
28
        return TCL_ERROR;
29
    }
30
 
31
    return TCL_OK;
32
}
33
 
34
int
35
Tixsam_SafeInit(interp)
36
    Tcl_Interp *interp;         /* Interpreter to initialize. */
37
{
38
    return Tixsam_Init(interp);
39
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.