diff options
Diffstat (limited to 'unix/dltest/pkgf.c')
| -rw-r--r-- | unix/dltest/pkgf.c | 53 | 
1 files changed, 0 insertions, 53 deletions
| diff --git a/unix/dltest/pkgf.c b/unix/dltest/pkgf.c deleted file mode 100644 index 79652a2..0000000 --- a/unix/dltest/pkgf.c +++ /dev/null @@ -1,53 +0,0 @@ -/*  - * 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. - * - * RCS: @(#) $Id: pkgf.c,v 1.5 2003/03/26 20:02:19 dgp Exp $ - */ -#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. */ -{ -    static char script[] = "if 44 {open non_existent}"; -    if (Tcl_InitStubs(interp, TCL_VERSION, 0) == NULL) { -	return TCL_ERROR; -    } -    return Tcl_Eval(interp, script); -} | 
