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

📄 staticpkg.3

📁 linux系统下的音频通信
💻 3
字号:
'\"'\" Copyright (c) 1995-1996 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: @(#) StaticPkg.3 1.4 96/09/04 11:21:26'\" .so man.macros.TH Tcl_StaticPackage 3 7.5 Tcl "Tcl Library Procedures".BS.SH NAMETcl_StaticPackage \- make a statically linked package available via the \fBload\fR command.SH SYNOPSIS.nf\fB#include <tcl.h>\fR.sp\fBTcl_StaticPackage\fR(\fIinterp, pkgName, initProc, safeInitProc\fR).SH ARGUMENTS.AS Tcl_PackageInitProc *safeInitProc.AP Tcl_Interp *interp inIf not NULL, points to an interpreter into which the package hasalready been loaded (i.e., the caller has already invoked theappropriate initialization procedure).  NULL means the packagehasn't yet been incorporated into any interpreter..AP char *pkgName inName of the package;  should be properly capitalized (first letterupper-case, all others lower-case)..AP Tcl_PackageInitProc *initProc inProcedure to invoke to incorporate this package into a trustedinterpreter..AP Tcl_PackageInitProc *safeInitProc inProcedure to call to incorporate this package into a safe interpreter(one that will execute untrusted scripts).   NULL means the packagecan't be used in safe interpreters..BE.SH DESCRIPTION.PPThis procedure may be invoked to announce that a package has beenlinked statically with a Tcl application and, optionally, that ithas already been loaded into an interpreter.Once \fBTcl_StaticPackage\fR has been invoked for a package, itmay be loaded into interpreters using the \fBload\fR command.\fBTcl_StaticPackage\fR is normally invoked only by the \fBTcl_AppInit\fRprocedure for the application, not by packages for themselves(\fBTcl_StaticPackage\fR should only be invoked for staticallyloaded packages, and code in the package itself should not needto know whether the package is dynamically or statically loaded)..PPWhen the \fBload\fR command is used later to load the package intoan interpreter, one of \fIinitProc\fR and \fIsafeInitProc\fR willbe invoked, depending on whether the target interpreter is safeor not.\fIinitProc\fR and \fIsafeInitProc\fR must both match thefollowing prototype:.CStypedef int Tcl_PackageInitProc(Tcl_Interp *\fIinterp\fR);.CEThe \fIinterp\fR argument identifies the interpreter in which thepackage is to be loaded.  The initialization procedure must return\fBTCL_OK\fR or \fBTCL_ERROR\fR to indicate whether or not it completedsuccessfully;  in the event of an error it should set \fIinterp->result\fRto point to an error message.The result or error from the initialization procedure will be returnedas the result of the \fBload\fR command that caused theinitialization procedure to be invoked..SH KEYWORDSinitialization procedure, package, static linking

⌨️ 快捷键说明

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