Commit 07ab99d41f51779008b6bfe5d932183f2c97fd37

Thomas de Grivel 2024-11-09T19:01:45

prepare release

diff --git a/AUTHORS.md b/AUTHORS.md
index 1b01914..2ce0265 100644
--- a/AUTHORS.md
+++ b/AUTHORS.md
@@ -1,3 +1,17 @@
-Thomas de Grivel <thodg@kmx.io>
-Jean-Cyprien Roux <jeancip@kmx.io>
-Baptiste Le Glaunec <baptistelg@kmx.io>
+# C3 v0.1.0
+
+ - Thomas de Grivel
+
+# 2022 internship
+
+ - Jean-Cyprien Roux
+ - Baptiste Le Glaunec
+
+# KC3 v0.1.12
+
+ - Thomas de Grivel
+
+# 2024 internships
+
+ - Baptiste Le Glaunec
+ - Jeremy JEANNE
diff --git a/Makefile b/Makefile
index bcc06f1..acafefc 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,9 @@ all:
 	${MAKE} -C test all
 	${MAKE} -C window all
 
+include config.mk
+include sources.mk
+
 asan:
 	${MAKE} gen
 	${MAKE} -C libtommath asan
@@ -1175,6 +1178,3 @@ test_socket_debug:
 	test_socket_asan \
 	test_socket_cov \
 	test_socket_debug
-
-include config.mk
-include sources.mk
diff --git a/configure b/configure
index f867913..88e462c 100755
--- a/configure
+++ b/configure
@@ -30,8 +30,6 @@ require_pkg_config
 
 KC3_VERSION="$(cat kc3.version)"
 echo "KC3_VERSION = $KC3_VERSION" >> ${CONFIG_MK}
-echo "kc3-${KC3_VERSION}.tar.gz: $(tr '\n' ' ' < kc3.index)" \
-     >> ${CONFIG_MK}
 
 config_asan
 echo "HAVE_ASAN = ${HAVE_ASAN}" >> ${CONFIG_MK}
diff --git a/kc3.index b/kc3.index
index 84ea84b..d610f7e 100644
--- a/kc3.index
+++ b/kc3.index
@@ -1,8 +1,26 @@
-AUTHORS
+AUTHORS.md
+BUGS.md
+CONTRIBUTING.md
+ChangeLog.md
+LICENSE.md
 Makefile
 README.md
 config.subr
 configure
+doc/1_KC3/1.1_Introduction.en.md
+doc/1_KC3/1.2_Integer.en.md
+doc/1_KC3/1.3_Map.en.md
+doc/1_KC3/1.4_Ratio.en.md
+doc/1_KC3/1.5_List.en.md
+doc/1_KC3/1.6_Variable.en.md
+doc/2_HTTPd/index.en.md
+doc/3_Guides/3.1_Install.en.md
+doc/3_Guides/3.2_Testing.en.md
+doc/3_Guides/3.3_Usage.en.md
+doc/3_Guides/3.4_Structure.en.md
+doc/3_Guides/3.5_Tutorial.en.md
+doc/3_Guides/index.en.md
+doc/index.en.md
 ekc3/Makefile
 ekc3/configure
 ekc3/ekc3.c
@@ -228,8 +246,11 @@ http/sources.mk
 http/sources.sh
 http/types.h
 http/update_sources
+http/url.c
+http/url.h
 httpd/Makefile
 httpd/configure
+httpd/fx/assets/Makefile
 httpd/httpd.c
 httpd/httpd.h
 httpd/sources.mk
@@ -309,12 +330,15 @@ kc3s/kc3s.c
 kc3s/sources.mk
 kc3s/sources.sh
 kc3s/update_sources
+lib/kc3/0.1/alist.kc3
 lib/kc3/0.1/array.kc3
 lib/kc3/0.1/bool.facts
 lib/kc3/0.1/buf.kc3
 lib/kc3/0.1/buf_rw.kc3
+lib/kc3/0.1/compare.kc3
 lib/kc3/0.1/complex.facts
 lib/kc3/0.1/cow.kc3
+lib/kc3/0.1/crypt.kc3
 lib/kc3/0.1/ekc3.kc3
 lib/kc3/0.1/event.kc3
 lib/kc3/0.1/f128.facts
