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

Subversion Repositories or1k_old

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* subcommand.h - Handle commands with subcommands.
2
   Copyright (C) 1997 Cygnus Solutions.
3
   Written by Tom Tromey <tromey@cygnus.com>.  */
4
 
5
#ifndef SUBCOMMAND_H
6
#define SUBCOMMAND_H
7
 
8
#ifdef __cplusplus
9
extern "C" {
10
#endif
11
 
12
struct ide_subcommand_table
13
{
14
  const char *method;           /* Method name.  If NULL, then this is
15
                                   the last entry in the table.  */
16
  Tcl_CmdProc *func;            /* The implementation.  */
17
  int min_args;                 /* Minimum number of args.  */
18
  int max_args;                 /* Maximum number of args.  -1 means
19
                                   no maximum.  */
20
};
21
 
22
/* Define a command with subcommands.  */
23
int ide_create_command_with_subcommands
24
  (Tcl_Interp *interp, char *name, const struct ide_subcommand_table *table,
25
   ClientData, Tcl_CmdDeleteProc *);
26
 
27
#ifdef __cplusplus
28
}
29
#endif
30
 
31
#endif /* SUBCOMMAND_H */

powered by: WebSVN 2.1.0

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