expValue.h
625 Bytes
#ifndef _EXP_VALUE_H_
#define _EXP_VALUE_H_
#define EXP_TYP_INT 'i'
#define EXP_TYP_FLOAT 'f'
#define EXP_TYP_STRING 's'
/* Typdeklaration, etc */
typedef struct expVal s_expVal;
/* Constructoren / Destructoren */
s_expVal * expValueIntNew (long);
s_expVal * expValueFloatNew (double);
s_expVal * expValueStringNew (char *);
s_expVal * expValueClone (s_expVal *);
void expValueFree (s_expVal *);
/* Accessors */
long expValueInt (s_expVal *);
double expValueFloat (s_expVal *);
char * expValueString (s_expVal *);
/* analyse expValue */
int expValueGetType (s_expVal *);
#endif /* _EXP_VALUE_H_ */