@@ -335,16 +359,19 @@ lib/kc3/0.1/gl/triangle.kc3
 lib/kc3/0.1/gl/vec2.kc3
 lib/kc3/0.1/gl/vec3.kc3
 lib/kc3/0.1/gl/vertex.kc3
+lib/kc3/0.1/html.kc3
 lib/kc3/0.1/http.kc3
 lib/kc3/0.1/http/request.kc3
 lib/kc3/0.1/http/response.kc3
 lib/kc3/0.1/httpd.kc3
+lib/kc3/0.1/httpd/route.kc3
 lib/kc3/0.1/integer.facts
 lib/kc3/0.1/json.kc3
 lib/kc3/0.1/kc3.facts
 lib/kc3/0.1/kc3/operator.kc3
 lib/kc3/0.1/list.kc3
 lib/kc3/0.1/map.facts
+lib/kc3/0.1/markdown.kc3
 lib/kc3/0.1/ptr.facts
 lib/kc3/0.1/ptr_free.facts
 lib/kc3/0.1/ratio.facts
@@ -357,6 +384,7 @@ lib/kc3/0.1/set/fact.kc3
 lib/kc3/0.1/set/item/fact.kc3
 lib/kc3/0.1/set/item/tag.kc3
 lib/kc3/0.1/set/tag.kc3
+lib/kc3/0.1/sh.kc3
 lib/kc3/0.1/socket.kc3
 lib/kc3/0.1/socket/addr.kc3
 lib/kc3/0.1/socket/buf.kc3
@@ -370,6 +398,7 @@ lib/kc3/0.1/u16.facts
 lib/kc3/0.1/u32.facts
 lib/kc3/0.1/u64.facts
 lib/kc3/0.1/u8.facts
+lib/kc3/0.1/url.kc3
 lib/kc3/0.1/uw.facts
 lib/kc3/0.1/var.facts
 lib/kc3/0.1/void.facts
@@ -558,6 +587,9 @@ libkc3/complex.h
 libkc3/configure
 libkc3/cow.c
 libkc3/cow.h
+libkc3/crypt.c
+libkc3/crypt.h
+libkc3/crypt_sha512.c
 libkc3/data.c
 libkc3/data.h
 libkc3/env.c
@@ -680,6 +712,8 @@ libkc3/set_item__fact.c
 libkc3/set_item__fact.h
 libkc3/set_item__tag.c
 libkc3/set_item__tag.h
+libkc3/sh.c
+libkc3/sh.h
 libkc3/sha1.h
 libkc3/sign.c
 libkc3/sign.h
@@ -1031,6 +1065,7 @@ test/http/07_client_server.out.expected
 test/http/07_client_server.ret.expected
 test/http_test
 test/httpd/.keep
+test/httpd/assets/Makefile
 test/ident_test.c
 test/ikc3/access.kc3
 test/ikc3/access.out.expected
@@ -1070,6 +1105,9 @@ test/ikc3/comment.ret.expected
 test/ikc3/complex.kc3
 test/ikc3/complex.out.expected
 test/ikc3/complex.ret.expected
+test/ikc3/cow.kc3
+test/ikc3/cow.out.expected
+test/ikc3/cow.ret.expected
 test/ikc3/def.kc3
 test/ikc3/def.out.expected
 test/ikc3/def.ret.expected
@@ -1089,6 +1127,9 @@ test/ikc3/equal.ret.expected
 test/ikc3/facts.kc3
 test/ikc3/facts.out.expected
 test/ikc3/facts.ret.expected
+test/ikc3/facts_with.kc3
+test/ikc3/facts_with.out.expected
+test/ikc3/facts_with.ret.expected
 test/ikc3/facts_with_tags.kc3
 test/ikc3/facts_with_tags.out.expected
 test/ikc3/facts_with_tags.ret.expected
@@ -1189,6 +1230,9 @@ test/ikc3/quote.ret.expected
 test/ikc3/ratio.kc3
 test/ikc3/ratio.out.expected
 test/ikc3/ratio.ret.expected
+test/ikc3/sh.kc3
+test/ikc3/sh.out.expected
+test/ikc3/sh.ret.expected
 test/ikc3/str.err.expected
 test/ikc3/str.kc3
 test/ikc3/str.out.expected
