aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-07-15 21:29:44 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-07-15 21:29:44 +0000
commit5e476bab9c6db89dfadc94a8c4fbf3082339fecf (patch)
tree0bbe5d74b3d70f4ce019d23fc0e5afd65e0cff2d /include
parente559e0a75738044403e9a43f54ccb0ac3091cd9a (diff)
downloadbusybox-w32-5e476bab9c6db89dfadc94a8c4fbf3082339fecf.tar.gz
busybox-w32-5e476bab9c6db89dfadc94a8c4fbf3082339fecf.tar.bz2
busybox-w32-5e476bab9c6db89dfadc94a8c4fbf3082339fecf.zip
libbb: document plans to speed up line-based input
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 0db1658f4..3a7c2eee9 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -618,7 +618,7 @@ extern char *xmalloc_fgets(FILE *file) FAST_FUNC;
618/* Chops off '\n' from the end, unlike fgets: */ 618/* Chops off '\n' from the end, unlike fgets: */
619extern char *xmalloc_fgetline(FILE *file) FAST_FUNC; 619extern char *xmalloc_fgetline(FILE *file) FAST_FUNC;
620/* Same, but doesn't try to conserve space (may have some slack after the end) */ 620/* Same, but doesn't try to conserve space (may have some slack after the end) */
621extern char *xmalloc_fgetline_fast(FILE *file) FAST_FUNC; 621/* extern char *xmalloc_fgetline_fast(FILE *file) FAST_FUNC; */
622 622
623extern void die_if_ferror(FILE *file, const char *msg) FAST_FUNC; 623extern void die_if_ferror(FILE *file, const char *msg) FAST_FUNC;
624extern void die_if_ferror_stdout(void) FAST_FUNC; 624extern void die_if_ferror_stdout(void) FAST_FUNC;
@@ -1006,6 +1006,7 @@ typedef struct parser_t {
1006} parser_t; 1006} parser_t;
1007extern FILE* config_open(parser_t *parser, const char *filename) FAST_FUNC; 1007extern FILE* config_open(parser_t *parser, const char *filename) FAST_FUNC;
1008#endif 1008#endif
1009/* TODO: add define magic to collapse ntokens/mintokens/comment into one int param */
1009extern char* config_read(parser_t *parser, char **tokens, int ntokens, int mintokens, const char *delims, char comment) FAST_FUNC; 1010extern char* config_read(parser_t *parser, char **tokens, int ntokens, int mintokens, const char *delims, char comment) FAST_FUNC;
1010extern void config_close(parser_t *parser) FAST_FUNC; 1011extern void config_close(parser_t *parser) FAST_FUNC;
1011 1012