Initialization of separate units; fixed runtime

This commit is contained in:
Dmitry Boulytchev 2020-01-26 06:06:14 +03:00
parent 811c24d5a6
commit c09a3b36b6
13 changed files with 116 additions and 46 deletions

View file

@ -1,3 +1,5 @@
public fun from_test005 (s) {
printf ("called with %s\n", s)
}
printf ("Init Lib01...\n")

View file

@ -1,5 +1,5 @@
TESTS=$(sort $(basename $(wildcard test*.expr)))
LIBS=$(sort $(basename $(wildcard Lib*.expr)).o)
LIBS=$(patsubst %.expr,%.o, $(sort $(wildcard Lib*.expr)))
RC=../../src/rc.opt

View file

@ -1 +1,2 @@
Init Lib01...
called with that one

View file

@ -0,0 +1,4 @@
Init Lib01...
Init Lib02...
Init Lib03...
main dish.

View file

@ -0,0 +1,4 @@
import Lib03;
import Lib02;
printf ("main dish.\n")

View file

@ -0,0 +1 @@
0