home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tcltk805.zip
/
tcl805s.zip
/
tcl8.0.5
/
os2
/
dltest
/
pkgf.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-04-23
|
1KB
|
50 lines
/*
* pkgf.c --
*
* This file contains a simple Tcl package "pkgf" that is intended
* for testing the Tcl dynamic loading facilities. Its Init
* procedure returns an error in order to test how this is handled.
*
* Copyright (c) 1995 Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* SCCS: @(#) pkgf.c 1.2 96/02/15 12:30:32
*/
#include "tcl.h"
/*
* Prototypes for procedures defined later in this file:
*/
static int Pkgd_SubCmd _ANSI_ARGS_((ClientData clientData,
Tcl_Interp *interp, int argc, char **argv));
static int Pkgd_UnsafeCmd _ANSI_ARGS_((ClientData clientData,
Tcl_Interp *interp, int argc, char **argv));
/*
*----------------------------------------------------------------------
*
* Pkgf_Init --
*
* This is a package initialization procedure, which is called
* by Tcl when this package is to be added to an interpreter.
*
* Results:
* Returns TCL_ERROR and leaves an error message in interp->result.
*
* Side effects:
* None.
*
*----------------------------------------------------------------------
*/
int
Pkgf_Init(interp)
Tcl_Interp *interp; /* Interpreter in which the package is
* to be made available. */
{
return Tcl_Eval(interp, "if 44 {open non_existent}");
}