summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;