资源简介
msys7zawgetsvngitmercurialcvs-rev12.7z
代码片段和文件信息
/*
* tkAppInit.c --
*
* Provides a default version of the Tcl_AppInit procedure for use in
* wish and similar Tk-based applications.
*
* Copyright (c) 1993 The Regents of the University of California.
* Copyright (c) 1994-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.
*/
#include “tk.h“
#include “locale.h“
#ifdef TK_TEST
extern int Tktest_Init(Tcl_Interp *interp);
#endif /* TK_TEST */
/*
*----------------------------------------------------------------------
*
* main --
*
* This is the main program for the application.
*
* Results:
* None: Tk_Main never returns here so this procedure never returns
* either.
*
* Side effects:
* Whatever the application does.
*
*----------------------------------------------------------------------
*/
int
main(
int argc /* Number of command-line arguments. */
char **argv) /* Values of command-line arguments. */
{
/*
* The following #if block allows you to change the AppInit function by
* using a #define of TCL_LOCAL_APPINIT instead of rewriting this entire
* file. The #if checks for that #define and uses Tcl_AppInit if it
* doesn‘t exist.
*/
#ifndef TK_LOCAL_APPINIT
#define TK_LOCAL_APPINIT Tcl_AppInit
#endif
extern int TK_LOCAL_APPINIT (Tcl_Interp *interp);
/*
* The following #if block allows you to change how Tcl finds the startup
* script prime the library or encoding paths fiddle with the argv
* etc. without needing to rewrite Tk_Main()
*/
#ifdef TK_LOCAL_MAIN_HOOK
extern int TK_LOCAL_MAIN_HOOK (int *argc char ***argv);
TK_LOCAL_MAIN_HOOK(&argc &argv);
#endif
Tk_Main(argc argv TK_LOCAL_APPINIT);
return 0; /* Needed only to prevent compiler warning. */
}
/*
*----------------------------------------------------------------------
*
* Tcl_AppInit --
*
* This procedure performs application-specific initialization. Most
* applications especially those that incorporate additional packages
* will have their own version of this procedure.
*
* Results:
* Returns a standard Tcl completion code and leaves an error message in
* the interp‘s result if an error occurs.
*
* Side effects:
* Depends on the startup script.
*
*----------------------------------------------------------------------
*/
int
Tcl_AppInit(
Tcl_Interp *interp) /* Interpreter for application. */
{
if (Tcl_Init(interp) == TCL_ERROR) {
return TCL_ERROR;
}
if (Tk_Init(interp) == TCL_ERROR) {
return TCL_ERROR;
}
Tcl_StaticPackage(interp “Tk“ Tk_Init Tk_SafeInit);
#ifdef TK_TEST
if (Tktest_Init(interp) == TCL_ERROR) {
return TCL_ERROR;
}
Tcl_StaticPackage(interp “Tktest“ Tktest_Init
(Tcl_PackageInitProc *) NULL);
#endif /* TK_TEST */
- 上一篇:点量BT源码v3.7.7.rar
- 下一篇:北航数值分析复习资料2018最新整理
相关资源
- 北航数值分析复习资料2018最新整理
- 点量BT源码v3.7.7.rar
- 完整的官方ocp中文教材.zip
- LearningOpenCV3ComputervisioninC.pdf
- 高效能人士的七个习惯(20周年纪念版
- RSoft软件.part2.rar
- RSoft软件.part3.rar
- 《TRIZ入门及实践》2009赵敏.pdf
- TMS320C28X系列DSP的CPU与外设.rar
- a905815661_10717603.zip
- SystemsPerformance_Enterprise-GreggBrendan.pdf
- hychieftain_9483422.zip
- DotfuscatorPro4.10.2.2252.rar
- SUSE_Linux_Enterprise_Server_12.tar.gz
- 网上书店.zip
- 全国大学生电子设计竞赛常用电路模
- VisualGDB5.4p3破解补丁安装包.zip
- Halcon_creak_dll.rar
- 机器学习_周志华.zip
- Spread.Sheets-Designer.12.0.0.exe
- ANSYS_LS-DYNA工程结构抗震、抗撞击与抗
- 光纤通信原理及应用_12823396.pdf
- 亿图图示专家v6.0eDrawMaxv6.0注册机.ra
- 干货分享·刑无刀《推荐系统36式》相
- 《FLUENT流体工程仿真计算与应用》.
- 深入理解C11.pdf
- 张量分析(第二版)清晰版—黄克智
- 2MachineLearning机器学习byTomMitchell英文原
- 為你自己學Git.pdf
- V-ELEQ仿真破解入门动画PPTwin764位.rar
评论
共有 条评论