You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
625 B
31 lines
625 B
#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_ */
|