diff --git a/libc3/gen.mk b/libc3/gen.mk
index 26abf68..0781ba8 100644
--- a/libc3/gen.mk
+++ b/libc3/gen.mk
@@ -78,7 +78,8 @@ GENERATED_FILES = \
set_item__fact.c set_item__fact.h \
set_item__tag.c set_item__tag.h \
skiplist__fact.c skiplist__fact.h \
- skiplist_node__fact.c skiplist_node__fact.h
+ skiplist_node__fact.c skiplist_node__fact.h \
+ u8.c u8.h u16.c u16.h u32.c u32.h u64.c u64.h uw.c uw.h
gen: ${GENERATED_FILES}
@@ -170,6 +171,12 @@ buf_parse_u8.c: buf_parse_u.c.in gen.mk
buf_parse_u8.h: buf_parse_u.h.in gen.mk
${SED_BITS_8} < buf_parse_u.h.in > buf_parse_u8.h
+u8.c: u.c.in gen.mk
+ ${SED_BITS_8} < u.c.in > u8.c
+
+u8.h: u.h.in gen.mk
+ ${SED_BITS_8} < u.h.in > u8.h
+
SED_BITS_16 = sed \
-e 's/_BITS[$$]/16/g' \
-e 's/_bits[$$]/16/g'
@@ -258,6 +265,12 @@ buf_parse_u16.c: buf_parse_u.c.in gen.mk
buf_parse_u16.h: buf_parse_u.h.in gen.mk
${SED_BITS_16} < buf_parse_u.h.in > buf_parse_u16.h
+u16.c: u.c.in gen.mk
+ ${SED_BITS_16} < u.c.in > u16.c
+
+u16.h: u.h.in gen.mk
+ ${SED_BITS_16} < u.h.in > u16.h
+
SED_BITS_32 = sed \
-e 's/_BITS[$$]/32/g' \
-e 's/_bits[$$]/32/g'
@@ -346,6 +359,12 @@ buf_parse_u32.c: buf_parse_u.c.in gen.mk
buf_parse_u32.h: buf_parse_u.h.in gen.mk
${SED_BITS_32} < buf_parse_u.h.in > buf_parse_u32.h
+u32.c: u.c.in gen.mk
+ ${SED_BITS_32} < u.c.in > u32.c
+
+u32.h: u.h.in gen.mk
+ ${SED_BITS_32} < u.h.in > u32.h
+
SED_BITS_64 = sed \
-e 's/_BITS[$$]/64/g' \
-e 's/_bits[$$]/64/g'
@@ -434,6 +453,12 @@ buf_parse_u64.c: buf_parse_u.c.in gen.mk
buf_parse_u64.h: buf_parse_u.h.in gen.mk
${SED_BITS_64} < buf_parse_u.h.in > buf_parse_u64.h
+u64.c: u.c.in gen.mk
+ ${SED_BITS_64} < u.c.in > u64.c
+
+u64.h: u.h.in gen.mk
+ ${SED_BITS_64} < u.h.in > u64.h
+
SED_BITS_W = sed \
-e 's/_BITS[$$]/W/g' \
-e 's/_bits[$$]/w/g'
@@ -522,6 +547,12 @@ buf_parse_uw.c: buf_parse_u.c.in gen.mk
buf_parse_uw.h: buf_parse_u.h.in gen.mk
${SED_BITS_W} < buf_parse_u.h.in > buf_parse_uw.h
+uw.c: u.c.in gen.mk
+ ${SED_BITS_W} < u.c.in > uw.c
+
+uw.h: u.h.in gen.mk
+ ${SED_BITS_W} < u.h.in > uw.h
+
SED_FACT = sed \
-e 's/_NAME[$$]/fact/g' \
-e 's/_TYPE[$$]/s_fact/g'
diff --git a/libc3/integer.c b/libc3/integer.c
index 8b56ec9..0abfff1 100644
--- a/libc3/integer.c
+++ b/libc3/integer.c
@@ -442,6 +442,12 @@ s64 integer_to_s64 (const s_integer *i)
return mp_get_i64(&i->mp_int);
}
+sw integer_to_sw (const s_integer *i)
+{
+ assert(i);
+ return (sw) mp_get_i64(&i->mp_int);
+}
+
u8 integer_to_u8 (const s_integer *i)
{
assert(i);
@@ -465,3 +471,9 @@ u64 integer_to_u64 (const s_integer *i)
assert(i);
return mp_get_u64(&i->mp_int);
}
+
+uw integer_to_uw (const s_integer *i)
+{
+ assert(i);
+ return (uw) mp_get_u64(&i->mp_int);
+}
diff --git a/libc3/integer.h b/libc3/integer.h
index 2c8db35..ef1941c 100644
--- a/libc3/integer.h
+++ b/libc3/integer.h
@@ -95,9 +95,11 @@ s8 integer_to_s8 (const s_integer *i);
s16 integer_to_s16 (const s_integer *i);
s32 integer_to_s32 (const s_integer *i);
s64 integer_to_s64 (const s_integer *i);
+sw integer_to_sw (const s_integer *i);
u8 integer_to_u8 (const s_integer *i);
u16 integer_to_u16 (const s_integer *i);
u32 integer_to_u32 (const s_integer *i);
u64 integer_to_u64 (const s_integer *i);
+uw integer_to_uw (const s_integer *i);
#endif /* INTEGER_H */
diff --git a/libc3/sources.mk b/libc3/sources.mk
index 150d89b..7473e67 100644
--- a/libc3/sources.mk
+++ b/libc3/sources.mk
@@ -122,8 +122,12 @@ HEADERS = \
tuple.h \
type.h \
types.h \
+ u16.h \
+ u32.h \
+ u64.h \
u8.h \
ucd.h \
+ uw.h \
SOURCES = \
abs.c \
@@ -242,8 +246,12 @@ SOURCES = \
timespec.c \
tuple.c \
type.c \
+ u16.c \
+ u32.c \
+ u64.c \
u8.c \
ucd.c \
+ uw.c \
LO_SOURCES = \
abs.c \
@@ -362,8 +370,12 @@ LO_SOURCES = \
timespec.c \
tuple.c \
type.c \
+ u16.c \
+ u32.c \
+ u64.c \
u8.c \
ucd.c \
+ uw.c \
../libtommath/bn_cutoffs.c \
../libtommath/bn_mp_2expt.c \
../libtommath/bn_mp_abs.c \
diff --git a/libc3/sources.sh b/libc3/sources.sh
index 9453089..560b340 100644
--- a/libc3/sources.sh
+++ b/libc3/sources.sh
@@ -1,4 +1,4 @@
# sources.sh generated by update_sources
-HEADERS='abs.h arg.h array.h binding.h bool.h buf.h buf_file.h buf_inspect.h buf_inspect_s16.h buf_inspect_s16_binary.h buf_inspect_s16_decimal.h buf_inspect_s16_hexadecimal.h buf_inspect_s16_octal.h buf_inspect_s32.h buf_inspect_s32_binary.h buf_inspect_s32_decimal.h buf_inspect_s32_hexadecimal.h buf_inspect_s32_octal.h buf_inspect_s64.h buf_inspect_s64_binary.h buf_inspect_s64_decimal.h buf_inspect_s64_hexadecimal.h buf_inspect_s64_octal.h buf_inspect_s8.h buf_inspect_s8_binary.h buf_inspect_s8_decimal.h buf_inspect_s8_hexadecimal.h buf_inspect_s8_octal.h buf_inspect_sw.h buf_inspect_sw_binary.h buf_inspect_sw_decimal.h buf_inspect_sw_hexadecimal.h buf_inspect_sw_octal.h buf_inspect_u16.h buf_inspect_u16_binary.h buf_inspect_u16_decimal.h buf_inspect_u16_hexadecimal.h buf_inspect_u16_octal.h buf_inspect_u32.h buf_inspect_u32_binary.h buf_inspect_u32_decimal.h buf_inspect_u32_hexadecimal.h buf_inspect_u32_octal.h buf_inspect_u64.h buf_inspect_u64_binary.h buf_inspect_u64_decimal.h buf_inspect_u64_hexadecimal.h buf_inspect_u64_octal.h buf_inspect_u8.h buf_inspect_u8_binary.h buf_inspect_u8_decimal.h buf_inspect_u8_hexadecimal.h buf_inspect_u8_octal.h buf_inspect_uw.h buf_inspect_uw_binary.h buf_inspect_uw_decimal.h buf_inspect_uw_hexadecimal.h buf_inspect_uw_octal.h buf_parse.h buf_parse_c.h buf_parse_s16.h buf_parse_s32.h buf_parse_s64.h buf_parse_s8.h buf_parse_sw.h buf_parse_u16.h buf_parse_u32.h buf_parse_u64.h buf_parse_u8.h buf_parse_uw.h buf_save.h c3.h c3_main.h c_types.h call.h ceiling.h cfn.h character.h compare.h config.h env.h error.h error_handler.h eval.h fact.h facts.h facts_cursor.h facts_spec.h facts_spec_cursor.h facts_with.h facts_with_cursor.h file.h float.h fn.h fn_clause.h frame.h hash.h ident.h integer.h io.h list.h log.h module.h operator.h quote.h set__fact.h set__tag.h set_cursor__fact.h set_cursor__tag.h set_item__fact.h set_item__tag.h sha1.h sign.h skiplist__fact.h skiplist_node__fact.h str.h sym.h tag.h timespec.h tuple.h type.h types.h u8.h ucd.h '
-SOURCES='abs.c arg.c array.c binding.c bool.c buf.c buf_file.c buf_inspect.c buf_inspect_s16.c buf_inspect_s16_binary.c buf_inspect_s16_decimal.c buf_inspect_s16_hexadecimal.c buf_inspect_s16_octal.c buf_inspect_s32.c buf_inspect_s32_binary.c buf_inspect_s32_decimal.c buf_inspect_s32_hexadecimal.c buf_inspect_s32_octal.c buf_inspect_s64.c buf_inspect_s64_binary.c buf_inspect_s64_decimal.c buf_inspect_s64_hexadecimal.c buf_inspect_s64_octal.c buf_inspect_s8.c buf_inspect_s8_binary.c buf_inspect_s8_decimal.c buf_inspect_s8_hexadecimal.c buf_inspect_s8_octal.c buf_inspect_sw.c buf_inspect_sw_binary.c buf_inspect_sw_decimal.c buf_inspect_sw_hexadecimal.c buf_inspect_sw_octal.c buf_inspect_u16.c buf_inspect_u16_binary.c buf_inspect_u16_decimal.c buf_inspect_u16_hexadecimal.c buf_inspect_u16_octal.c buf_inspect_u32.c buf_inspect_u32_binary.c buf_inspect_u32_decimal.c buf_inspect_u32_hexadecimal.c buf_inspect_u32_octal.c buf_inspect_u64.c buf_inspect_u64_binary.c buf_inspect_u64_decimal.c buf_inspect_u64_hexadecimal.c buf_inspect_u64_octal.c buf_inspect_u8.c buf_inspect_u8_binary.c buf_inspect_u8_decimal.c buf_inspect_u8_hexadecimal.c buf_inspect_u8_octal.c buf_inspect_uw.c buf_inspect_uw_binary.c buf_inspect_uw_decimal.c buf_inspect_uw_hexadecimal.c buf_inspect_uw_octal.c buf_parse.c buf_parse_c.c buf_parse_s16.c buf_parse_s32.c buf_parse_s64.c buf_parse_s8.c buf_parse_sw.c buf_parse_u16.c buf_parse_u32.c buf_parse_u64.c buf_parse_u8.c buf_parse_uw.c buf_save.c c3.c call.c ceiling.c cfn.c character.c compare.c env.c error.c error_handler.c eval.c fact.c facts.c facts_cursor.c facts_spec.c facts_spec_cursor.c facts_with.c facts_with_cursor.c file.c fn.c fn_clause.c frame.c hash.c ident.c integer.c io.c list.c log.c module.c operator.c quote.c set__fact.c set__tag.c set_cursor__fact.c set_cursor__tag.c set_item__fact.c set_item__tag.c sign.c skiplist__fact.c skiplist_node__fact.c str.c sym.c tag.c timespec.c tuple.c type.c u8.c ucd.c '
-LO_SOURCES='abs.c arg.c array.c binding.c bool.c buf.c buf_file.c buf_inspect.c buf_inspect_s16.c buf_inspect_s16_binary.c buf_inspect_s16_decimal.c buf_inspect_s16_hexadecimal.c buf_inspect_s16_octal.c buf_inspect_s32.c buf_inspect_s32_binary.c buf_inspect_s32_decimal.c buf_inspect_s32_hexadecimal.c buf_inspect_s32_octal.c buf_inspect_s64.c buf_inspect_s64_binary.c buf_inspect_s64_decimal.c buf_inspect_s64_hexadecimal.c buf_inspect_s64_octal.c buf_inspect_s8.c buf_inspect_s8_binary.c buf_inspect_s8_decimal.c buf_inspect_s8_hexadecimal.c buf_inspect_s8_octal.c buf_inspect_sw.c buf_inspect_sw_binary.c buf_inspect_sw_decimal.c buf_inspect_sw_hexadecimal.c buf_inspect_sw_octal.c buf_inspect_u16.c buf_inspect_u16_binary.c buf_inspect_u16_decimal.c buf_inspect_u16_hexadecimal.c buf_inspect_u16_octal.c buf_inspect_u32.c buf_inspect_u32_binary.c buf_inspect_u32_decimal.c buf_inspect_u32_hexadecimal.c buf_inspect_u32_octal.c buf_inspect_u64.c buf_inspect_u64_binary.c buf_inspect_u64_decimal.c buf_inspect_u64_hexadecimal.c buf_inspect_u64_octal.c buf_inspect_u8.c buf_inspect_u8_binary.c buf_inspect_u8_decimal.c buf_inspect_u8_hexadecimal.c buf_inspect_u8_octal.c buf_inspect_uw.c buf_inspect_uw_binary.c buf_inspect_uw_decimal.c buf_inspect_uw_hexadecimal.c buf_inspect_uw_octal.c buf_parse.c buf_parse_c.c buf_parse_s16.c buf_parse_s32.c buf_parse_s64.c buf_parse_s8.c buf_parse_sw.c buf_parse_u16.c buf_parse_u32.c buf_parse_u64.c buf_parse_u8.c buf_parse_uw.c buf_save.c c3.c call.c ceiling.c cfn.c character.c compare.c env.c error.c error_handler.c eval.c fact.c facts.c facts_cursor.c facts_spec.c facts_spec_cursor.c facts_with.c facts_with_cursor.c file.c fn.c fn_clause.c frame.c hash.c ident.c integer.c io.c list.c log.c module.c operator.c quote.c set__fact.c set__tag.c set_cursor__fact.c set_cursor__tag.c set_item__fact.c set_item__tag.c sign.c skiplist__fact.c skiplist_node__fact.c str.c sym.c tag.c timespec.c tuple.c type.c u8.c ucd.c ../libtommath/bn_cutoffs.c ../libtommath/bn_mp_2expt.c ../libtommath/bn_mp_abs.c ../libtommath/bn_mp_add.c ../libtommath/bn_mp_add_d.c ../libtommath/bn_mp_and.c ../libtommath/bn_mp_clamp.c ../libtommath/bn_mp_clear.c ../libtommath/bn_mp_clear_multi.c ../libtommath/bn_mp_cmp.c ../libtommath/bn_mp_cmp_d.c ../libtommath/bn_mp_cmp_mag.c ../libtommath/bn_mp_cnt_lsb.c ../libtommath/bn_mp_complement.c ../libtommath/bn_mp_copy.c ../libtommath/bn_mp_count_bits.c ../libtommath/bn_mp_div.c ../libtommath/bn_mp_div_2.c ../libtommath/bn_mp_div_2d.c ../libtommath/bn_mp_div_3.c ../libtommath/bn_mp_div_d.c ../libtommath/bn_mp_dr_is_modulus.c ../libtommath/bn_mp_dr_reduce.c ../libtommath/bn_mp_dr_setup.c ../libtommath/bn_mp_error_to_string.c ../libtommath/bn_mp_exch.c ../libtommath/bn_mp_exptmod.c ../libtommath/bn_mp_gcd.c ../libtommath/bn_mp_get_double.c ../libtommath/bn_mp_get_i32.c ../libtommath/bn_mp_get_i64.c ../libtommath/bn_mp_get_mag_u32.c ../libtommath/bn_mp_get_mag_u64.c ../libtommath/bn_mp_grow.c ../libtommath/bn_mp_init.c ../libtommath/bn_mp_init_copy.c ../libtommath/bn_mp_init_multi.c ../libtommath/bn_mp_init_size.c ../libtommath/bn_mp_invmod.c ../libtommath/bn_mp_lcm.c ../libtommath/bn_mp_lshd.c ../libtommath/bn_mp_mod.c ../libtommath/bn_mp_mod_2d.c ../libtommath/bn_mp_montgomery_calc_normalization.c ../libtommath/bn_mp_montgomery_reduce.c ../libtommath/bn_mp_montgomery_setup.c ../libtommath/bn_mp_mul.c ../libtommath/bn_mp_mul_2.c ../libtommath/bn_mp_mul_2d.c ../libtommath/bn_mp_mul_d.c ../libtommath/bn_mp_mulmod.c ../libtommath/bn_mp_neg.c ../libtommath/bn_mp_or.c ../libtommath/bn_mp_radix_size.c ../libtommath/bn_mp_reduce.c ../libtommath/bn_mp_reduce_2k.c ../libtommath/bn_mp_reduce_2k_l.c ../libtommath/bn_mp_reduce_2k_setup.c ../libtommath/bn_mp_reduce_2k_setup_l.c ../libtommath/bn_mp_reduce_is_2k.c ../libtommath/bn_mp_reduce_is_2k_l.c ../libtommath/bn_mp_reduce_setup.c ../libtommath/bn_mp_rshd.c ../libtommath/bn_mp_set.c ../libtommath/bn_mp_set_double.c ../libtommath/bn_mp_set_i32.c ../libtommath/bn_mp_set_i64.c ../libtommath/bn_mp_set_l.c ../libtommath/bn_mp_set_u32.c ../libtommath/bn_mp_set_u64.c ../libtommath/bn_mp_set_ul.c ../libtommath/bn_mp_sqr.c ../libtommath/bn_mp_sqrt.c ../libtommath/bn_mp_sub.c ../libtommath/bn_mp_sub_d.c ../libtommath/bn_mp_xor.c ../libtommath/bn_mp_zero.c ../libtommath/bn_s_mp_add.c ../libtommath/bn_s_mp_balance_mul.c ../libtommath/bn_s_mp_exptmod.c ../libtommath/bn_s_mp_exptmod_fast.c ../libtommath/bn_s_mp_invmod_fast.c ../libtommath/bn_s_mp_invmod_slow.c ../libtommath/bn_s_mp_karatsuba_mul.c ../libtommath/bn_s_mp_karatsuba_sqr.c ../libtommath/bn_s_mp_montgomery_reduce_fast.c ../libtommath/bn_s_mp_mul_digs.c ../libtommath/bn_s_mp_mul_digs_fast.c ../libtommath/bn_s_mp_mul_high_digs.c ../libtommath/bn_s_mp_mul_high_digs_fast.c ../libtommath/bn_s_mp_rand_platform.c ../libtommath/bn_s_mp_sqr.c ../libtommath/bn_s_mp_sqr_fast.c ../libtommath/bn_s_mp_sub.c ../libtommath/bn_s_mp_toom_mul.c ../libtommath/bn_s_mp_toom_sqr.c '
+HEADERS='abs.h arg.h array.h binding.h bool.h buf.h buf_file.h buf_inspect.h buf_inspect_s16.h buf_inspect_s16_binary.h buf_inspect_s16_decimal.h buf_inspect_s16_hexadecimal.h buf_inspect_s16_octal.h buf_inspect_s32.h buf_inspect_s32_binary.h buf_inspect_s32_decimal.h buf_inspect_s32_hexadecimal.h buf_inspect_s32_octal.h buf_inspect_s64.h buf_inspect_s64_binary.h buf_inspect_s64_decimal.h buf_inspect_s64_hexadecimal.h buf_inspect_s64_octal.h buf_inspect_s8.h buf_inspect_s8_binary.h buf_inspect_s8_decimal.h buf_inspect_s8_hexadecimal.h buf_inspect_s8_octal.h buf_inspect_sw.h buf_inspect_sw_binary.h buf_inspect_sw_decimal.h buf_inspect_sw_hexadecimal.h buf_inspect_sw_octal.h buf_inspect_u16.h buf_inspect_u16_binary.h buf_inspect_u16_decimal.h buf_inspect_u16_hexadecimal.h buf_inspect_u16_octal.h buf_inspect_u32.h buf_inspect_u32_binary.h buf_inspect_u32_decimal.h buf_inspect_u32_hexadecimal.h buf_inspect_u32_octal.h buf_inspect_u64.h buf_inspect_u64_binary.h buf_inspect_u64_decimal.h buf_inspect_u64_hexadecimal.h buf_inspect_u64_octal.h buf_inspect_u8.h buf_inspect_u8_binary.h buf_inspect_u8_decimal.h buf_inspect_u8_hexadecimal.h buf_inspect_u8_octal.h buf_inspect_uw.h buf_inspect_uw_binary.h buf_inspect_uw_decimal.h buf_inspect_uw_hexadecimal.h buf_inspect_uw_octal.h buf_parse.h buf_parse_c.h buf_parse_s16.h buf_parse_s32.h buf_parse_s64.h buf_parse_s8.h buf_parse_sw.h buf_parse_u16.h buf_parse_u32.h buf_parse_u64.h buf_parse_u8.h buf_parse_uw.h buf_save.h c3.h c3_main.h c_types.h call.h ceiling.h cfn.h character.h compare.h config.h env.h error.h error_handler.h eval.h fact.h facts.h facts_cursor.h facts_spec.h facts_spec_cursor.h facts_with.h facts_with_cursor.h file.h float.h fn.h fn_clause.h frame.h hash.h ident.h integer.h io.h list.h log.h module.h operator.h quote.h set__fact.h set__tag.h set_cursor__fact.h set_cursor__tag.h set_item__fact.h set_item__tag.h sha1.h sign.h skiplist__fact.h skiplist_node__fact.h str.h sym.h tag.h timespec.h tuple.h type.h types.h u16.h u32.h u64.h u8.h ucd.h uw.h '
+SOURCES='abs.c arg.c array.c binding.c bool.c buf.c buf_file.c buf_inspect.c buf_inspect_s16.c buf_inspect_s16_binary.c buf_inspect_s16_decimal.c buf_inspect_s16_hexadecimal.c buf_inspect_s16_octal.c buf_inspect_s32.c buf_inspect_s32_binary.c buf_inspect_s32_decimal.c buf_inspect_s32_hexadecimal.c buf_inspect_s32_octal.c buf_inspect_s64.c buf_inspect_s64_binary.c buf_inspect_s64_decimal.c buf_inspect_s64_hexadecimal.c buf_inspect_s64_octal.c buf_inspect_s8.c buf_inspect_s8_binary.c buf_inspect_s8_decimal.c buf_inspect_s8_hexadecimal.c buf_inspect_s8_octal.c buf_inspect_sw.c buf_inspect_sw_binary.c buf_inspect_sw_decimal.c buf_inspect_sw_hexadecimal.c buf_inspect_sw_octal.c buf_inspect_u16.c buf_inspect_u16_binary.c buf_inspect_u16_decimal.c buf_inspect_u16_hexadecimal.c buf_inspect_u16_octal.c buf_inspect_u32.c buf_inspect_u32_binary.c buf_inspect_u32_decimal.c buf_inspect_u32_hexadecimal.c buf_inspect_u32_octal.c buf_inspect_u64.c buf_inspect_u64_binary.c buf_inspect_u64_decimal.c buf_inspect_u64_hexadecimal.c buf_inspect_u64_octal.c buf_inspect_u8.c buf_inspect_u8_binary.c buf_inspect_u8_decimal.c buf_inspect_u8_hexadecimal.c buf_inspect_u8_octal.c buf_inspect_uw.c buf_inspect_uw_binary.c buf_inspect_uw_decimal.c buf_inspect_uw_hexadecimal.c buf_inspect_uw_octal.c buf_parse.c buf_parse_c.c buf_parse_s16.c buf_parse_s32.c buf_parse_s64.c buf_parse_s8.c buf_parse_sw.c buf_parse_u16.c buf_parse_u32.c buf_parse_u64.c buf_parse_u8.c buf_parse_uw.c buf_save.c c3.c call.c ceiling.c cfn.c character.c compare.c env.c error.c error_handler.c eval.c fact.c facts.c facts_cursor.c facts_spec.c facts_spec_cursor.c facts_with.c facts_with_cursor.c file.c fn.c fn_clause.c frame.c hash.c ident.c integer.c io.c list.c log.c module.c operator.c quote.c set__fact.c set__tag.c set_cursor__fact.c set_cursor__tag.c set_item__fact.c set_item__tag.c sign.c skiplist__fact.c skiplist_node__fact.c str.c sym.c tag.c timespec.c tuple.c type.c u16.c u32.c u64.c u8.c ucd.c uw.c '
+LO_SOURCES='abs.c arg.c array.c binding.c bool.c buf.c buf_file.c buf_inspect.c buf_inspect_s16.c buf_inspect_s16_binary.c buf_inspect_s16_decimal.c buf_inspect_s16_hexadecimal.c buf_inspect_s16_octal.c buf_inspect_s32.c buf_inspect_s32_binary.c buf_inspect_s32_decimal.c buf_inspect_s32_hexadecimal.c buf_inspect_s32_octal.c buf_inspect_s64.c buf_inspect_s64_binary.c buf_inspect_s64_decimal.c buf_inspect_s64_hexadecimal.c buf_inspect_s64_octal.c buf_inspect_s8.c buf_inspect_s8_binary.c buf_inspect_s8_decimal.c buf_inspect_s8_hexadecimal.c buf_inspect_s8_octal.c buf_inspect_sw.c buf_inspect_sw_binary.c buf_inspect_sw_decimal.c buf_inspect_sw_hexadecimal.c buf_inspect_sw_octal.c buf_inspect_u16.c buf_inspect_u16_binary.c buf_inspect_u16_decimal.c buf_inspect_u16_hexadecimal.c buf_inspect_u16_octal.c buf_inspect_u32.c buf_inspect_u32_binary.c buf_inspect_u32_decimal.c buf_inspect_u32_hexadecimal.c buf_inspect_u32_octal.c buf_inspect_u64.c buf_inspect_u64_binary.c buf_inspect_u64_decimal.c buf_inspect_u64_hexadecimal.c buf_inspect_u64_octal.c buf_inspect_u8.c buf_inspect_u8_binary.c buf_inspect_u8_decimal.c buf_inspect_u8_hexadecimal.c buf_inspect_u8_octal.c buf_inspect_uw.c buf_inspect_uw_binary.c buf_inspect_uw_decimal.c buf_inspect_uw_hexadecimal.c buf_inspect_uw_octal.c buf_parse.c buf_parse_c.c buf_parse_s16.c buf_parse_s32.c buf_parse_s64.c buf_parse_s8.c buf_parse_sw.c buf_parse_u16.c buf_parse_u32.c buf_parse_u64.c buf_parse_u8.c buf_parse_uw.c buf_save.c c3.c call.c ceiling.c cfn.c character.c compare.c env.c error.c error_handler.c eval.c fact.c facts.c facts_cursor.c facts_spec.c facts_spec_cursor.c facts_with.c facts_with_cursor.c file.c fn.c fn_clause.c frame.c hash.c ident.c integer.c io.c list.c log.c module.c operator.c quote.c set__fact.c set__tag.c set_cursor__fact.c set_cursor__tag.c set_item__fact.c set_item__tag.c sign.c skiplist__fact.c skiplist_node__fact.c str.c sym.c tag.c timespec.c tuple.c type.c u16.c u32.c u64.c u8.c ucd.c uw.c ../libtommath/bn_cutoffs.c ../libtommath/bn_mp_2expt.c ../libtommath/bn_mp_abs.c ../libtommath/bn_mp_add.c ../libtommath/bn_mp_add_d.c ../libtommath/bn_mp_and.c ../libtommath/bn_mp_clamp.c ../libtommath/bn_mp_clear.c ../libtommath/bn_mp_clear_multi.c ../libtommath/bn_mp_cmp.c ../libtommath/bn_mp_cmp_d.c ../libtommath/bn_mp_cmp_mag.c ../libtommath/bn_mp_cnt_lsb.c ../libtommath/bn_mp_complement.c ../libtommath/bn_mp_copy.c ../libtommath/bn_mp_count_bits.c ../libtommath/bn_mp_div.c ../libtommath/bn_mp_div_2.c ../libtommath/bn_mp_div_2d.c ../libtommath/bn_mp_div_3.c ../libtommath/bn_mp_div_d.c ../libtommath/bn_mp_dr_is_modulus.c ../libtommath/bn_mp_dr_reduce.c ../libtommath/bn_mp_dr_setup.c ../libtommath/bn_mp_error_to_string.c ../libtommath/bn_mp_exch.c ../libtommath/bn_mp_exptmod.c ../libtommath/bn_mp_gcd.c ../libtommath/bn_mp_get_double.c ../libtommath/bn_mp_get_i32.c ../libtommath/bn_mp_get_i64.c ../libtommath/bn_mp_get_mag_u32.c ../libtommath/bn_mp_get_mag_u64.c ../libtommath/bn_mp_grow.c ../libtommath/bn_mp_init.c ../libtommath/bn_mp_init_copy.c ../libtommath/bn_mp_init_multi.c ../libtommath/bn_mp_init_size.c ../libtommath/bn_mp_invmod.c ../libtommath/bn_mp_lcm.c ../libtommath/bn_mp_lshd.c ../libtommath/bn_mp_mod.c ../libtommath/bn_mp_mod_2d.c ../libtommath/bn_mp_montgomery_calc_normalization.c ../libtommath/bn_mp_montgomery_reduce.c ../libtommath/bn_mp_montgomery_setup.c ../libtommath/bn_mp_mul.c ../libtommath/bn_mp_mul_2.c ../libtommath/bn_mp_mul_2d.c ../libtommath/bn_mp_mul_d.c ../libtommath/bn_mp_mulmod.c ../libtommath/bn_mp_neg.c ../libtommath/bn_mp_or.c ../libtommath/bn_mp_radix_size.c ../libtommath/bn_mp_reduce.c ../libtommath/bn_mp_reduce_2k.c ../libtommath/bn_mp_reduce_2k_l.c ../libtommath/bn_mp_reduce_2k_setup.c ../libtommath/bn_mp_reduce_2k_setup_l.c ../libtommath/bn_mp_reduce_is_2k.c ../libtommath/bn_mp_reduce_is_2k_l.c ../libtommath/bn_mp_reduce_setup.c ../libtommath/bn_mp_rshd.c ../libtommath/bn_mp_set.c ../libtommath/bn_mp_set_double.c ../libtommath/bn_mp_set_i32.c ../libtommath/bn_mp_set_i64.c ../libtommath/bn_mp_set_l.c ../libtommath/bn_mp_set_u32.c ../libtommath/bn_mp_set_u64.c ../libtommath/bn_mp_set_ul.c ../libtommath/bn_mp_sqr.c ../libtommath/bn_mp_sqrt.c ../libtommath/bn_mp_sub.c ../libtommath/bn_mp_sub_d.c ../libtommath/bn_mp_xor.c ../libtommath/bn_mp_zero.c ../libtommath/bn_s_mp_add.c ../libtommath/bn_s_mp_balance_mul.c ../libtommath/bn_s_mp_exptmod.c ../libtommath/bn_s_mp_exptmod_fast.c ../libtommath/bn_s_mp_invmod_fast.c ../libtommath/bn_s_mp_invmod_slow.c ../libtommath/bn_s_mp_karatsuba_mul.c ../libtommath/bn_s_mp_karatsuba_sqr.c ../libtommath/bn_s_mp_montgomery_reduce_fast.c ../libtommath/bn_s_mp_mul_digs.c ../libtommath/bn_s_mp_mul_digs_fast.c ../libtommath/bn_s_mp_mul_high_digs.c ../libtommath/bn_s_mp_mul_high_digs_fast.c ../libtommath/bn_s_mp_rand_platform.c ../libtommath/bn_s_mp_sqr.c ../libtommath/bn_s_mp_sqr_fast.c ../libtommath/bn_s_mp_sub.c ../libtommath/bn_s_mp_toom_mul.c ../libtommath/bn_s_mp_toom_sqr.c '
diff --git a/libc3/u.c.in b/libc3/u.c.in
new file mode 100644
index 0000000..df6d89b
--- /dev/null
+++ b/libc3/u.c.in
@@ -0,0 +1,81 @@
+/* c3
+ * Copyright 2022,2023 kmx.io <contact@kmx.io>
+ *
+ * Permission is hereby granted to use this software granted the above
+ * copyright notice and this permission paragraph are included in all
+ * copies and substantial portions of this software.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
+ * PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
+ * AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
+ * THIS SOFTWARE.
+ */
+/* Gen from u.h.in BITS=_BITS$ bits=_bits$ */
+#include <assert.h>
+#include <err.h>
+#include "integer.h"
+#include "tag.h"
+#include "u_bits$.h"
+
+u_bits$ u_bits$_cast (s_tag *tag)
+{
+ switch (tag->type) {
+ case TAG_VOID:
+ return 0;
+ case TAG_ARRAY:
+ goto ko;
+ case TAG_BOOL:
+ return tag->data.bool ? 1 : 0;
+ case TAG_CALL:
+ goto ko;
+ case TAG_CFN:
+ goto ko;
+ case TAG_CHARACTER:
+ return (u_bits$) tag->data.character;
+ case TAG_F32:
+ return (u_bits$) tag->data.f32;
+ case TAG_F64:
+ return (u_bits$) tag->data.f64;
+ case TAG_FACT:
+ case TAG_FN:
+ case TAG_IDENT:
+ goto ko;
+ case TAG_INTEGER:
+ return integer_to_u_bits$(&tag->data.integer);
+ case TAG_SW:
+ return (u_bits$) tag->data.sw;
+ case TAG_S64:
+ return (u_bits$) tag->data.s64;
+ case TAG_S32:
+ return (u_bits$) tag->data.s32;
+ case TAG_S16:
+ return (u_bits$) tag->data.s16;
+ case TAG_S8:
+ return (u_bits$) tag->data.s8;
+ case TAG_U8:
+ return (u_bits$) tag->data.u8;
+ case TAG_U16:
+ return (u_bits$) tag->data.u16;
+ case TAG_U32:
+ return (u_bits$) tag->data.u32;
+ case TAG_U64:
+ return (u_bits$) tag->data.u64;
+ case TAG_UW:
+ return (u_bits$) tag->data.uw;
+ case TAG_LIST:
+ case TAG_PTAG:
+ case TAG_QUOTE:
+ case TAG_STR:
+ case TAG_SYM:
+ case TAG_TUPLE:
+ case TAG_VAR:
+ goto ko;
+ }
+ assert(! "u_bits$_cast: unknown tag type");
+ errx(1, "u_bits$_cast: unknown tag type: %d", tag->type);
+ return 0;
+ ko:
+ warnx("u_bits$_cast: cannot cast %s to u_bits$",
+ tag_type_to_sym(tag->type)->str.ptr.ps8);
+ return 0;
+}
diff --git a/libc3/u.h.in b/libc3/u.h.in
new file mode 100644
index 0000000..a178ffb
--- /dev/null
+++ b/libc3/u.h.in
@@ -0,0 +1,21 @@
+/* c3
+ * Copyright 2022,2023 kmx.io <contact@kmx.io>
+ *
+ * Permission is hereby granted to use this software granted the above
+ * copyright notice and this permission paragraph are included in all
+ * copies and substantial portions of this software.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
+ * PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
+ * AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
+ * THIS SOFTWARE.
+ */
+/* Gen from u.h.in BITS=_BITS$ bits=_bits$ */
+#ifndef U_BITS$_H
+#define U_BITS$_H
+
+#include "types.h"
+
+u_bits$ u_bits$_cast (s_tag *tag);
+
+#endif /* U8_H */
diff --git a/libc3/u16.c b/libc3/u16.c
new file mode 100644
index 0000000..ef90723
--- /dev/null
+++ b/libc3/u16.c
@@ -0,0 +1,81 @@
+/* c3
+ * Copyright 2022,2023 kmx.io <contact@kmx.io>
+ *
+ * Permission is hereby granted to use this software granted the above
+ * copyright notice and this permission paragraph are included in all
+ * copies and substantial portions of this software.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
+ * PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
+ * AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
+ * THIS SOFTWARE.
+ */
+/* Gen from u.h.in BITS=16 bits=16 */
+#include <assert.h>
+#include <err.h>
+#include "integer.h"
+#include "tag.h"
+#include "u16.h"
+
+u16 u16_cast (s_tag *tag)
+{
+ switch (tag->type) {
+ case TAG_VOID:
+ return 0;
+ case TAG_ARRAY:
+ goto ko;
+ case TAG_BOOL:
+ return tag->data.bool ? 1 : 0;
+ case TAG_CALL:
+ goto ko;
+ case TAG_CFN:
+ goto ko;
+ case TAG_CHARACTER:
+ return (u16) tag->data.character;
+ case TAG_F32:
+ return (u16) tag->data.f32;
+ case TAG_F64:
+ return (u16) tag->data.f64;
+ case TAG_FACT:
+ case TAG_FN:
+ case TAG_IDENT:
+ goto ko;
+ case TAG_INTEGER:
+ return integer_to_u16(&tag->data.integer);
+ case TAG_SW:
+ return (u16) tag->data.sw;
+ case TAG_S64:
+ return (u16) tag->data.s64;
+ case TAG_S32:
+ return (u16) tag->data.s32;
+ case TAG_S16:
+ return (u16) tag->data.s16;
+ case TAG_S8:
+ return (u16) tag->data.s8;
+ case TAG_U8:
+ return (u16) tag->data.u8;
+ case TAG_U16:
+ return (u16) tag->data.u16;
+ case TAG_U32:
+ return (u16) tag->data.u32;
+ case TAG_U64:
+ return (u16) tag->data.u64;
+ case TAG_UW:
+ return (u16) tag->data.uw;
+ case TAG_LIST:
+ case TAG_PTAG:
+ case TAG_QUOTE:
+ case TAG_STR:
+ case TAG_SYM:
+ case TAG_TUPLE:
+ case TAG_VAR:
+ goto ko;
+ }
+ assert(! "u16_cast: unknown tag type");
+ errx(1, "u16_cast: unknown tag type: %d", tag->type);
+ return 0;
+ ko:
+ warnx("u16_cast: cannot cast %s to u16",
+ tag_type_to_sym(tag->type)->str.ptr.ps8);
+ return 0;
+}
diff --git a/libc3/u16.h b/libc3/u16.h
new file mode 100644
index 0000000..33cc86b
--- /dev/null
+++ b/libc3/u16.h
@@ -0,0 +1,21 @@
+/* c3
+ * Copyright 2022,2023 kmx.io <contact@kmx.io>
+ *
+ * Permission is hereby granted to use this software granted the above
+ * copyright notice and this permission paragraph are included in all
+ * copies and substantial portions of this software.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
+ * PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
+ * AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
+ * THIS SOFTWARE.
+ */
+/* Gen from u.h.in BITS=16 bits=16 */
+#ifndef U16_H
+#define U16_H
+
+#include "types.h"
+
+u16 u16_cast (s_tag *tag);
+
+#endif /* U8_H */
diff --git a/libc3/u32.c b/libc3/u32.c
new file mode 100644
index 0000000..1f3cb10
--- /dev/null
+++ b/libc3/u32.c
@@ -0,0 +1,81 @@
+/* c3
+ * Copyright 2022,2023 kmx.io <contact@kmx.io>
+ *
+ * Permission is hereby granted to use this software granted the above
+ * copyright notice and this permission paragraph are included in all
+ * copies and substantial portions of this software.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
+ * PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
+ * AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
+ * THIS SOFTWARE.
+ */
+/* Gen from u.h.in BITS=32 bits=32 */
+#include <assert.h>
+#include <err.h>
+#include "integer.h"
+#include "tag.h"
+#include "u32.h"
+
+u32 u32_cast (s_tag *tag)
+{
+ switch (tag->type) {
+ case TAG_VOID:
+ return 0;
+ case TAG_ARRAY:
+ goto ko;
+ case TAG_BOOL:
+ return tag->data.bool ? 1 : 0;
+ case TAG_CALL:
+ goto ko;
+ case TAG_CFN:
+ goto ko;
+ case TAG_CHARACTER:
+ return (u32) tag->data.character;
+ case TAG_F32:
+ return (u32) tag->data.f32;
+ case TAG_F64:
+ return (u32) tag->data.f64;
+ case TAG_FACT:
+ case TAG_FN:
+ case TAG_IDENT:
+ goto ko;
+ case TAG_INTEGER:
+ return integer_to_u32(&tag->data.integer);
+ case TAG_SW:
+ return (u32) tag->data.sw;
+ case TAG_S64:
+ return (u32) tag->data.s64;
+ case TAG_S32:
+ return (u32) tag->data.s32;
+ case TAG_S16:
+ return (u32) tag->data.s16;
+ case TAG_S8:
+ return (u32) tag->data.s8;
+ case TAG_U8:
+ return (u32) tag->data.u8;
+ case TAG_U16:
+ return (u32) tag->data.u16;
+ case TAG_U32:
+ return (u32) tag->data.u32;
+ case TAG_U64:
+ return (u32) tag->data.u64;
+ case TAG_UW:
+ return (u32) tag->data.uw;
+ case TAG_LIST:
+ case TAG_PTAG:
+ case TAG_QUOTE:
+ case TAG_STR:
+ case TAG_SYM:
+ case TAG_TUPLE:
+ case TAG_VAR:
+ goto ko;
+ }
+ assert(! "u32_cast: unknown tag type");
+ errx(1, "u32_cast: unknown tag type: %d", tag->type);
+ return 0;
+ ko:
+ warnx("u32_cast: cannot cast %s to u32",
+ tag_type_to_sym(tag->type)->str.ptr.ps8);
+ return 0;
+}
diff --git a/libc3/u32.h b/libc3/u32.h
new file mode 100644
index 0000000..c4d204d
--- /dev/null
+++ b/libc3/u32.h
@@ -0,0 +1,21 @@
+/* c3
+ * Copyright 2022,2023 kmx.io <contact@kmx.io>
+ *
+ * Permission is hereby granted to use this software granted the above
+ * copyright notice and this permission paragraph are included in all
+ * copies and substantial portions of this software.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
+ * PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
+ * AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
+ * THIS SOFTWARE.
+ */
+/* Gen from u.h.in BITS=32 bits=32 */
+#ifndef U32_H
+#define U32_H
+
+#include "types.h"
+
+u32 u32_cast (s_tag *tag);
+
+#endif /* U8_H */
diff --git a/libc3/u64.c b/libc3/u64.c
new file mode 100644
index 0000000..ef22e46
--- /dev/null
+++ b/libc3/u64.c
@@ -0,0 +1,81 @@
+/* c3
+ * Copyright 2022,2023 kmx.io <contact@kmx.io>
+ *
+ * Permission is hereby granted to use this software granted the above
+ * copyright notice and this permission paragraph are included in all
+ * copies and substantial portions of this software.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
+ * PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
+ * AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
+ * THIS SOFTWARE.
+ */
+/* Gen from u.h.in BITS=64 bits=64 */
+#include <assert.h>
+#include <err.h>
+#include "integer.h"
+#include "tag.h"
+#include "u64.h"
+
+u64 u64_cast (s_tag *tag)
+{
+ switch (tag->type) {
+ case TAG_VOID:
+ return 0;
+ case TAG_ARRAY:
+ goto ko;
+ case TAG_BOOL:
+ return tag->data.bool ? 1 : 0;
+ case TAG_CALL:
+ goto ko;
+ case TAG_CFN:
+ goto ko;
+ case TAG_CHARACTER:
+ return (u64) tag->data.character;
+ case TAG_F32:
+ return (u64) tag->data.f32;
+ case TAG_F64:
+ return (u64) tag->data.f64;
+ case TAG_FACT:
+ case TAG_FN:
+ case TAG_IDENT:
+ goto ko;
+ case TAG_INTEGER:
+ return integer_to_u64(&tag->data.integer);
+ case TAG_SW:
+ return (u64) tag->data.sw;
+ case TAG_S64:
+ return (u64) tag->data.s64;
+ case TAG_S32:
+ return (u64) tag->data.s32;
+ case TAG_S16:
+ return (u64) tag->data.s16;
+ case TAG_S8:
+ return (u64) tag->data.s8;
+ case TAG_U8:
+ return (u64) tag->data.u8;
+ case TAG_U16:
+ return (u64) tag->data.u16;
+ case TAG_U32:
+ return (u64) tag->data.u32;
+ case TAG_U64:
+ return (u64) tag->data.u64;
+ case TAG_UW:
+ return (u64) tag->data.uw;
+ case TAG_LIST:
+ case TAG_PTAG:
+ case TAG_QUOTE:
+ case TAG_STR:
+ case TAG_SYM:
+ case TAG_TUPLE:
+ case TAG_VAR:
+ goto ko;
+ }
+ assert(! "u64_cast: unknown tag type");
+ errx(1, "u64_cast: unknown tag type: %d", tag->type);
+ return 0;
+ ko:
+ warnx("u64_cast: cannot cast %s to u64",
+ tag_type_to_sym(tag->type)->str.ptr.ps8);
+ return 0;
+}
diff --git a/libc3/u64.h b/libc3/u64.h
new file mode 100644
index 0000000..0999141
--- /dev/null
+++ b/libc3/u64.h
@@ -0,0 +1,21 @@
+/* c3
+ * Copyright 2022,2023 kmx.io <contact@kmx.io>
+ *
+ * Permission is hereby granted to use this software granted the above
+ * copyright notice and this permission paragraph are included in all
+ * copies and substantial portions of this software.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
+ * PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
+ * AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
+ * THIS SOFTWARE.
+ */
+/* Gen from u.h.in BITS=64 bits=64 */
+#ifndef U64_H
+#define U64_H
+
+#include "types.h"
+
+u64 u64_cast (s_tag *tag);
+
+#endif /* U8_H */
diff --git a/libc3/u8.c b/libc3/u8.c
index 0902351..29fba4a 100644
--- a/libc3/u8.c
+++ b/libc3/u8.c
@@ -10,6 +10,7 @@
* AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
* THIS SOFTWARE.
*/
+/* Gen from u.h.in BITS=8 bits=8 */
#include <assert.h>
#include <err.h>
#include "integer.h"
@@ -52,7 +53,7 @@ u8 u8_cast (s_tag *tag)
case TAG_S8:
return (u8) tag->data.s8;
case TAG_U8:
- return tag->data.u8;
+ return (u8) tag->data.u8;
case TAG_U16:
return (u8) tag->data.u16;
case TAG_U32:
diff --git a/libc3/u8.h b/libc3/u8.h
index 1b39093..4a7654d 100644
--- a/libc3/u8.h
+++ b/libc3/u8.h
@@ -10,12 +10,7 @@
* AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
* THIS SOFTWARE.
*/
-/**
- * @file u8.h
- * @brief U8 operations.
- *
- * Structure to manipulate u8 (unsigned 8-bit) data.
- */
+/* Gen from u.h.in BITS=8 bits=8 */
#ifndef U8_H
#define U8_H
diff --git a/libc3/uw.c b/libc3/uw.c
new file mode 100644
index 0000000..94145b3
--- /dev/null
+++ b/libc3/uw.c
@@ -0,0 +1,81 @@
+/* c3
+ * Copyright 2022,2023 kmx.io <contact@kmx.io>
+ *
+ * Permission is hereby granted to use this software granted the above
+ * copyright notice and this permission paragraph are included in all
+ * copies and substantial portions of this software.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
+ * PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
+ * AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
+ * THIS SOFTWARE.
+ */
+/* Gen from u.h.in BITS=W bits=w */
+#include <assert.h>
+#include <err.h>
+#include "integer.h"
+#include "tag.h"
+#include "uw.h"
+
+uw uw_cast (s_tag *tag)
+{
+ switch (tag->type) {
+ case TAG_VOID:
+ return 0;
+ case TAG_ARRAY:
+ goto ko;
+ case TAG_BOOL:
+ return tag->data.bool ? 1 : 0;
+ case TAG_CALL:
+ goto ko;
+ case TAG_CFN:
+ goto ko;
+ case TAG_CHARACTER:
+ return (uw) tag->data.character;
+ case TAG_F32:
+ return (uw) tag->data.f32;
+ case TAG_F64:
+ return (uw) tag->data.f64;
+ case TAG_FACT:
+ case TAG_FN:
+ case TAG_IDENT:
+ goto ko;
+ case TAG_INTEGER:
+ return integer_to_uw(&tag->data.integer);
+ case TAG_SW:
+ return (uw) tag->data.sw;
+ case TAG_S64:
+ return (uw) tag->data.s64;
+ case TAG_S32:
+ return (uw) tag->data.s32;
+ case TAG_S16:
+ return (uw) tag->data.s16;
+ case TAG_S8:
+ return (uw) tag->data.s8;
+ case TAG_U8:
+ return (uw) tag->data.u8;
+ case TAG_U16:
+ return (uw) tag->data.u16;
+ case TAG_U32:
+ return (uw) tag->data.u32;
+ case TAG_U64:
+ return (uw) tag->data.u64;
+ case TAG_UW:
+ return (uw) tag->data.uw;
+ case TAG_LIST:
+ case TAG_PTAG:
+ case TAG_QUOTE:
+ case TAG_STR:
+ case TAG_SYM:
+ case TAG_TUPLE:
+ case TAG_VAR:
+ goto ko;
+ }
+ assert(! "uw_cast: unknown tag type");
+ errx(1, "uw_cast: unknown tag type: %d", tag->type);
+ return 0;
+ ko:
+ warnx("uw_cast: cannot cast %s to uw",
+ tag_type_to_sym(tag->type)->str.ptr.ps8);
+ return 0;
+}
diff --git a/libc3/uw.h b/libc3/uw.h
new file mode 100644
index 0000000..823bad0
--- /dev/null
+++ b/libc3/uw.h
@@ -0,0 +1,21 @@
+/* c3
+ * Copyright 2022,2023 kmx.io <contact@kmx.io>
+ *
+ * Permission is hereby granted to use this software granted the above
+ * copyright notice and this permission paragraph are included in all
+ * copies and substantial portions of this software.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
+ * PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
+ * AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
+ * THIS SOFTWARE.
+ */
+/* Gen from u.h.in BITS=W bits=w */
+#ifndef UW_H
+#define UW_H
+
+#include "types.h"
+
+uw uw_cast (s_tag *tag);
+
+#endif /* U8_H */
diff --git a/sources.mk b/sources.mk
index 4fd2651..3160be2 100644
--- a/sources.mk
+++ b/sources.mk
@@ -43,6 +43,7 @@ C3_C_SOURCES = \
libc3/buf_inspect_s8_octal.c \
libc3/buf_inspect_s8_octal.h \
libc3/buf_inspect_s8_decimal.c \
+ libc3/buf_inspect_s8_decimal.h \
libc3/call.c \
libc3/arg.c \
libc3/arg.h \
@@ -50,11 +51,10 @@ C3_C_SOURCES = \
libc3/array.h \
libc3/binding.c \
libc3/c3.c \
- libc3/buf_inspect_s8_decimal.h \
libc3/buf_inspect_s8_hexadecimal.c \
libc3/buf_inspect_s8_hexadecimal.h \
- libc3/binding.h \
libc3/buf_inspect_s16.c \
+ libc3/binding.h \
libc3/buf_inspect_s16.h \
libc3/buf_inspect_s16_binary.c \
libc3/buf_inspect_s16_binary.h \
@@ -62,11 +62,11 @@ C3_C_SOURCES = \
libc3/buf_inspect_s16_octal.h \
libc3/buf_inspect_s16_decimal.c \
libc3/buf_inspect_s16_decimal.h \
+ libc3/buf_inspect_s16_hexadecimal.c \
libc3/bool.c \
libc3/bool.h \
libc3/buf_file.c \
libc3/buf_file.h \
- libc3/buf_inspect_s16_hexadecimal.c \
libc3/buf_inspect_s16_hexadecimal.h \
libc3/buf_inspect_s32.c \
libc3/buf_inspect_s32.h \
@@ -78,12 +78,12 @@ C3_C_SOURCES = \
libc3/buf_inspect_s32_decimal.h \
libc3/buf_inspect_s32_hexadecimal.c \
libc3/buf_inspect_s32_hexadecimal.h \
+ libc3/buf_inspect_s64.c \
libc3/buf_parse.h \
libc3/buf_parse_c.c \
libc3/buf_save.c \
- libc3/buf_inspect_s64.c \
- libc3/facts_spec_cursor.c \
libc3/buf_inspect_s64.h \
+ libc3/facts_spec_cursor.c \
libc3/buf_inspect_s64_binary.c \
libc3/buf_inspect_s64_binary.h \
libc3/buf_inspect_s64_octal.c \
@@ -94,13 +94,12 @@ C3_C_SOURCES = \
libc3/buf_inspect_s64_hexadecimal.h \
libc3/buf_inspect_sw.c \
libc3/buf_inspect_sw.h \
- libc3/set__fact.c \
+ libc3/buf_inspect_sw_binary.c \
libc3/buf_parse_c.h \
libc3/buf_save.h \
libc3/c3.h \
libc3/c_types.h \
libc3/call.h \
- libc3/buf_inspect_sw_binary.c \
libc3/buf_inspect_sw_binary.h \
libc3/buf_inspect_sw_octal.c \
libc3/buf_inspect_sw_octal.h \
@@ -112,13 +111,13 @@ C3_C_SOURCES = \
libc3/buf_inspect_u8.h \
libc3/buf_inspect_u8_binary.c \
libc3/buf_inspect_u8_binary.h \
+ libc3/buf_inspect_u8_octal.c \
libc3/ceiling.c \
libc3/ceiling.h \
libc3/cfn.c \
libc3/cfn.h \
libc3/character.c \
libc3/character.h \
- libc3/buf_inspect_u8_octal.c \
libc3/buf_inspect_u8_octal.h \
libc3/buf_inspect_u8_decimal.c \
libc3/buf_inspect_u8_decimal.h \
@@ -129,6 +128,7 @@ C3_C_SOURCES = \
libc3/buf_inspect_u16_binary.c \
libc3/buf_inspect_u16_binary.h \
libc3/buf_inspect_u16_octal.c \
+ libc3/buf_inspect_u16_octal.h \
libc3/buf_parse_s8.c \
libc3/compare.c \
libc3/buf_inspect.c \
@@ -138,22 +138,21 @@ C3_C_SOURCES = \
libc3/operator.c \
libc3/operator.h \
libc3/sym.c \
- libc3/buf_inspect_u16_octal.h \
libc3/buf_inspect_u16_decimal.c \
libc3/buf_inspect_u16_decimal.h \
libc3/buf_inspect_u16_hexadecimal.c \
libc3/buf_inspect_u16_hexadecimal.h \
- libc3/u8.h \
libc3/buf_inspect_u32.c \
+ libc3/u8.h \
libc3/buf_inspect_u32.h \
libc3/buf_inspect_u32_binary.c \
+ libc3/buf_inspect_u32_binary.h \
libc3/error.c \
libc3/error.h \
libc3/error_handler.c \
libc3/error_handler.h \
libc3/eval.c \
libc3/eval.h \
- libc3/buf_inspect_u32_binary.h \
libc3/buf_inspect_u32_octal.c \
libc3/buf_inspect_u32_octal.h \
libc3/buf_inspect_u32_decimal.c \
@@ -164,11 +163,11 @@ C3_C_SOURCES = \
libc3/buf_inspect_u64.h \
libc3/buf_inspect_u64_binary.c \
libc3/buf_inspect_u64_binary.h \
- libc3/set__fact.h \
+ libc3/buf_inspect_u64_octal.c \
+ libc3/buf_parse_s8.h \
libc3/fact.c \
libc3/fact.h \
libc3/facts_cursor.c \
- libc3/buf_inspect_u64_octal.c \
libc3/buf_inspect_u64_octal.h \
libc3/buf_inspect_u64_decimal.c \
libc3/buf_inspect_u64_decimal.h \
@@ -181,15 +180,13 @@ C3_C_SOURCES = \
libc3/buf_inspect_uw_octal.c \
libc3/buf_inspect_uw_octal.h \
libc3/buf_inspect_uw_decimal.c \
- libc3/set__tag.c \
+ libc3/buf_inspect_uw_decimal.h \
libc3/facts_cursor.h \
libc3/facts_spec.c \
libc3/facts_spec.h \
libc3/facts_spec_cursor.h \
- libc3/buf_inspect_uw_decimal.h \
libc3/buf_inspect_uw_hexadecimal.c \
libc3/buf_inspect_uw_hexadecimal.h \
- libc3/buf_parse_s8.h \
libc3/buf_parse_s16.c \
libc3/buf_parse_s16.h \
libc3/buf_parse_s32.c \
@@ -201,16 +198,19 @@ C3_C_SOURCES = \
libc3/buf_parse_u8.c \
libc3/buf_parse_u8.h \
libc3/buf_parse_u16.c \
+ libc3/buf_parse_u16.h \
+ libc3/buf_parse_u32.c \
+ libc3/set__fact.c \
libc3/facts_with.c \
libc3/facts_with.h \
libc3/facts_with_cursor.c \
- libc3/buf_parse_u16.h \
- libc3/buf_parse_u32.c \
libc3/buf_parse_u32.h \
libc3/buf_parse_u64.c \
libc3/buf_parse_u64.h \
libc3/buf_parse_uw.c \
libc3/buf_parse_uw.h \
+ libc3/set__fact.h \
+ libc3/set__tag.c \
libc3/set__tag.h \
libc3/set_cursor__fact.c \
libc3/set_cursor__fact.h \
@@ -282,9 +282,19 @@ C3_C_SOURCES = \
libc3/buf_inspect_u_base.c.in \
libc3/buf_inspect_u_base.h.in \
libc3/timespec.c \
+ libc3/u16.h \
+ libc3/u.c.in \
libc3/fn.c \
+ libc3/u.h.in \
libc3/fn.h \
libc3/tag.h \
+ libc3/u32.h \
+ libc3/u64.h \
+ libc3/uw.h \
+ libc3/u16.c \
+ libc3/u32.c \
+ libc3/u64.c \
+ libc3/uw.c \
libc3/fn_clause.h \
libc3/fn_clause.c \
libc3/facts.c \
diff --git a/sources.sh b/sources.sh
index df6ad50..07430bf 100644
--- a/sources.sh
+++ b/sources.sh
@@ -1,4 +1,4 @@
# sources.sh generated by update_sources
C3_CONFIGURES='c3c/configure c3s/configure c3s/update_sources ic3/configure ic3/update_sources libc3/configure libc3/update_sources libtommath/configure libtommath/update_sources test/configure test/update_sources ucd2c/configure '
C3_MAKEFILES='c3c/Makefile c3s/Makefile ic3/Makefile libc3/Makefile libc3/gen.mk libtommath/Makefile test/Makefile ucd2c/Makefile '
-C3_C_SOURCES='c3c/c3c.c c3s/buf_readline.c c3s/c3s.c c3s/buf_readline.h ic3/ic3.c ic3/buf_linenoise.c ic3/buf_linenoise.h ic3/linenoise.c libc3/abs.c libc3/abs.h libc3/buf.c libc3/buf.h libc3/buf_inspect_s8.c libc3/buf_inspect_s8.h libc3/buf_inspect_s8_binary.c libc3/buf_inspect_s8_binary.h libc3/buf_inspect_s8_octal.c libc3/buf_inspect_s8_octal.h libc3/buf_inspect_s8_decimal.c libc3/call.c libc3/arg.c libc3/arg.h libc3/array.c libc3/array.h libc3/binding.c libc3/c3.c libc3/buf_inspect_s8_decimal.h libc3/buf_inspect_s8_hexadecimal.c libc3/buf_inspect_s8_hexadecimal.h libc3/binding.h libc3/buf_inspect_s16.c libc3/buf_inspect_s16.h libc3/buf_inspect_s16_binary.c libc3/buf_inspect_s16_binary.h libc3/buf_inspect_s16_octal.c libc3/buf_inspect_s16_octal.h libc3/buf_inspect_s16_decimal.c libc3/buf_inspect_s16_decimal.h libc3/bool.c libc3/bool.h libc3/buf_file.c libc3/buf_file.h libc3/buf_inspect_s16_hexadecimal.c libc3/buf_inspect_s16_hexadecimal.h libc3/buf_inspect_s32.c libc3/buf_inspect_s32.h libc3/buf_inspect_s32_binary.c libc3/buf_inspect_s32_binary.h libc3/buf_inspect_s32_octal.c libc3/buf_inspect_s32_octal.h libc3/buf_inspect_s32_decimal.c libc3/buf_inspect_s32_decimal.h libc3/buf_inspect_s32_hexadecimal.c libc3/buf_inspect_s32_hexadecimal.h libc3/buf_parse.h libc3/buf_parse_c.c libc3/buf_save.c libc3/buf_inspect_s64.c libc3/facts_spec_cursor.c libc3/buf_inspect_s64.h libc3/buf_inspect_s64_binary.c libc3/buf_inspect_s64_binary.h libc3/buf_inspect_s64_octal.c libc3/buf_inspect_s64_octal.h libc3/buf_inspect_s64_decimal.c libc3/buf_inspect_s64_decimal.h libc3/buf_inspect_s64_hexadecimal.c libc3/buf_inspect_s64_hexadecimal.h libc3/buf_inspect_sw.c libc3/buf_inspect_sw.h libc3/set__fact.c libc3/buf_parse_c.h libc3/buf_save.h libc3/c3.h libc3/c_types.h libc3/call.h libc3/buf_inspect_sw_binary.c libc3/buf_inspect_sw_binary.h libc3/buf_inspect_sw_octal.c libc3/buf_inspect_sw_octal.h libc3/buf_inspect_sw_decimal.c libc3/buf_inspect_sw_decimal.h libc3/buf_inspect_sw_hexadecimal.c libc3/buf_inspect_sw_hexadecimal.h libc3/buf_inspect_u8.c libc3/buf_inspect_u8.h libc3/buf_inspect_u8_binary.c libc3/buf_inspect_u8_binary.h libc3/ceiling.c libc3/ceiling.h libc3/cfn.c libc3/cfn.h libc3/character.c libc3/character.h libc3/buf_inspect_u8_octal.c libc3/buf_inspect_u8_octal.h libc3/buf_inspect_u8_decimal.c libc3/buf_inspect_u8_decimal.h libc3/buf_inspect_u8_hexadecimal.c libc3/buf_inspect_u8_hexadecimal.h libc3/buf_inspect_u16.c libc3/buf_inspect_u16.h libc3/buf_inspect_u16_binary.c libc3/buf_inspect_u16_binary.h libc3/buf_inspect_u16_octal.c libc3/buf_parse_s8.c libc3/compare.c libc3/buf_inspect.c libc3/compare.h libc3/buf_parse.c libc3/timespec.h libc3/operator.c libc3/operator.h libc3/sym.c libc3/buf_inspect_u16_octal.h libc3/buf_inspect_u16_decimal.c libc3/buf_inspect_u16_decimal.h libc3/buf_inspect_u16_hexadecimal.c libc3/buf_inspect_u16_hexadecimal.h libc3/u8.h libc3/buf_inspect_u32.c libc3/buf_inspect_u32.h libc3/buf_inspect_u32_binary.c libc3/error.c libc3/error.h libc3/error_handler.c libc3/error_handler.h libc3/eval.c libc3/eval.h libc3/buf_inspect_u32_binary.h libc3/buf_inspect_u32_octal.c libc3/buf_inspect_u32_octal.h libc3/buf_inspect_u32_decimal.c libc3/buf_inspect_u32_decimal.h libc3/buf_inspect_u32_hexadecimal.c libc3/buf_inspect_u32_hexadecimal.h libc3/buf_inspect_u64.c libc3/buf_inspect_u64.h libc3/buf_inspect_u64_binary.c libc3/buf_inspect_u64_binary.h libc3/set__fact.h libc3/fact.c libc3/fact.h libc3/facts_cursor.c libc3/buf_inspect_u64_octal.c libc3/buf_inspect_u64_octal.h libc3/buf_inspect_u64_decimal.c libc3/buf_inspect_u64_decimal.h libc3/buf_inspect_u64_hexadecimal.c libc3/buf_inspect_u64_hexadecimal.h libc3/buf_inspect_uw.c libc3/buf_inspect_uw.h libc3/buf_inspect_uw_binary.c libc3/buf_inspect_uw_binary.h libc3/buf_inspect_uw_octal.c libc3/buf_inspect_uw_octal.h libc3/buf_inspect_uw_decimal.c libc3/set__tag.c libc3/facts_cursor.h libc3/facts_spec.c libc3/facts_spec.h libc3/facts_spec_cursor.h libc3/buf_inspect_uw_decimal.h libc3/buf_inspect_uw_hexadecimal.c libc3/buf_inspect_uw_hexadecimal.h libc3/buf_parse_s8.h libc3/buf_parse_s16.c libc3/buf_parse_s16.h libc3/buf_parse_s32.c libc3/buf_parse_s32.h libc3/buf_parse_s64.c libc3/buf_parse_s64.h libc3/buf_parse_sw.c libc3/buf_parse_sw.h libc3/buf_parse_u8.c libc3/buf_parse_u8.h libc3/buf_parse_u16.c libc3/facts_with.c libc3/facts_with.h libc3/facts_with_cursor.c libc3/buf_parse_u16.h libc3/buf_parse_u32.c libc3/buf_parse_u32.h libc3/buf_parse_u64.c libc3/buf_parse_u64.h libc3/buf_parse_uw.c libc3/buf_parse_uw.h libc3/set__tag.h libc3/set_cursor__fact.c libc3/set_cursor__fact.h libc3/set_cursor__tag.c libc3/set_cursor__tag.h libc3/set_item__fact.c libc3/set_item__fact.h libc3/set_item__tag.c libc3/set_item__tag.h libc3/skiplist__fact.c libc3/facts_with_cursor.h libc3/float.h libc3/frame.c libc3/frame.h libc3/skiplist__fact.h libc3/skiplist_node__fact.c libc3/skiplist_node__fact.h libc3/types.h libc3/hash.h libc3/ident.h libc3/integer.c libc3/integer.h libc3/io.c libc3/io.h libc3/list.c libc3/list.h libc3/log.c libc3/log.h libc3/buf_inspect_s.h.in libc3/module.c libc3/str.c libc3/module.h libc3/buf_parse_u.c.in libc3/quote.c libc3/quote.h libc3/set.c.in libc3/set.h.in libc3/buf_inspect_s_base.h.in libc3/sha1.h libc3/set_cursor.c.in libc3/set_cursor.h.in libc3/buf_inspect.h libc3/set_item.c.in libc3/set_item.h.in libc3/sign.c libc3/sign.h libc3/skiplist.c.in libc3/skiplist.h.in libc3/type.h libc3/skiplist_node.c.in libc3/skiplist_node.h.in libc3/str.h libc3/ucd.c libc3/sym.h libc3/tuple.c libc3/tuple.h libc3/type.c libc3/ucd.h libc3/buf_parse_s.c.in libc3/buf_parse_s.h.in libc3/buf_inspect_s.c.in libc3/buf_parse_u.h.in libc3/env.c libc3/ident.c libc3/buf_inspect_s_base.c.in libc3/buf_inspect_u.c.in libc3/buf_inspect_u.h.in libc3/env.h libc3/buf_inspect_u_base.c.in libc3/buf_inspect_u_base.h.in libc3/timespec.c libc3/fn.c libc3/fn.h libc3/tag.h libc3/fn_clause.h libc3/fn_clause.c libc3/facts.c libc3/u8.c libc3/facts.h libc3/file.c libc3/c3_main.h libc3/file.h libc3/hash.c libc3/tag.c test/buf_inspect_test.c test/bool_test.c test/buf_parse_test.c test/facts_test.c test/buf_file_test.c test/list_test.c test/test.c test/test.h test/buf_parse_test_u8.c test/buf_parse_test.h test/buf_parse_test_s16.c test/buf_parse_test_s32.c test/buf_parse_test_s64.c test/buf_parse_test_s8.c test/buf_parse_test_su.h test/buf_parse_test_u16.c test/buf_parse_test_u32.c test/buf_test.c test/buf_parse_test_u64.c test/call_test.c test/facts_cursor_test.c test/cfn_test.c test/character_test.c test/compare_test.c test/compare_test.h test/env_test.c test/fact_test.c test/fact_test.h test/facts_with_test.c test/hash_test.c test/ident_test.c test/set__fact_test.c test/set__tag_test.c test/skiplist__fact_test.c test/str_test.c test/sym_test.c test/tag_test.c test/tag_test.h test/array_test.c test/fn_test.c test/tuple_test.c test/types_test.c test/libc3_test.c ucd2c/ucd.h ucd2c/ucd2c.c '
+C3_C_SOURCES='c3c/c3c.c c3s/buf_readline.c c3s/c3s.c c3s/buf_readline.h ic3/ic3.c ic3/buf_linenoise.c ic3/buf_linenoise.h ic3/linenoise.c libc3/abs.c libc3/abs.h libc3/buf.c libc3/buf.h libc3/buf_inspect_s8.c libc3/buf_inspect_s8.h libc3/buf_inspect_s8_binary.c libc3/buf_inspect_s8_binary.h libc3/buf_inspect_s8_octal.c libc3/buf_inspect_s8_octal.h libc3/buf_inspect_s8_decimal.c libc3/buf_inspect_s8_decimal.h libc3/call.c libc3/arg.c libc3/arg.h libc3/array.c libc3/array.h libc3/binding.c libc3/c3.c libc3/buf_inspect_s8_hexadecimal.c libc3/buf_inspect_s8_hexadecimal.h libc3/buf_inspect_s16.c libc3/binding.h libc3/buf_inspect_s16.h libc3/buf_inspect_s16_binary.c libc3/buf_inspect_s16_binary.h libc3/buf_inspect_s16_octal.c libc3/buf_inspect_s16_octal.h libc3/buf_inspect_s16_decimal.c libc3/buf_inspect_s16_decimal.h libc3/buf_inspect_s16_hexadecimal.c libc3/bool.c libc3/bool.h libc3/buf_file.c libc3/buf_file.h libc3/buf_inspect_s16_hexadecimal.h libc3/buf_inspect_s32.c libc3/buf_inspect_s32.h libc3/buf_inspect_s32_binary.c libc3/buf_inspect_s32_binary.h libc3/buf_inspect_s32_octal.c libc3/buf_inspect_s32_octal.h libc3/buf_inspect_s32_decimal.c libc3/buf_inspect_s32_decimal.h libc3/buf_inspect_s32_hexadecimal.c libc3/buf_inspect_s32_hexadecimal.h libc3/buf_inspect_s64.c libc3/buf_parse.h libc3/buf_parse_c.c libc3/buf_save.c libc3/buf_inspect_s64.h libc3/facts_spec_cursor.c libc3/buf_inspect_s64_binary.c libc3/buf_inspect_s64_binary.h libc3/buf_inspect_s64_octal.c libc3/buf_inspect_s64_octal.h libc3/buf_inspect_s64_decimal.c libc3/buf_inspect_s64_decimal.h libc3/buf_inspect_s64_hexadecimal.c libc3/buf_inspect_s64_hexadecimal.h libc3/buf_inspect_sw.c libc3/buf_inspect_sw.h libc3/buf_inspect_sw_binary.c libc3/buf_parse_c.h libc3/buf_save.h libc3/c3.h libc3/c_types.h libc3/call.h libc3/buf_inspect_sw_binary.h libc3/buf_inspect_sw_octal.c libc3/buf_inspect_sw_octal.h libc3/buf_inspect_sw_decimal.c libc3/buf_inspect_sw_decimal.h libc3/buf_inspect_sw_hexadecimal.c libc3/buf_inspect_sw_hexadecimal.h libc3/buf_inspect_u8.c libc3/buf_inspect_u8.h libc3/buf_inspect_u8_binary.c libc3/buf_inspect_u8_binary.h libc3/buf_inspect_u8_octal.c libc3/ceiling.c libc3/ceiling.h libc3/cfn.c libc3/cfn.h libc3/character.c libc3/character.h libc3/buf_inspect_u8_octal.h libc3/buf_inspect_u8_decimal.c libc3/buf_inspect_u8_decimal.h libc3/buf_inspect_u8_hexadecimal.c libc3/buf_inspect_u8_hexadecimal.h libc3/buf_inspect_u16.c libc3/buf_inspect_u16.h libc3/buf_inspect_u16_binary.c libc3/buf_inspect_u16_binary.h libc3/buf_inspect_u16_octal.c libc3/buf_inspect_u16_octal.h libc3/buf_parse_s8.c libc3/compare.c libc3/buf_inspect.c libc3/compare.h libc3/buf_parse.c libc3/timespec.h libc3/operator.c libc3/operator.h libc3/sym.c libc3/buf_inspect_u16_decimal.c libc3/buf_inspect_u16_decimal.h libc3/buf_inspect_u16_hexadecimal.c libc3/buf_inspect_u16_hexadecimal.h libc3/buf_inspect_u32.c libc3/u8.h libc3/buf_inspect_u32.h libc3/buf_inspect_u32_binary.c libc3/buf_inspect_u32_binary.h libc3/error.c libc3/error.h libc3/error_handler.c libc3/error_handler.h libc3/eval.c libc3/eval.h libc3/buf_inspect_u32_octal.c libc3/buf_inspect_u32_octal.h libc3/buf_inspect_u32_decimal.c libc3/buf_inspect_u32_decimal.h libc3/buf_inspect_u32_hexadecimal.c libc3/buf_inspect_u32_hexadecimal.h libc3/buf_inspect_u64.c libc3/buf_inspect_u64.h libc3/buf_inspect_u64_binary.c libc3/buf_inspect_u64_binary.h libc3/buf_inspect_u64_octal.c libc3/buf_parse_s8.h libc3/fact.c libc3/fact.h libc3/facts_cursor.c libc3/buf_inspect_u64_octal.h libc3/buf_inspect_u64_decimal.c libc3/buf_inspect_u64_decimal.h libc3/buf_inspect_u64_hexadecimal.c libc3/buf_inspect_u64_hexadecimal.h libc3/buf_inspect_uw.c libc3/buf_inspect_uw.h libc3/buf_inspect_uw_binary.c libc3/buf_inspect_uw_binary.h libc3/buf_inspect_uw_octal.c libc3/buf_inspect_uw_octal.h libc3/buf_inspect_uw_decimal.c libc3/buf_inspect_uw_decimal.h libc3/facts_cursor.h libc3/facts_spec.c libc3/facts_spec.h libc3/facts_spec_cursor.h libc3/buf_inspect_uw_hexadecimal.c libc3/buf_inspect_uw_hexadecimal.h libc3/buf_parse_s16.c libc3/buf_parse_s16.h libc3/buf_parse_s32.c libc3/buf_parse_s32.h libc3/buf_parse_s64.c libc3/buf_parse_s64.h libc3/buf_parse_sw.c libc3/buf_parse_sw.h libc3/buf_parse_u8.c libc3/buf_parse_u8.h libc3/buf_parse_u16.c libc3/buf_parse_u16.h libc3/buf_parse_u32.c libc3/set__fact.c libc3/facts_with.c libc3/facts_with.h libc3/facts_with_cursor.c libc3/buf_parse_u32.h libc3/buf_parse_u64.c libc3/buf_parse_u64.h libc3/buf_parse_uw.c libc3/buf_parse_uw.h libc3/set__fact.h libc3/set__tag.c libc3/set__tag.h libc3/set_cursor__fact.c libc3/set_cursor__fact.h libc3/set_cursor__tag.c libc3/set_cursor__tag.h libc3/set_item__fact.c libc3/set_item__fact.h libc3/set_item__tag.c libc3/set_item__tag.h libc3/skiplist__fact.c libc3/facts_with_cursor.h libc3/float.h libc3/frame.c libc3/frame.h libc3/skiplist__fact.h libc3/skiplist_node__fact.c libc3/skiplist_node__fact.h libc3/types.h libc3/hash.h libc3/ident.h libc3/integer.c libc3/integer.h libc3/io.c libc3/io.h libc3/list.c libc3/list.h libc3/log.c libc3/log.h libc3/buf_inspect_s.h.in libc3/module.c libc3/str.c libc3/module.h libc3/buf_parse_u.c.in libc3/quote.c libc3/quote.h libc3/set.c.in libc3/set.h.in libc3/buf_inspect_s_base.h.in libc3/sha1.h libc3/set_cursor.c.in libc3/set_cursor.h.in libc3/buf_inspect.h libc3/set_item.c.in libc3/set_item.h.in libc3/sign.c libc3/sign.h libc3/skiplist.c.in libc3/skiplist.h.in libc3/type.h libc3/skiplist_node.c.in libc3/skiplist_node.h.in libc3/str.h libc3/ucd.c libc3/sym.h libc3/tuple.c libc3/tuple.h libc3/type.c libc3/ucd.h libc3/buf_parse_s.c.in libc3/buf_parse_s.h.in libc3/buf_inspect_s.c.in libc3/buf_parse_u.h.in libc3/env.c libc3/ident.c libc3/buf_inspect_s_base.c.in libc3/buf_inspect_u.c.in libc3/buf_inspect_u.h.in libc3/env.h libc3/buf_inspect_u_base.c.in libc3/buf_inspect_u_base.h.in libc3/timespec.c libc3/u16.h libc3/u.c.in libc3/fn.c libc3/u.h.in libc3/fn.h libc3/tag.h libc3/u32.h libc3/u64.h libc3/uw.h libc3/u16.c libc3/u32.c libc3/u64.c libc3/uw.c libc3/fn_clause.h libc3/fn_clause.c libc3/facts.c libc3/u8.c libc3/facts.h libc3/file.c libc3/c3_main.h libc3/file.h libc3/hash.c libc3/tag.c test/buf_inspect_test.c test/bool_test.c test/buf_parse_test.c test/facts_test.c test/buf_file_test.c test/list_test.c test/test.c test/test.h test/buf_parse_test_u8.c test/buf_parse_test.h test/buf_parse_test_s16.c test/buf_parse_test_s32.c test/buf_parse_test_s64.c test/buf_parse_test_s8.c test/buf_parse_test_su.h test/buf_parse_test_u16.c test/buf_parse_test_u32.c test/buf_test.c test/buf_parse_test_u64.c test/call_test.c test/facts_cursor_test.c test/cfn_test.c test/character_test.c test/compare_test.c test/compare_test.h test/env_test.c test/fact_test.c test/fact_test.h test/facts_with_test.c test/hash_test.c test/ident_test.c test/set__fact_test.c test/set__tag_test.c test/skiplist__fact_test.c test/str_test.c test/sym_test.c test/tag_test.c test/tag_test.h test/array_test.c test/fn_test.c test/tuple_test.c test/types_test.c test/libc3_test.c ucd2c/ucd.h ucd2c/ucd2c.c '