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