Commit 0ea9939df735c1ad7926fdb544fa2a30af1b7eb5

Thomas de Grivel 2023-02-12T18:45:57

wip

diff --git a/README.md b/README.md
index ce1823a..0b5e880 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,7 @@ end
 
 ### libc3
 
-C3 is implemented using libc3 a small C89 library implementing the core
+C3 is implemented using libc3 a small C99 library implementing the core
 of the language.
 
 The library includes a parser and an interpreter for C3 code in C structures.
@@ -73,6 +73,9 @@ Script interpreter. Under development.
 ## TODO
 
  - libc3
+   - ci
+   - c function call
+   - infix operators
    - errors (setjmp, longjmp)
      - stacktrace
    - load
@@ -88,15 +91,3 @@ Script interpreter. Under development.
      - funcall
   - buf_sha256
   - buf_popen
-
-# File format
-
-On disk format :
-
-         0               1               2               3               4
-         0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF01
- 0x0000  %{dump: 0x0000000000000100, log: 0x0000000000001000, format: :c3}
- 0x0042  _comments_
-_0x0100_ _count_ _dump_
- 0x0900  _sha256_
-_0x1000_ _log_
diff --git a/libc3/configure b/libc3/configure
index 3b4bb90..c8d6a6b 100755
--- a/libc3/configure
+++ b/libc3/configure
@@ -39,7 +39,7 @@ LDFLAGS="${LDFLAGS:=}"
 LIBS="${LIBS:=-lm}"
 
 # Common config for all targets
-CFLAGS="$CFLAGS -W -Wall -Werror -std=c99 -pedantic"
+CFLAGS="$CFLAGS -W -Wall -Werror -std=c89 -pedantic"
 config_asan
 config_gnu
 pkg_config libbsd-overlay
diff --git a/test/ic3/call.in b/test/ic3/call.in
index c9a2144..ae37a9b 100644
--- a/test/ic3/call.in
+++ b/test/ic3/call.in
@@ -10,4 +10,4 @@ quote first([1, 2])
 quote C3.first([1, 2])
 
 first([1, 2])
-C3.first([1, 2])
+C3.first([2, 3])
diff --git a/test/ic3/call.out.expected b/test/ic3/call.out.expected
index 8ec691a..822192c 100644
--- a/test/ic3/call.out.expected
+++ b/test/ic3/call.out.expected
@@ -21,5 +21,5 @@ quote C3.first([1, 2])
 
 1
 
-1
+2