1998-08-22 23:22:56 -04:00
|
|
|
/* //////////////////////////////////////////////////////////////////////////
|
1998-05-21 11:02:02 -04:00
|
|
|
// Name: expr.h
|
|
|
|
// Purpose: C helper defines and functions for wxExpr class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c)
|
|
|
|
// Licence: wxWindows licence
|
1998-08-22 23:22:56 -04:00
|
|
|
////////////////////////////////////////////////////////////////////////// */
|
1998-05-21 11:02:02 -04:00
|
|
|
|
1998-08-14 20:23:28 -04:00
|
|
|
#ifndef _WX_EXPRH__
|
|
|
|
#define _WX_EXPRH__
|
1998-05-21 11:02:02 -04:00
|
|
|
|
|
|
|
#include <math.h>
|
1999-12-14 18:32:53 -05:00
|
|
|
#if defined(__VISAGECPP__) && __IBMCPP__ >= 400
|
|
|
|
# undef __BSEXCPT__
|
|
|
|
#endif
|
1998-05-21 11:02:02 -04:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#ifdef ____HPUX__
|
|
|
|
#define alloca malloc
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
char *proio_cons(char *, char *);
|
1999-01-21 14:02:18 -05:00
|
|
|
char * wxmake_integer(char *);
|
|
|
|
char * wxmake_word(char *);
|
|
|
|
char * wxmake_string(char *);
|
|
|
|
char * wxmake_real(char *, char *);
|
|
|
|
char * wxmake_exp(char *, char *);
|
|
|
|
char * wxmake_exp2(char *, char *, char*);
|
1998-05-21 11:02:02 -04:00
|
|
|
void add_expr(char *);
|
|
|
|
void process_command(char *);
|
|
|
|
void syntax_error(char *);
|
|
|
|
}
|
|
|
|
#else
|
1999-08-02 00:44:01 -04:00
|
|
|
#if defined(__BORLANDC__) || defined(__VISAGECPP__)
|
1998-05-21 11:02:02 -04:00
|
|
|
char *proio_cons(char *, char *);
|
1999-01-21 14:02:18 -05:00
|
|
|
char * wxmake_integer(char *);
|
|
|
|
char * wxmake_word(char *);
|
|
|
|
char * wxmake_string(char *);
|
|
|
|
char * wxmake_real(char *, char *);
|
|
|
|
char * wxmake_exp(char *, char *);
|
|
|
|
char * wxmake_exp2(char *, char *, char*);
|
1998-05-21 11:02:02 -04:00
|
|
|
void add_expr(char *);
|
|
|
|
void process_command(char *);
|
|
|
|
void syntax_error(char *);
|
1999-08-02 00:44:01 -04:00
|
|
|
int lex_input(void);
|
1998-05-21 11:02:02 -04:00
|
|
|
#else
|
|
|
|
char *proio_cons();
|
1999-01-21 14:02:18 -05:00
|
|
|
char * wxmake_integer();
|
|
|
|
char * wxmake_word();
|
|
|
|
char * wxmake_string();
|
|
|
|
char * wxmake_real();
|
|
|
|
char * wxmake_exp();
|
|
|
|
char * wxmake_exp2();
|
1998-05-21 11:02:02 -04:00
|
|
|
|
|
|
|
void add_expr();
|
|
|
|
void process_command();
|
|
|
|
void syntax_error();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
1998-08-22 23:22:56 -04:00
|
|
|
/* _WX_EXPRH__ */
|