Fix lib/roken parse_* warnings
This commit is contained in:
@@ -46,6 +46,20 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
parse_time (const char *s, const char *def_unit);
|
||||
|
||||
ROKEN_LIB_FUNCTION size_t ROKEN_LIB_CALL
|
||||
unparse_time (int t, char *s, size_t len);
|
||||
|
||||
ROKEN_LIB_FUNCTION size_t ROKEN_LIB_CALL
|
||||
unparse_time_approx (int t, char *s, size_t len);
|
||||
|
||||
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
|
||||
print_time_table (FILE *f);
|
||||
|
||||
/* And again, but renamed */
|
||||
|
||||
#define parse_time rk_parse_time
|
||||
#define unparse_time rk_unparse_time
|
||||
#define unparse_time_approx rk_unparse_time_approx
|
||||
|
@@ -54,6 +54,32 @@ struct units {
|
||||
unsigned mult;
|
||||
};
|
||||
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
parse_units (const char *s, const struct units *units,
|
||||
const char *def_unit);
|
||||
|
||||
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
|
||||
print_units_table (const struct units *units, FILE *f);
|
||||
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
parse_flags (const char *s, const struct units *units,
|
||||
int orig);
|
||||
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
unparse_units (int num, const struct units *units, char *s, size_t len);
|
||||
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
unparse_units_approx (int num, const struct units *units, char *s,
|
||||
size_t len);
|
||||
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
unparse_flags (int num, const struct units *units, char *s, size_t len);
|
||||
|
||||
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
|
||||
print_flags_table (const struct units *units, FILE *f);
|
||||
|
||||
/* And again, but renamed */
|
||||
|
||||
#define parse_units rk_parse_units
|
||||
#define unparse_units rk_unparse_units
|
||||
#define unparse_units_approx rk_unparse_units_approx
|
||||
|
Reference in New Issue
Block a user