Commit Graph

11 Commits

Author SHA1 Message Date
Daniel Santos fd66c37285 invalid argument list of main() return E2BIG
* If invalid number of arguments supplied to main(), return errno E2BIG
 * add Makefile rule to test memory leak of wrong number of arguments to
   main()

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-17 14:24:13 +00:00
Daniel Santos 089a2a899c Makefile more memory rules
* add to Makefile the rules: mem1, mem2 and mem3

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-17 11:51:42 +00:00
Daniel Santos a23fe88c3a Makefile fix
* fix sun-to-earth rule, missing -o

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-17 07:49:49 +00:00
Daniel Santos b559d657c3 test rule in Makefile
* add tests/earth.sh
 * add to Makefile all the necessary rules for `make test`

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-15 14:34:39 +00:00
Daniel Santos 471cd39b04 rearrange Makefile
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-14 15:32:52 +00:00
Daniel Santos 5d7cabc420 add to Makefile sun<->earth rule
* add sun to earth and vice-versa rule, without adding it to the all
   rule
 * also add earth<->sun to 'clean' Makefile rule

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-12 18:14:15 +00:00
Daniel Santos f1cd830c40 add decimal<->binary Makefile rule
* add decimal to binary and vice-versa Makefile rule

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-12 17:38:31 +00:00
Daniel Santos 6e579c2763 add .PHONY to Makefile
* add .PHONY to some rules in Makefile

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-12 17:21:36 +00:00
Daniel Santos 90c869857b free memory
* add mem rule to Makefile
 * add free_numeral()
 * free all memory allocations

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-12 13:21:39 +00:00
Daniel Santos ab849603a0 Makefile update
* put all the rules to make programs to test my past numerical systems
   programs

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-12 12:16:25 +00:00
Daniel Santos 4f221f3649 working
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-08 18:45:10 +00:00