diff options
Diffstat (limited to 'src/inirw_internal.h')
-rw-r--r-- | src/inirw_internal.h | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/src/inirw_internal.h b/src/inirw_internal.h index c569fd7..f698f29 100644 --- a/src/inirw_internal.h +++ b/src/inirw_internal.h @@ -41,37 +41,23 @@ size_t getFileMaxLineLen(FILE *tfd); */ #if defined(ini_read_c) || defined(ini_write_c) -enum ini_states {Start, BgnSp, CommEndW, SectEndW, SectEndD, EqW1, EqW2, ValPSP, ValW, ValFSP, DqmW, Bslsh, Error, Stop }; -size_t strNullLen(const char *str); -struct lcini_data *iniFSM(struct lcini_data *data, const char *in, int32_t len); -int eescape(int c); -int isascalnum(int c); /* Check if input is ASCII Alpha-numeric */ -int checkspace(int c); /* Only for ASCII characters */ - + enum lcini_states {Start, BgnSp, CommEndW, SectEndW, SectEndD, EqW1, EqW2, ValPSP, ValW, ValFSP, DqmW, Bslsh, Error, Stop }; + static size_t strNullLen(const uint8_t *str); + static struct lcini_data *iniFSM(struct lcini_data *data, const uint8_t *in, int32_t len); + static uint8_t isascalnum(uint8_t c); /* Check if input is ASCII Alpha-numeric */ + static uint8_t checkspace(uint8_t c); /* Only for ASCII characters */ + static size_t strLcpy(uint8_t *dst, size_t dstlen, const uint8_t *src, size_t srclen); + static uint8_t *lciniStrResize(uint8_t *ptr, size_t oldsize, size_t newsize); + static uint8_t unescape(uint8_t c); #ifdef ini_read_c -int unescape(int c); +/* int unescape(int c); */ #endif /* ini_read_c */ #ifdef ini_write_c -//static const char* komment = ";#"; + static uint8_t eescape(uint8_t c); #endif /*ini_write_c*/ #endif /* ini_read_c, ini_write_c*/ - -/* -char *lciGETtoStr( const char *section, const char *param, char *dest, size_t dstlen ); -int8_t lciGETtoInt8( const char *filename, const char *section, const char *param); -int16_t lciGETtoInt16(const char *filename, const char *section, const char *param); -int32_t lciGETtoInt32(const char *filename, const char *section, const char *param); -int64_t lciGETtoInt64(const char *filename, const char *section, const char *param); - -double lciGETtoDlb(const char *filename, const char *section, const char *param); -float lciGETtoFlt(const char *filename, const char *section, const char *param); -long int lciGETtoLng(const char *filename, const char *section, const char *param); -*/ - - - #endif /* INI_READ_H_INCLUDED */ |