33 lines
624 B
C
33 lines
624 B
C
#ifndef _PARSEF_H
|
|
#define _PARSEF_H
|
|
|
|
#include "config.h"
|
|
#include "types.h"
|
|
|
|
/*
|
|
1. String Versions
|
|
*/
|
|
address_t ParseNumber(char *c, number_t *r);
|
|
#ifdef HASFLOAT
|
|
/* a poor man's atof implementation with character count */
|
|
address_t ParseNumber2(char *c, number_t *r);
|
|
#endif
|
|
address_t ParseString(char *c, char *r);
|
|
|
|
/*
|
|
2. Byte Stream versions
|
|
*/
|
|
index_t ReadNumber(number_t *r);
|
|
#ifdef HASFLOAT
|
|
/* a poor man's atof implementation with character count */
|
|
index_t ReadNumber2(number_t *r);
|
|
#endif
|
|
index_t ReadString(char *r);
|
|
|
|
/*
|
|
Set standard input channel (default 0)
|
|
*/
|
|
index_t parse_stdin(index_t handle);
|
|
|
|
#endif
|