diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-15 14:22:11 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-15 14:22:11 -0400 |
| commit | f51acef40e8297d7bd41b774413aa8331ca946ed (patch) | |
| tree | 56aa02541d60beb3ece496fed2c11afd3ae942f3 /stdlib/datatypes.h | |
| parent | 7a2653501310825e02d99d51fb4b9f1aacc75214 (diff) | |
Overhaul of Path so it uses root and array of components instead of
stringly typed
Diffstat (limited to 'stdlib/datatypes.h')
| -rw-r--r-- | stdlib/datatypes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/stdlib/datatypes.h b/stdlib/datatypes.h index e131239b..8ddcbc86 100644 --- a/stdlib/datatypes.h +++ b/stdlib/datatypes.h @@ -96,6 +96,12 @@ typedef struct Text_s { #define Pattern_t Text_t #define OptionalPattern_t Text_t +typedef struct { + enum { PATH_NONE, PATH_RELATIVE, PATH_ROOT, PATH_HOME } root; + Array_t components; +} Path_t; +#define OptionalPath_t Path_t + typedef struct timeval Moment_t; #define OptionalMoment_t Moment_t |
