]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wxSWIG/Modules/tcl8.h
1 /*******************************************************************************
2 * Simplified Wrapper and Interface Generator (SWIG)
4 * Author : David Beazley
6 * Department of Computer Science
7 * University of Chicago
10 * beazley@cs.uchicago.edu
12 * Please read the file LICENSE for the copyright and terms by which SWIG
13 * can be used and distributed.
14 *******************************************************************************/
16 /**************************************************************************
19 * A TCL implementation for Tcl 8.0. Basically the same as the other
20 * Tcl module, but with different code generation.
21 **************************************************************************/
23 class TCL8
: public Language
{
25 char interp_name
[256];
26 char *prefix
; // Package prefix
27 char *module; // Name of the module
31 void get_pointer(char *iname
, char *srcname
, char *src
, char *dest
, DataType
*t
,
32 String
&f
, char *ret
);
34 char *usage_func(char *, DataType
*, ParmList
*);
35 char *usage_string(char *, DataType
*, ParmList
*);
36 char *usage_var(char *, DataType
*);
37 char *usage_const(char *, DataType
*, char *);
50 String config_options
;
61 // Code generation options
74 char_result
= "TCL_VOLATILE";
76 sprintf(interp_name
,"interp");
82 void parse_args(int, char *argv
[]);
84 void create_function(char *, char *, DataType
*, ParmList
*);
85 void link_variable(char *, char *, DataType
*);
86 void declare_const(char *, char *, DataType
*, char *);
87 void initialize(void);
90 void set_module(char *,char **);
91 void set_init(char *);
92 void add_native(char *, char *);
93 void pragma(char *,char *, char *);
94 void create_command(char *, char *);
96 // Stubs for processing C++ classes in Tcl
98 void cpp_open_class(char *classname
, char *rename
, char *ctype
, int strip
);
99 void cpp_close_class();
100 void cpp_member_func(char *name
, char *iname
, DataType
*t
, ParmList
*l
);
101 void cpp_variable(char *name
, char *iname
, DataType
*t
);
102 void cpp_constructor(char *name
, char *iname
, ParmList
*l
);
103 void cpp_destructor(char *name
, char *newname
);
104 void cpp_inherit(char **baseclass
, int mode
= INHERIT_ALL
);
105 void cpp_declare_const(char *name
, char *iname
, DataType
*type
, char *value
);
106 void add_typedef(DataType
*, char *);
107 void cpp_class_decl(char *, char *, char *);