@@ -1200,6 +1244,9 @@ test/ikc3/sym.err.expected
 test/ikc3/sym.kc3
 test/ikc3/sym.out.expected
 test/ikc3/sym.ret.expected
+test/ikc3/time.kc3
+test/ikc3/time.out.expected
+test/ikc3/time.ret.expected
 test/ikc3/to_lisp.kc3
 test/ikc3/to_lisp.out.expected
 test/ikc3/to_lisp.ret.expected
diff --git a/sources.mk b/sources.mk
index 7b3f306..c3ab486 100644
--- a/sources.mk
+++ b/sources.mk
@@ -1266,7 +1266,11 @@ KC3_TEST_HTTPD_SOURCES = \
 	"test/httpd/.keep" \
 
 KC3_OTHER_SOURCES = \
-	"AUTHORS" \
+	"AUTHORS.md" \
+	"BUGS.md" \
+	"CONTRIBUTING.md" \
+	"ChangeLog.md" \
+	"LICENSE.md" \
 	"Makefile" \
 	"README.md" \
 	"config.subr" \
diff --git a/sources.sh b/sources.sh
index 6fc01f1..e2b8e8b 100644
--- a/sources.sh
+++ b/sources.sh
@@ -11,6 +11,6 @@ KC3_TEST_IKC3_SOURCES='test/ikc3/access.kc3 test/ikc3/access.out.expected test/i
 KC3_TEST_EKC3_SOURCES='test/ekc3/title.html.ekc3 test/ekc3/title.kc3 test/ekc3/title.out.expected test/ekc3/title.ret.expected test/ekc3_test '
 KC3_TEST_HTTP_SOURCES='test/http/01_socket_buf.kc3 test/http/01_socket_buf.out.expected test/http/01_socket_buf.ret.expected test/http/02_socket.kc3 test/http/02_socket.out.expected test/http/02_socket.ret.expected test/http/03_client_server.kc3 test/http/03_client_server.out.expected test/http/03_client_server.ret.expected test/http/04_server_request.kc3 test/http/04_server_request.out.expected test/http/04_server_request.ret.expected test/http/05_response.kc3 test/http/05_response.out.expected test/http/05_response.ret.expected test/http/06_mime_types.kc3 test/http/06_mime_types.out.expected test/http/06_mime_types.ret.expected test/http/07_client_server.kc3 test/http/07_client_server.out.expected test/http/07_client_server.ret.expected test/http_test '
 KC3_TEST_HTTPD_SOURCES='test/httpd/.keep '
