aboutsummaryrefslogtreecommitdiffstats
path: root/src/inirw_internal.h
diff options
context:
space:
mode:
authorM.Gergő2020-05-20 00:20:53 +0200
committerM.Gergő2020-05-20 00:20:53 +0200
commitee15e1da29eea49057ea3b87ac861e6a2f1fea96 (patch)
treeb508bd3ac8a8143fa9a8d9c5e4ebc16358c9c021 /src/inirw_internal.h
parent2ad766df8f2bd45b7c0feff2fe19fc5f67b80842 (diff)
downloadlightconfini-ee15e1da29eea49057ea3b87ac861e6a2f1fea96.tar.gz
lightconfini-ee15e1da29eea49057ea3b87ac861e6a2f1fea96.zip
New function: lciniReadOutOwn() + Clarifying numeric types
Diffstat (limited to 'src/inirw_internal.h')
-rw-r--r--src/inirw_internal.h34
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 */