From 45f9449ae0b904917110d3f6937d0266daa84769 Mon Sep 17 00:00:00 2001 From: Nicholas Date: Thu, 11 Nov 2021 08:10:09 -0800 Subject: feat: added libfmt --- sys/libfmt/internal.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 sys/libfmt/internal.h (limited to 'sys/libfmt/internal.h') diff --git a/sys/libfmt/internal.h b/sys/libfmt/internal.h new file mode 100644 index 0000000..56e64c8 --- /dev/null +++ b/sys/libfmt/internal.h @@ -0,0 +1,15 @@ +#pragma once + +#include +#include +#include +#include + +typedef int (*Formatter)(fmt·State *io); +typedef struct Verb Verb; + +struct Verb +{ + int c; + Formatter fmt; +}; -- cgit v1.2.1 From c65794b50b1bc729e7a4e940b76a973afa3030b9 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Thu, 11 Nov 2021 14:49:35 -0800 Subject: feat: libfmt prototype added from plan9 --- sys/libfmt/internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/libfmt/internal.h') diff --git a/sys/libfmt/internal.h b/sys/libfmt/internal.h index 56e64c8..725cfff 100644 --- a/sys/libfmt/internal.h +++ b/sys/libfmt/internal.h @@ -13,3 +13,5 @@ struct Verb int c; Formatter fmt; }; + +void fmt·setlocale(fmt·State *io, char *decimal, char *thousands, char *groups); -- cgit v1.2.1