-KC3_OTHER_SOURCES='AUTHORS Makefile README.md config.subr configure env kc3.index kc3.version libkc3/tag_init.rb license.h sources.mk sources.sh '
+KC3_OTHER_SOURCES='AUTHORS.md BUGS.md CONTRIBUTING.md ChangeLog.md LICENSE.md Makefile README.md config.subr configure env kc3.index kc3.version libkc3/tag_init.rb license.h sources.mk sources.sh '
 KC3_EXTERNAL_SOURCES='libtommath/LICENSE libtommath/README.md libtommath/bn_cutoffs.c libtommath/bn_deprecated.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_addmod.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_decr.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_expt_u32.c libtommath/bn_mp_exptmod.c libtommath/bn_mp_exteuclid.c libtommath/bn_mp_fread.c libtommath/bn_mp_from_sbin.c libtommath/bn_mp_from_ubin.c libtommath/bn_mp_fwrite.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_l.c libtommath/bn_mp_get_ll.c libtommath/bn_mp_get_mag_u32.c libtommath/bn_mp_get_mag_u64.c libtommath/bn_mp_get_mag_ul.c libtommath/bn_mp_get_mag_ull.c libtommath/bn_mp_grow.c libtommath/bn_mp_incr.c libtommath/bn_mp_init.c libtommath/bn_mp_init_copy.c libtommath/bn_mp_init_i32.c libtommath/bn_mp_init_i64.c libtommath/bn_mp_init_l.c libtommath/bn_mp_init_ll.c libtommath/bn_mp_init_multi.c libtommath/bn_mp_init_set.c libtommath/bn_mp_init_size.c libtommath/bn_mp_init_u32.c libtommath/bn_mp_init_u64.c libtommath/bn_mp_init_ul.c libtommath/bn_mp_init_ull.c libtommath/bn_mp_invmod.c libtommath/bn_mp_is_square.c libtommath/bn_mp_iseven.c libtommath/bn_mp_isodd.c libtommath/bn_mp_kronecker.c libtommath/bn_mp_lcm.c libtommath/bn_mp_log_u32.c libtommath/bn_mp_lshd.c libtommath/bn_mp_mod.c libtommath/bn_mp_mod_2d.c libtommath/bn_mp_mod_d.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_pack.c libtommath/bn_mp_pack_count.c libtommath/bn_mp_prime_fermat.c libtommath/bn_mp_prime_frobenius_underwood.c libtommath/bn_mp_prime_is_prime.c libtommath/bn_mp_prime_miller_rabin.c libtommath/bn_mp_prime_next_prime.c libtommath/bn_mp_prime_rabin_miller_trials.c libtommath/bn_mp_prime_rand.c libtommath/bn_mp_prime_strong_lucas_selfridge.c libtommath/bn_mp_radix_size.c libtommath/bn_mp_radix_smap.c libtommath/bn_mp_rand.c libtommath/bn_mp_read_radix.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_root_u32.c libtommath/bn_mp_rshd.c libtommath/bn_mp_sbin_size.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_ll.c libtommath/bn_mp_set_u32.c libtommath/bn_mp_set_u64.c libtommath/bn_mp_set_ul.c libtommath/bn_mp_set_ull.c libtommath/bn_mp_shrink.c libtommath/bn_mp_signed_rsh.c libtommath/bn_mp_sqr.c libtommath/bn_mp_sqrmod.c libtommath/bn_mp_sqrt.c libtommath/bn_mp_sqrtmod_prime.c libtommath/bn_mp_sub.c libtommath/bn_mp_sub_d.c libtommath/bn_mp_submod.c libtommath/bn_mp_to_radix.c libtommath/bn_mp_to_sbin.c libtommath/bn_mp_to_ubin.c libtommath/bn_mp_ubin_size.c libtommath/bn_mp_unpack.c libtommath/bn_mp_xor.c libtommath/bn_mp_zero.c libtommath/bn_prime_tab.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_get_bit.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_prime_is_divisible.c libtommath/bn_s_mp_rand_jenkins.c libtommath/bn_s_mp_rand_platform.c libtommath/bn_s_mp_reverse.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 libtommath/demo/mtest_opponent.c libtommath/demo/shared.c libtommath/demo/shared.h libtommath/demo/test.c libtommath/demo/timing.c libtommath/etc/2kprime.c libtommath/etc/drprime.c libtommath/etc/mersenne.c libtommath/etc/mont.c libtommath/etc/pprime.c libtommath/etc/tune.c libtommath/mtest/logtab.h libtommath/mtest/mpi-config.h libtommath/mtest/mpi-types.h libtommath/mtest/mpi.c libtommath/mtest/mpi.h libtommath/mtest/mtest.c libtommath/tommath.h libtommath/tommath_class.h libtommath/tommath_cutoffs.h libtommath/tommath_private.h libtommath/tommath_superclass.h linenoise/LICENSE linenoise/README.markdown linenoise/example.c linenoise/linenoise.c linenoise/linenoise.h ucd2c/UCD.zip ucd2c/UCD/ArabicShaping.txt ucd2c/UCD/BidiBrackets.txt ucd2c/UCD/BidiCharacterTest.txt ucd2c/UCD/BidiMirroring.txt ucd2c/UCD/BidiTest.txt ucd2c/UCD/Blocks.txt ucd2c/UCD/CJKRadicals.txt ucd2c/UCD/CaseFolding.txt ucd2c/UCD/CompositionExclusions.txt ucd2c/UCD/DerivedAge.txt ucd2c/UCD/DerivedCoreProperties.txt ucd2c/UCD/DerivedNormalizationProps.txt ucd2c/UCD/EastAsianWidth.txt ucd2c/UCD/EmojiSources.txt ucd2c/UCD/EquivalentUnifiedIdeograph.txt ucd2c/UCD/HangulSyllableType.txt ucd2c/UCD/Index.txt ucd2c/UCD/IndicPositionalCategory.txt ucd2c/UCD/IndicSyllabicCategory.txt ucd2c/UCD/Jamo.txt ucd2c/UCD/LineBreak.txt ucd2c/UCD/NameAliases.txt ucd2c/UCD/NamedSequences.txt ucd2c/UCD/NamedSequencesProv.txt ucd2c/UCD/NamesList.txt ucd2c/UCD/NormalizationCorrections.txt ucd2c/UCD/NormalizationTest.txt ucd2c/UCD/NushuSources.txt ucd2c/UCD/PropList.txt ucd2c/UCD/PropertyAliases.txt ucd2c/UCD/PropertyValueAliases.txt ucd2c/UCD/ReadMe.txt ucd2c/UCD/ScriptExtensions.txt ucd2c/UCD/Scripts.txt ucd2c/UCD/SpecialCasing.txt ucd2c/UCD/StandardizedVariants.txt ucd2c/UCD/TangutSources.txt ucd2c/UCD/USourceData.txt ucd2c/UCD/USourceGlyphs.pdf ucd2c/UCD/USourceRSChart.pdf ucd2c/UCD/UnicodeData.txt ucd2c/UCD/VerticalOrientation.txt ucd2c/UCD/auxiliary/GraphemeBreakProperty.txt ucd2c/UCD/auxiliary/GraphemeBreakTest.txt ucd2c/UCD/auxiliary/LineBreakTest.txt ucd2c/UCD/auxiliary/SentenceBreakProperty.txt ucd2c/UCD/auxiliary/SentenceBreakTest.txt ucd2c/UCD/auxiliary/WordBreakProperty.txt ucd2c/UCD/auxiliary/WordBreakTest.txt ucd2c/UCD/emoji/ReadMe.txt ucd2c/UCD/emoji/emoji-data.txt ucd2c/UCD/emoji/emoji-variation-sequences.txt ucd2c/UCD/extracted/DerivedBidiClass.txt ucd2c/UCD/extracted/DerivedBinaryProperties.txt ucd2c/UCD/extracted/DerivedCombiningClass.txt ucd2c/UCD/extracted/DerivedDecompositionType.txt ucd2c/UCD/extracted/DerivedEastAsianWidth.txt ucd2c/UCD/extracted/DerivedGeneralCategory.txt ucd2c/UCD/extracted/DerivedJoiningGroup.txt ucd2c/UCD/extracted/DerivedJoiningType.txt ucd2c/UCD/extracted/DerivedLineBreak.txt ucd2c/UCD/extracted/DerivedName.txt ucd2c/UCD/extracted/DerivedNumericType.txt ucd2c/UCD/extracted/DerivedNumericValues.txt '
 KC3_DOC_SOURCES='doc/1_KC3/1.1_Introduction.en.md doc/1_KC3/1.2_Integer.en.md doc/1_KC3/1.3_Map.en.md doc/1_KC3/1.4_Ratio.en.md doc/1_KC3/1.5_List.en.md doc/1_KC3/1.6_Variable.en.md doc/2_HTTPd/index.en.md doc/3_Guides/3.1_Install.en.md doc/3_Guides/3.2_Testing.en.md doc/3_Guides/3.3_Usage.en.md doc/3_Guides/3.4_Structure.en.md doc/3_Guides/3.5_Tutorial.en.md doc/3_Guides/index.en.md doc/index.en.md '
diff --git a/update_sources b/update_sources
index e7d8f85..5ffc8fa 100755
--- a/update_sources
+++ b/update_sources
@@ -53,9 +53,8 @@ sources KC3_TEST_HTTP_SOURCES "$KC3_TEST_HTTP_SOURCES"
 KC3_TEST_HTTPD_SOURCES="$(ls test/httpd/.keep)"
 sources KC3_TEST_HTTPD_SOURCES "$KC3_TEST_HTTPD_SOURCES"
 
-KC3_OTHER_SOURCES="AUTHORS
+KC3_OTHER_SOURCES="$(ls *.md)
 Makefile
-README.md
 config.subr
 configure
 env