OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [insight/] [libgui/] [src/] [tkTableCmd.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/*
2
 * tkTableCmd.h --
3
 *
4
 *      This is the header file for the module that implements
5
 *      command structure lookups.
6
 *
7
 * Copyright (c) 1997,1998 Jeffrey Hobbs
8
 *
9
 * See the file "license.terms" for information on usage and redistribution
10
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
11
 *
12
 */
13
 
14
#ifndef _CMD_H_
15
#define _CMD_H_
16
 
17
#include <string.h>
18
#include <stdlib.h>
19
#include <tk.h>
20
 
21
/* structure for use in parsing table commands/values */
22
typedef struct {
23
  char *name;           /* name of the command/value */
24
  int value;            /* >0 because 0 represents an error */
25
} Cmd_Struct;
26
 
27
extern char *   Cmd_GetName _ANSI_ARGS_((const Cmd_Struct *cmds, int val));
28
extern int      Cmd_GetValue _ANSI_ARGS_((const Cmd_Struct *cmds,
29
                                          const char *arg));
30
extern void     Cmd_GetError _ANSI_ARGS_((Tcl_Interp *interp,
31
                                          const Cmd_Struct *cmds,
32
                                          const char *arg));
33
extern int      Cmd_Parse _ANSI_ARGS_((Tcl_Interp *interp, Cmd_Struct *cmds,
34
                                       const char *arg));
35
extern int      Cmd_OptionSet _ANSI_ARGS_((ClientData clientData,
36
                                           Tcl_Interp *interp,
37
                                           Tk_Window unused, char *value,
38
                                           char *widgRec, int offset));
39
extern char *   Cmd_OptionGet _ANSI_ARGS_((ClientData clientData,
40
                                           Tk_Window unused, char *widgRec,
41
                                           int offset,
42
                                           Tcl_FreeProc **freeProcPtr));
43
extern int      Cmd_BitSet _ANSI_ARGS_((ClientData clientData,
44
                                        Tcl_Interp *interp,
45
                                        Tk_Window unused, char *value,
46
                                        char *widgRec, int offset));
47
extern char *   Cmd_BitGet _ANSI_ARGS_((ClientData clientData,
48
                                        Tk_Window unused, char *widgRec,
49
                                        int offset,
50
                                        Tcl_FreeProc **freeProcPtr));
51
 
52
#endif /* _CMD_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.