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

📄 tkmacprolog.c

📁 linux系统下的音频通信
💻 C
字号:
/*  * tkMacProlog.c -- * *	Implements a method on the Macintosh to get the prolog *	from the resource fork of our application (or the shared *	library). * * Copyright (c) 1996-1997 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: @(#) tkMacProlog.c 1.6 97/05/21 10:01:07 */#include "tkInt.h"#include "tclMacInt.h"#include <Resources.h>/* *-------------------------------------------------------------- * * TkGetNativeProlog -- * *	Locate and load the postscript prolog from the resource *	fork of the application.  If it can't be found then we *	will try looking for the file in the system folder. * * Results: *	A standard Tcl Result.  If everything is OK the prolog *	will be located in the result string of the interpreter. * * Side effects: *	None. * *-------------------------------------------------------------- */intTkGetNativeProlog(    Tcl_Interp *interp)		/* Places the prolog in the result. */{    Handle resource;    char *stringPtr;    int releaseIt;        resource = Tcl_MacFindResource(interp, 'TEXT', "prolog", -1,        NULL, &releaseIt);			        if (resource != NULL) {	stringPtr = Tcl_MacConvertTextResource(resource);	Tcl_SetResult(interp, stringPtr, TCL_DYNAMIC);        if (releaseIt) {                        ReleaseResource(resource);        }        return TCL_OK;    } else {	return TkGetProlog(interp);    }}

⌨️ 快捷键说明

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