summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-13 00:36:00 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:22 +0200
commit91450a8a3b3112066fd6d266a6c492365c9d8d61 (patch)
treeee31ef7fe9338e07e8327a7c253045502065f77d
parent27fbcf79bc05e63f8687e61ce83fb29c77683b4a (diff)
parser_config.[ch]: remove duplicated hidden functions
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--include/internal/parse_config.h3
-rw-r--r--libc/misc/internals/parse_config.c6
2 files changed, 3 insertions, 6 deletions
diff --git a/include/internal/parse_config.h b/include/internal/parse_config.h
index ebfb87e5f..69be0cbca 100644
--- a/include/internal/parse_config.h
+++ b/include/internal/parse_config.h
@@ -46,12 +46,9 @@ typedef struct parser_t {
} parser_t;
parser_t* config_open(const char *filename) FAST_FUNC attribute_hidden;
-libc_hidden_proto(config_open)
int config_read(parser_t *parser, char ***tokens, unsigned flags, const char *delims) FAST_FUNC attribute_hidden;
-libc_hidden_proto(config_read)
#define config_read(parser, tokens, max, min, str, flags) \
config_read(parser, tokens, ((flags) | (((min) & 0xFF) << 8) | ((max) & 0xFF)), str)
void config_close(parser_t *parser) FAST_FUNC attribute_hidden;
-libc_hidden_proto(config_close)
#endif /* __INTERNAL_PARSE_CONFIG_H */
diff --git a/libc/misc/internals/parse_config.c b/libc/misc/internals/parse_config.c
index 4d21b5eec..b79b7a081 100644
--- a/libc/misc/internals/parse_config.c
+++ b/libc/misc/internals/parse_config.c
@@ -129,7 +129,7 @@ static __always_inline parser_t * FAST_FUNC config_open2(const char *filename,
return parser;
}
-parser_t attribute_hidden * FAST_FUNC config_open(const char *filename)
+parser_t * FAST_FUNC config_open(const char *filename)
{
return config_open2(filename, fopen_or_warn_stdin);
}
@@ -142,7 +142,7 @@ static void config_free_data(parser_t *parser)
}
#endif
-void attribute_hidden FAST_FUNC config_close(parser_t *parser)
+void FAST_FUNC config_close(parser_t *parser)
{
if (parser) {
fclose(parser->fp);
@@ -176,7 +176,7 @@ mintokens > 0 make config_read() print error message if less than mintokens
(but more than 0) are found. Empty lines are always skipped (not warned about).
*/
#undef config_read
-int attribute_hidden FAST_FUNC config_read(parser_t *parser, char ***tokens,
+int FAST_FUNC config_read(parser_t *parser, char ***tokens,
unsigned flags, const char *delims)
{
char *line;