]>
git.saurik.com Git - apple/security.git/blob - SecuritySNACCRuntime/c++-lib/src/tkAppInit.c
2 * Copyright (c) 2000-2001 Apple Computer, Inc. All Rights Reserved.
4 * The contents of this file constitute Original Code as defined in and are
5 * subject to the Apple Public Source License Version 1.2 (the 'License').
6 * You may not use this file except in compliance with the License. Please obtain
7 * a copy of the License at http://www.apple.com/publicsource and read it before
10 * This Original Code and all software distributed under the License are
11 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
12 * OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
13 * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14 * PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the
15 * specific language governing rights and limitations under the License.
20 * snacced - Snacc_Init added to the default tkXAppInit.
22 * $Header: /cvs/root/Security/SecuritySNACCRuntime/c++-lib/src/Attic/tkAppInit.c,v 1.1.1.1 2001/05/18 23:14:07 mb Exp $
23 * $Log: tkAppInit.c,v $
24 * Revision 1.1.1.1 2001/05/18 23:14:07 mb
25 * Move from private repository to open source repository
27 * Revision 1.3 2001/05/05 00:59:19 rmurphy
28 * Adding darwin license headers
30 * Revision 1.2 2000/06/08 20:05:37 dmitch
31 * Mods for X port. These files are actually machine generated and probably don't need to be in CVS....
33 * Revision 1.1.1.1 2000/03/09 01:00:06 rmurphy
34 * Base Fortissimo Tree
36 * Revision 1.1 1999/02/25 05:21:58 mb
37 * Added snacc c++ library
39 * Revision 1.2 1997/02/28 13:39:48 wan
40 * Modifications collected for new version 1.3: Bug fixes, tk4.2.
42 * Revision 1.1 1997/01/02 09:07:59 rj
48 /* I don't know why this gets configd to build but we don't have tk.h */
57 * Provides a default version of the TclX_AppInit procedure for use with
58 * applications built with Extended Tcl and Tk. This is based on the
59 * the UCB Tk file tkAppInit.c
61 *-----------------------------------------------------------------------------
62 * Copyright 1991-1993 Karl Lehenbauer and Mark Diekhans.
64 * Permission to use, copy, modify, and distribute this software and its
65 * documentation for any purpose and without fee is hereby granted, provided
66 * that the above copyright notice appear in all copies. Karl Lehenbauer and
67 * Mark Diekhans make no representations about the suitability of this
68 * software for any purpose. It is provided "as is" without express or
70 *-----------------------------------------------------------------------------
71 * $Id: tkAppInit.c,v 1.1.1.1 2001/05/18 23:14:07 mb Exp $
72 *-----------------------------------------------------------------------------
73 * Copyright (c) 1993 The Regents of the University of California.
74 * All rights reserved.
76 * Permission is hereby granted, without written agreement and without
77 * license or royalty fees, to use, copy, modify, and distribute this
78 * software and its documentation for any purpose, provided that the
79 * above copyright notice and the following two paragraphs appear in
80 * all copies of this software.
82 * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
83 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
84 * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
85 * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
87 * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
88 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
89 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
90 * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
91 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
95 static char rcsid
[] = "$Header: /cvs/root/Security/SecuritySNACCRuntime/c++-lib/src/Attic/tkAppInit.c,v 1.1.1.1 2001/05/18 23:14:07 mb Exp $ SPRITE (Berkeley)";
104 int argc
; /* Number of command-line arguments. */
105 char **argv
; /* Values of command-line arguments. */
107 Tk_Main(argc
, argv
, Tcl_AppInit
);
108 return 0; /* Needed only to prevent compiler warning. */
113 Tcl_Interp
*interp
; /* Interpreter for application. */
115 if (Tcl_Init(interp
) == TCL_ERROR
) {
118 if (Tk_Init(interp
) == TCL_ERROR
) {
121 Tcl_StaticPackage(interp
, "Tk", Tk_Init
, (Tcl_PackageInitProc
*) NULL
);
123 if (Snacc_Init (interp
) == TCL_ERROR
)
126 if (Tree_Init (interp
) == TCL_ERROR
)
129 Tcl_SetVar (interp
, "tcl_rcFileName", "~/.snaccedrc", TCL_GLOBAL_ONLY
);