Mon 16 Mar 11:09:06 CET 2026
This commit is contained in:
parent
a5482acbd8
commit
34857654c0
32
src/parsef.h
Normal file
32
src/parsef.h
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
#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
|
||||||
Loading…
Reference in New Issue
Block a user