/[ascend]/trunk/tcltk98/generic/interface/Commands.h
ViewVC logotype

Annotation of /trunk/tcltk98/generic/interface/Commands.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (hide annotations) (download) (as text)
Fri Oct 29 20:54:12 2004 UTC (17 years, 7 months ago) by aw0a
Original Path: trunk/ascend4/interface/Commands.h
File MIME type: text/x-chdr
File size: 2541 byte(s)
Setting up web subdirectory in repository
1 aw0a 1 /*
2     * Commands.h
3     * by Kirk Abbott and Ben Allan
4     * Created: 1/94
5     * Version: $Revision: 1.8 $
6     * Version control file: $RCSfile: Commands.h,v $
7     * Date last modified: $Date: 1997/07/18 12:22:40 $
8     * Last modified by: $Author: mthomas $
9     *
10     * This file is part of the ASCEND Tcl/Tk interface
11     *
12     * Copyright 1997, Carnegie Mellon University
13     *
14     * The ASCEND Tcl/Tk interface is free software; you can redistribute
15     * it and/or modify it under the terms of the GNU General Public License as
16     * published by the Free Software Foundation; either version 2 of the
17     * License, or (at your option) any later version.
18     *
19     * The ASCEND Tcl/Tk interface is distributed in hope that it will be
20     * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
21     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22     * General Public License for more details.
23     *
24     * You should have received a copy of the GNU General Public License
25     * along with the program; if not, write to the Free Software Foundation,
26     * Inc., 675 Mass Ave, Cambridge, MA 02139 USA. Check the file named
27     * COPYING. COPYING is found in ../compiler.
28     */
29    
30     #ifndef Commands_module_loaded
31     #define Commands_module_loaded
32    
33     /*
34     * To include this header, you must include the following:
35     * #include "tcl.h"
36     * #include "interface/HelpProc.h"
37     * #include "interface/Commands.h"
38     */
39    
40    
41     extern void Asc_CreateCommands(Tcl_Interp *);
42     /*
43     * void Asc_CreateCommands(interp);
44     * Comments :
45     * Registers all C written code so that the
46     * Tcl interpreter can see them. All Tcl commands should be registered
47     * here.
48     */
49    
50     extern void Asc_AddCommand(Tcl_Interp *, char *, Tcl_CmdProc *,
51     ClientData, Tcl_CmdDeleteProc *,
52     CONST char *, CONST char *,
53     CONST char *, HLFunc);
54     /*
55     * Asc_AddCommand(interp,cmdName,proc,cdata,deleteProc,
56     * group,usage,shorth,longh)
57     * Adds a command to tcl and the ASCEND commandline help data structures.
58     * This function should be used for commands created by dynamically
59     * linked packages that want to use the ascend help facility.
60     */
61    
62     #define ASCADDCOM(interp,cmdName,proc,group,usage,shorth,longh) \
63     Asc_AddCommand((interp), (cmdName), (proc), \
64     (ClientData)NULL, (Tcl_CmdDeleteProc *)NULL, \
65     (group),(usage),(shorth),(longh))
66     /*
67     * The easier macro form of Asc_AddCommand used for those commands which
68     * do not have tk-widget-like behavior or clientdata.
69     */
70    
71     #endif

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22