]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wxSWIG/Modules/swigtcl.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 Simple TCL implementation.
20 **************************************************************************/
22 class TCL
: public Language
{
24 char interp_name
[256];
25 char *prefix
; // Package prefix
26 char *module; // Name of the module
32 void get_pointer(char *iname
, char *srcname
, char *src
, char *dest
, DataType
*t
,
33 String
&f
, char *ret
);
35 char *usage_string(char *, DataType
*, ParmList
*);
36 char *usage_func(char *, DataType
*, ParmList
*);
37 char *usage_var(char *, DataType
*);
38 char *usage_const(char *, DataType
*, char *);
51 String config_options
;
62 // C++ Code generation strings
75 char_result
= "TCL_VOLATILE";
77 sprintf(interp_name
,"interp");
83 void parse_args(int, char *argv
[]);
85 void create_function(char *, char *, DataType
*, ParmList
*);
86 void link_variable(char *, char *, DataType
*);
87 void declare_const(char *, char *, DataType
*, char *);
88 void initialize(void);
91 void set_module(char *,char **);
92 void set_init(char *);
93 void add_native(char *, char *);
94 void pragma(char *,char *, char *);
95 void create_command(char *, char *);
97 // Stubs for processing C++ classes in Tcl
99 void cpp_open_class(char *classname
, char *rename
, char *ctype
, int strip
);
100 void cpp_close_class();
101 void cpp_member_func(char *name
, char *iname
, DataType
*t
, ParmList
*l
);
102 void cpp_variable(char *name
, char *iname
, DataType
*t
);
103 void cpp_constructor(char *name
, char *iname
, ParmList
*l
);
104 void cpp_destructor(char *name
, char *newname
);
105 void cpp_inherit(char **baseclass
, int mode
= INHERIT_ALL
);
106 void cpp_declare_const(char *name
, char *iname
, DataType
*type
, char *value
);
107 void cpp_class_decl(char *, char *, char *);
108 void add_typedef(DataType
*, char *);