diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-25 15:52:18 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-25 15:52:18 +0000 |
commit | 00c9cb1b22cc17c4db573e0e613a5f116ff0092e (patch) | |
tree | 53178b2c52c6e97c6193f73378f3c5e5a781a914 /src/headers/unsigned-template | |
parent | 2746b131aa482ac17c94bc6b82e58dbcc1b752cf (diff) | |
download | skalibs-00c9cb1b22cc17c4db573e0e613a5f116ff0092e.tar.xz |
More work on the types. This commit builds but has errors.
Rework src/headers entirely: build skalibs/types.h
Convert skalibs/fmtscan.h types.
Propagate changes until it builds.
There are a lot of incompatible pointer issues remaining, those will be fixed with the buffer overhaul.
Diffstat (limited to 'src/headers/unsigned-template')
-rw-r--r-- | src/headers/unsigned-template | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/headers/unsigned-template b/src/headers/unsigned-template new file mode 100644 index 0000000..8ef6db4 --- /dev/null +++ b/src/headers/unsigned-template @@ -0,0 +1,42 @@ +#define @TYPE@_PACK @BYTES@ +#define @type@_pack uint@BITS@_pack +#define @type@_pack_big uint@BITS@_pack_big +#define @type@_unpack uint@BITS@_unpack +#define @type@_unpack_big uint@BITS@_unpack_big + +#define @type@_reverse uint@BITS@_reverse +#define @type@_big_endian uint@BITS@_big_endian +#define @type@_little_endian uint@BITS@_little_endian + +#define @TYPE@_FMT UINT@BITS@_FMT +#define @TYPE@_OFMT UINT@BITS@_OFMT +#define @TYPE@_XFMT UINT@BITS@_XFMT +#define @TYPE@_BFMT UINT@BITS@_BFMT + +#define @type@_fmt_base uint@BITS@_fmt_base +#define @type@0_fmt_base uint@BITS@0_fmt_base +#define @type@_fmt uint@BITS@_fmt +#define @type@0_fmt uint@BITS@0_fmt +#define @type@_ofmt uint@BITS@_ofmt +#define @type@0_ofmt uint@BITS@0_ofmt +#define @type@_xfmt uint@BITS@_xfmt +#define @type@0_xfmt uint@BITS@0_xfmt +#define @type@_bfmt uint@BITS@_bfmt +#define @type@0_bfmt uint@BITS@0_bfmt + +#define @type@_fmtlist uint@BITS@_fmtlist + +#define @type@_scan_base uint@BITS@_scan_base +#define @type@0_scan_base uint@BITS@0_scan_base +#define @type@_scanlist uint@BITS@_scanlist + +#define @type@_scan(s, u) @type@_scan_base(s, (u), 10) +#define @type@0_scan(s, u) @type@0_scan_base(s, (u), 10) +#define @type@_oscan(s, u) @type@_scan_base(s, (u), 8) +#define @type@0_oscan(s, u) @type@0_scan_base(s, (u), 8) +#define @type@_xscan(s, u) @type@_scan_base(s, (u), 16) +#define @type@0_xscan(s, u) @type@0_scan_base(s, (u), 16) +#define @type@_bscan(s, u) @type@_scan_base(s, (u), 2) +#define @type@0_bscan(s, u) @type@0_scan_base(s, (u), 2) + + |