Move the formatter functions into separate files so that display.c is less of a monolith; and replace the ctype.h macros with internal versions.

This commit is contained in:
Andrew Wood
2024-12-09 21:42:16 +00:00
parent c2a5be6aa9
commit c95e25776e
17 changed files with 1014 additions and 814 deletions
+10
View File
@@ -54,6 +54,11 @@ typedef enum {
* Simple string functions for processing numbers.
*/
/*
* Return true if the character is an ASCII digit.
*/
extern bool pv_isdigit(char);
/*
* Return the given string converted to a double, for use as a time
* interval.
@@ -120,6 +125,11 @@ extern size_t pv_strlcat(char *, const char *, size_t);
*/
extern size_t pv_strwidth(const char *, size_t);
/*
* Return true if the character is printable.
*/
extern bool pv_isprint(char);
/*
* Functions relating to elapsed time.
*/