]> git.saurik.com Git - wxWidgets.git/blame - include/wx/expr.h
Generic dirctrl corrections
[wxWidgets.git] / include / wx / expr.h
CommitLineData
c67daf87 1/* //////////////////////////////////////////////////////////////////////////
10b959e3
JS
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
c67daf87 10////////////////////////////////////////////////////////////////////////// */
10b959e3 11
34138703
JS
12#ifndef _WX_EXPRH__
13#define _WX_EXPRH__
10b959e3
JS
14
15#include <math.h>
9dea36ef
DW
16#if defined(__VISAGECPP__) && __IBMCPP__ >= 400
17# undef __BSEXCPT__
18#endif
10b959e3
JS
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
10b959e3
JS
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
2ce0a6e2 85#if !defined(__VISAGECPP__)
bd738633 86/* multiply defined??? */
10b959e3
JS
87#define yyleng PROIO_yyleng
88#define yytext PROIO_yytext
2ce0a6e2 89#endif
10b959e3
JS
90
91#ifdef __cplusplus
92extern "C" {
93char *proio_cons(char *, char *);
5b077d48
RR
94char * wxmake_integer(char *);
95char * wxmake_word(char *);
96char * wxmake_string(char *);
97char * wxmake_real(char *, char *);
98char * wxmake_exp(char *, char *);
99char * wxmake_exp2(char *, char *, char*);
10b959e3
JS
100void add_expr(char *);
101void process_command(char *);
102void syntax_error(char *);
103}
104#else
54da4255 105#if defined(__BORLANDC__) || defined(__VISAGECPP__)
10b959e3 106char *proio_cons(char *, char *);
5b077d48
RR
107char * wxmake_integer(char *);
108char * wxmake_word(char *);
109char * wxmake_string(char *);
110char * wxmake_real(char *, char *);
111char * wxmake_exp(char *, char *);
112char * wxmake_exp2(char *, char *, char*);
10b959e3
JS
113void add_expr(char *);
114void process_command(char *);
115void syntax_error(char *);
54da4255 116int lex_input(void);
10b959e3
JS
117#else
118char *proio_cons();
5b077d48
RR
119char * wxmake_integer();
120char * wxmake_word();
121char * wxmake_string();
122char * wxmake_real();
123char * wxmake_exp();
124char * wxmake_exp2();
10b959e3
JS
125
126void add_expr();
127void process_command();
128void syntax_error();
129#endif
130#endif
131
132#endif
c67daf87 133 /* _WX_EXPRH__ */