]> git.saurik.com Git - wxWidgets.git/blame - include/wx/expr.h
Compile fix for GIF decoder,
[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>
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
10b959e3
JS
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
2ce0a6e2 82#if !defined(__VISAGECPP__)
bd738633 83/* multiply defined??? */
10b959e3
JS
84#define yyleng PROIO_yyleng
85#define yytext PROIO_yytext
2ce0a6e2 86#endif
10b959e3
JS
87
88#ifdef __cplusplus
89extern "C" {
90char *proio_cons(char *, char *);
5b077d48
RR
91char * wxmake_integer(char *);
92char * wxmake_word(char *);
93char * wxmake_string(char *);
94char * wxmake_real(char *, char *);
95char * wxmake_exp(char *, char *);
96char * wxmake_exp2(char *, char *, char*);
10b959e3
JS
97void add_expr(char *);
98void process_command(char *);
99void syntax_error(char *);
100}
101#else
54da4255 102#if defined(__BORLANDC__) || defined(__VISAGECPP__)
10b959e3 103char *proio_cons(char *, char *);
5b077d48
RR
104char * wxmake_integer(char *);
105char * wxmake_word(char *);
106char * wxmake_string(char *);
107char * wxmake_real(char *, char *);
108char * wxmake_exp(char *, char *);
109char * wxmake_exp2(char *, char *, char*);
10b959e3
JS
110void add_expr(char *);
111void process_command(char *);
112void syntax_error(char *);
54da4255 113int lex_input(void);
10b959e3
JS
114#else
115char *proio_cons();
5b077d48
RR
116char * wxmake_integer();
117char * wxmake_word();
118char * wxmake_string();
119char * wxmake_real();
120char * wxmake_exp();
121char * wxmake_exp2();
10b959e3
JS
122
123void add_expr();
124void process_command();
125void syntax_error();
126#endif
127#endif
128
129#endif
c67daf87 130 /* _WX_EXPRH__ */