]> git.saurik.com Git - wxWidgets.git/blob - include/wx/expr.h
wxMenu::Insert() seems to work, bug in wxMenuBase::Insert() is corrected
[wxWidgets.git] / include / wx / expr.h
1 /* //////////////////////////////////////////////////////////////////////////
2 // Name: expr.h
3 // Purpose: C helper defines and functions for wxExpr class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c)
9 // Licence: wxWindows licence
10 ////////////////////////////////////////////////////////////////////////// */
11
12 #ifndef _WX_EXPRH__
13 #define _WX_EXPRH__
14
15 #include <math.h>
16 #include <stdlib.h>
17
18 #ifdef ____HPUX__
19 #define alloca malloc
20 #endif
21
22 /* Rename all YACC/LEX stuff or we'll conflict with other
23 * applications
24 */
25
26 #define yyback PROIO_yyback
27 #define yylook PROIO_yylook
28 #define yywrap PROIO_yywrap
29 #define yyoutput PROIO_yyoutput
30 #define yylex PROIO_yylex
31 #define yyerror PROIO_yyerror
32 #define yyleng PROIO_yyleng
33 #define yytext PROIO_yytext
34 #define yymorfg PROIO_yymorfg
35 #define yylineno PROIO_yylineno
36 #define yytchar PROIO_yytchar
37 #define yyin PROIO_yyin
38 #define yyout PROIO_yyout
39 #define yysvf PROIO_yysvf
40 #define yyestate PROIO_yyestate
41 #define yysvec PROIO_yysvec
42 #define yybgin PROIO_yybgin
43 #define yyprevious PROIO_yyprevious
44 #define yylhs PROIO_yylhs
45 #define yylen PROIO_yylen
46 #define yydefred PROIO_yydefred
47 #define yydgoto PROIO_yydgoto
48 #define yysindex PROIO_yysindex
49 #define yyrindex PROIO_yyrindex
50 #define yygindex PROIO_yygindex
51 #define yytable PROIO_yytable
52 #define yycheck PROIO_yycheck
53 #define yyname PROIO_yyname
54 #define yyrule PROIO_yyrule
55 #define yydebug PROIO_yydebug
56 #define yynerrs PROIO_yynerrs
57 #define yyerrflag PROIO_yyerrflag
58 #define yychar PROIO_yychar
59 #define yyvsp PROIO_yyvsp
60 #define yyssp PROIO_yyssp
61 #define yyval PROIO_yyval
62 #define yylval PROIO_yylval
63 #define yyss PROIO_yyss
64 #define yyvs PROIO_yyvs
65 #define yyparse PROIO_yyparse
66
67 /* +++steve162e: more defines necessary */
68 #define yy_init_buffer PROIO_yy_init_buffer
69 #define yy_create_buffer PROIO_yy_create_buffer
70 #define yy_load_buffer_state PROIO_yy_load_buffer_state
71 #define yyrestart PROIO_yyrestart
72 #define yy_switch_to_buffer PROIO_yy_switch_to_buffer
73 #define yy_delete_buffer PROIO_yy_delete_buffer
74 /* ---steve162e */
75
76 /* WG 1/96: still more for flex 2.5 */
77 #define yy_scan_buffer PROIO_scan_buffer
78 #define yy_scan_string PROIO_scan_string
79 #define yy_scan_bytes PROIO_scan_bytes
80 #define yy_flex_debug PROIO_flex_debug
81 #define yy_flush_buffer PROIO_flush_buffer
82 #if !defined(__VISAGECPP__)
83 /* multiply defined??? */
84 #define yyleng PROIO_yyleng
85 #define yytext PROIO_yytext
86 #endif
87
88 #ifdef __cplusplus
89 extern "C" {
90 char *proio_cons(char *, char *);
91 char * wxmake_integer(char *);
92 char * wxmake_word(char *);
93 char * wxmake_string(char *);
94 char * wxmake_real(char *, char *);
95 char * wxmake_exp(char *, char *);
96 char * wxmake_exp2(char *, char *, char*);
97 void add_expr(char *);
98 void process_command(char *);
99 void syntax_error(char *);
100 }
101 #else
102 #if defined(__BORLANDC__) || defined(__VISAGECPP__)
103 char *proio_cons(char *, char *);
104 char * wxmake_integer(char *);
105 char * wxmake_word(char *);
106 char * wxmake_string(char *);
107 char * wxmake_real(char *, char *);
108 char * wxmake_exp(char *, char *);
109 char * wxmake_exp2(char *, char *, char*);
110 void add_expr(char *);
111 void process_command(char *);
112 void syntax_error(char *);
113 int lex_input(void);
114 #else
115 char *proio_cons();
116 char * wxmake_integer();
117 char * wxmake_word();
118 char * wxmake_string();
119 char * wxmake_real();
120 char * wxmake_exp();
121 char * wxmake_exp2();
122
123 void add_expr();
124 void process_command();
125 void syntax_error();
126 #endif
127 #endif
128
129 #endif
130 /* _WX_EXPRH__ */