todo_glenda.txt and makefile version updates
authorThomas Walker Lynch <thomas.lynch@reasoningtechnology.com>
Fri, 19 Apr 2019 10:05:45 +0000 (12:05 +0200)
committerThomas Walker Lynch <thomas.lynch@reasoningtechnology.com>
Fri, 19 Apr 2019 10:05:45 +0000 (12:05 +0200)
.gitignore
module/da/doc/todo_glenda.txt [new file with mode: 0644]
module/da/test/src/test_da.cli.c
tool/lib/makefile-cc

index de56908..6e278db 100644 (file)
@@ -3,5 +3,5 @@ __pycache__/
 tmp/
 .*
 !.gitignore
-
+*~
 
diff --git a/module/da/doc/todo_glenda.txt b/module/da/doc/todo_glenda.txt
new file mode 100644 (file)
index 0000000..87dc28e
--- /dev/null
@@ -0,0 +1,12 @@
+
+2019-04-19T09:34:21Z
+
+da_erase  ; same as da_free, don't tell anyone
+
+da_integer_repeats ; all items in the array are equal
+da_integer_sum ; sum all elements
+da_integer_transpose  ; matrix transpose
+da_integer_repeats_column ; all columns are equal
+
+da_every_column ;  like every but for columns instead of elements
+da_every_row    ;  like every but for rows
index 92a26a3..66a390b 100644 (file)
@@ -4,11 +4,6 @@
 #include "test_da.lib.h"
 
 int main(){
-  bool da_0_passed = test_da_push_0();
-
-  unsigned int passed = 0;
-  unsigned int failed = 0;
-
   // enumeration of tests
   typedef bool (*test_fun)();
   test_fun tests[] =
@@ -51,6 +46,9 @@ int main(){
       NULL};
 
   // call tests
+  bool da_0_passed = true;
+  unsigned int passed = 0;
+  unsigned int failed = 0;
   test_fun *tfp = tests;
   char **tnp = test_names;
   while(*tfp){
@@ -67,7 +65,6 @@ int main(){
   }
 
   // summarize results
-
   if( passed == 0 && failed == 0)
     printf("no tests ran\n");
   else if( passed == 0 )
@@ -77,13 +74,7 @@ int main(){
   else
     printf("failed %u of %u tests\n", failed, passed + failed);
 
-  if( passed == 0 || failed != 0 ) return 1;
-
-
-
-
-
-
 
+  if( passed == 0 || failed != 0 ) return 1;
   return 0;
 }
index 71f1a05..687f720 100755 (executable)
@@ -72,13 +72,9 @@ all: version
 .PHONY: version
 version:
        @echo makefile version 6.0
-       @echo "PWD: " $(PWD)
-       @echo "MAKEFILE_LIST: " $(MAKEFILE_LIST)
-       @echo "C: " $(C)
-       @echo "CFLAGS: " $(CFLAGS)
-       @echo "CC: " $(CC)
-       @echo "CCFLAGS: " $(CCFLAGS)
-       @echo "LINKFLAGS: " $(LINKFLAGS)
+       gcc -v
+       g++ -v
+       make -v
 
 .PHONY: info
 info: