]>
Commit | Line | Data |
---|---|---|
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 input PROIO_input | |
33 | #define unput PROIO_unput | |
34 | ||
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 | #define yyleng PROIO_yyleng | |
86 | #define yytext PROIO_yytext | |
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 __BORLANDC__ | |
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 | #else | |
114 | char *proio_cons(); | |
115 | char * wxmake_integer(); | |
116 | char * wxmake_word(); | |
117 | char * wxmake_string(); | |
118 | char * wxmake_real(); | |
119 | char * wxmake_exp(); | |
120 | char * wxmake_exp2(); | |
121 | ||
122 | void add_expr(); | |
123 | void process_command(); | |
124 | void syntax_error(); | |
125 | #endif | |
126 | #endif | |
127 | ||
128 | #endif | |
129 | /* _WX_EXPRH__ */ |