| 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 | #define yyleng PROIO_yyleng |
| 83 | #define yytext PROIO_yytext |
| 84 | |
| 85 | #ifdef __cplusplus |
| 86 | extern "C" { |
| 87 | char *proio_cons(char *, char *); |
| 88 | char * wxmake_integer(char *); |
| 89 | char * wxmake_word(char *); |
| 90 | char * wxmake_string(char *); |
| 91 | char * wxmake_real(char *, char *); |
| 92 | char * wxmake_exp(char *, char *); |
| 93 | char * wxmake_exp2(char *, char *, char*); |
| 94 | void add_expr(char *); |
| 95 | void process_command(char *); |
| 96 | void syntax_error(char *); |
| 97 | } |
| 98 | #else |
| 99 | #if defined(__BORLANDC__) || defined(__VISAGECPP__) |
| 100 | char *proio_cons(char *, char *); |
| 101 | char * wxmake_integer(char *); |
| 102 | char * wxmake_word(char *); |
| 103 | char * wxmake_string(char *); |
| 104 | char * wxmake_real(char *, char *); |
| 105 | char * wxmake_exp(char *, char *); |
| 106 | char * wxmake_exp2(char *, char *, char*); |
| 107 | void add_expr(char *); |
| 108 | void process_command(char *); |
| 109 | void syntax_error(char *); |
| 110 | int lex_input(void); |
| 111 | #else |
| 112 | char *proio_cons(); |
| 113 | char * wxmake_integer(); |
| 114 | char * wxmake_word(); |
| 115 | char * wxmake_string(); |
| 116 | char * wxmake_real(); |
| 117 | char * wxmake_exp(); |
| 118 | char * wxmake_exp2(); |
| 119 | |
| 120 | void add_expr(); |
| 121 | void process_command(); |
| 122 | void syntax_error(); |
| 123 | #endif |
| 124 | #endif |
| 125 | |
| 126 | #endif |
| 127 | /* _WX_EXPRH__ */ |