⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pkge.c

📁 ns-2的文件包。多多下载
💻 C
字号:
/*  * pkge.c -- * *	This file contains a simple Tcl package "pkge" 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: pkge.c,v 1.5 2000/04/04 08:06:07 hobbs Exp $ */#include "tcl.h"/* *---------------------------------------------------------------------- * * Pkge_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. * *---------------------------------------------------------------------- */intPkge_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, 1) == NULL) {	return TCL_ERROR;    }    return Tcl_Eval(interp, script);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -