1998-08-23 03:22:56 +00:00
|
|
|
/* //////////////////////////////////////////////////////////////////////////
|
1998-05-21 15:02:02 +00: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-23 03:22:56 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////// */
|
1998-05-21 15:02:02 +00:00
|
|
|
|
1998-08-15 00:23:28 +00:00
|
|
|
#ifndef _WX_EXPRH__
|
|
|
|
#define _WX_EXPRH__
|
1998-05-21 15:02:02 +00:00
|
|
|
|
|
|
|
#include <math.h>
|
1999-12-14 23:32:53 +00:00
|
|
|
#if defined(__VISAGECPP__) && __IBMCPP__ >= 400
|
|
|
|
# undef __BSEXCPT__
|
|
|
|
#endif
|
1998-05-21 15:02:02 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#ifdef ____HPUX__
|
|
|
|
#define alloca malloc
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
char *proio_cons(char *, char *);
|
1999-01-21 19:02:18 +00: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 15:02:02 +00:00
|
|
|
void add_expr(char *);
|
|
|
|
void process_command(char *);
|
|
|
|
void syntax_error(char *);
|
|
|
|
}
|
|
|
|
#else
|
1999-08-02 04:44:01 +00:00
|
|
|
#if defined(__BORLANDC__) || defined(__VISAGECPP__)
|
1998-05-21 15:02:02 +00:00
|
|
|
char *proio_cons(char *, char *);
|
1999-01-21 19:02:18 +00: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 15:02:02 +00:00
|
|
|
void add_expr(char *);
|
|
|
|
void process_command(char *);
|
|
|
|
void syntax_error(char *);
|
1999-08-02 04:44:01 +00:00
|
|
|
int lex_input(void);
|
1998-05-21 15:02:02 +00:00
|
|
|
#else
|
|
|
|
char *proio_cons();
|
1999-01-21 19:02:18 +00:00
|
|
|
char * wxmake_integer();
|
|
|
|
char * wxmake_word();
|
|
|
|
char * wxmake_string();
|
|
|
|
char * wxmake_real();
|
|
|
|
char * wxmake_exp();
|
|
|
|
char * wxmake_exp2();
|
1998-05-21 15:02:02 +00:00
|
|
|
|
|
|
|
void add_expr();
|
|
|
|
void process_command();
|
|
|
|
void syntax_error();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
1998-08-23 03:22:56 +00:00
|
|
|
/* _WX_EXPRH__ */
|