updating example with namespace
authorThomas Walker Lynch <eknp9n@reasoningtechnology.com>
Tue, 10 Mar 2026 09:12:17 +0000 (09:12 +0000)
committerThomas Walker Lynch <eknp9n@reasoningtechnology.com>
Tue, 10 Mar 2026 09:12:17 +0000 (09:12 +0000)
developer/authored/Greeter/Greeter.lib.c [new file with mode: 0644]
developer/authored/Greeter/Math.lib.c [new file with mode: 0644]
developer/authored/Greeter/hello.CLI.c [new file with mode: 0644]
developer/authored/greeter.lib.c [deleted file]
developer/authored/hello.CLI.c [deleted file]
developer/authored/math.lib.c [deleted file]
developer/made/.gitkeep [deleted file]

diff --git a/developer/authored/Greeter/Greeter.lib.c b/developer/authored/Greeter/Greeter.lib.c
new file mode 100644 (file)
index 0000000..b7be528
--- /dev/null
@@ -0,0 +1,26 @@
+#ifndef GREETER_LIB_C
+#define GREETER_LIB_C
+#ifndef FACE
+  #define GREETER_IMPL
+#endif
+
+#define FACE
+#include "math.lib.c"
+#undef FACE
+
+void Greet·hello_loop(int count);
+
+#ifdef GREETER_IMPL
+
+#include <stdio.h>
+
+void Greet·hello_loop(int count){
+  for(int TM = 0; TM < count; ++TM){
+    int current_count = Math·add(TM ,1);
+    printf("Hello iteration: %d\n" ,current_count);
+  }
+}
+
+#endif // GREETER_IMPL
+#endif // GREETER_LIB_C
+
diff --git a/developer/authored/Greeter/Math.lib.c b/developer/authored/Greeter/Math.lib.c
new file mode 100644 (file)
index 0000000..220b392
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef ExampleGreet·math·ONCE
+#define ExampleGreet·math·ONCE
+
+#ifndef ExampleGreet·math
+  #define ExampleGreet·math
+#endif
+
+int ExampleGreet·Math·add(int a ,int b);
+
+#ifdef ExampleGreet·math
+
+int ExampleGreet·Math·add(int a ,int b){
+  return a + b;
+}
+
+#endif // ExampleGreet·math
+#endif // ExampleGreet·math·ONCE
diff --git a/developer/authored/Greeter/hello.CLI.c b/developer/authored/Greeter/hello.CLI.c
new file mode 100644 (file)
index 0000000..d498dbf
--- /dev/null
@@ -0,0 +1,22 @@
+#include <stdlib.h>
+#include <stdio.h>
+
+#define FACE
+#include "math.lib.c"
+#include "greeter.lib.c"
+#undef FACE
+
+void CLI(void){
+  int base_count = Math·add(1 ,2);
+  printf("Calculated base loop count: %d\n" ,base_count);
+  Greet·hello_loop(base_count);
+}
+
+int main(int argc ,char **argv){
+  (void)argc;
+  (void)argv;
+  
+  CLI();
+  
+  return EXIT_SUCCESS;
+}
diff --git a/developer/authored/greeter.lib.c b/developer/authored/greeter.lib.c
deleted file mode 100644 (file)
index b7be528..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#ifndef GREETER_LIB_C
-#define GREETER_LIB_C
-#ifndef FACE
-  #define GREETER_IMPL
-#endif
-
-#define FACE
-#include "math.lib.c"
-#undef FACE
-
-void Greet·hello_loop(int count);
-
-#ifdef GREETER_IMPL
-
-#include <stdio.h>
-
-void Greet·hello_loop(int count){
-  for(int TM = 0; TM < count; ++TM){
-    int current_count = Math·add(TM ,1);
-    printf("Hello iteration: %d\n" ,current_count);
-  }
-}
-
-#endif // GREETER_IMPL
-#endif // GREETER_LIB_C
-
diff --git a/developer/authored/hello.CLI.c b/developer/authored/hello.CLI.c
deleted file mode 100644 (file)
index d498dbf..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <stdlib.h>
-#include <stdio.h>
-
-#define FACE
-#include "math.lib.c"
-#include "greeter.lib.c"
-#undef FACE
-
-void CLI(void){
-  int base_count = Math·add(1 ,2);
-  printf("Calculated base loop count: %d\n" ,base_count);
-  Greet·hello_loop(base_count);
-}
-
-int main(int argc ,char **argv){
-  (void)argc;
-  (void)argv;
-  
-  CLI();
-  
-  return EXIT_SUCCESS;
-}
diff --git a/developer/authored/math.lib.c b/developer/authored/math.lib.c
deleted file mode 100644 (file)
index 6256c7c..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef MATH_LIB_C
-#define MATH_LIB_C
-
-#ifndef FACE
-  #define MATH_IMPL
-#endif
-
-int Math·add(int a ,int b);
-
-#ifdef MATH_IMPL
-
-int Math·add(int a ,int b){
-  return a + b;
-}
-
-#endif // MATH_IMPL
-#endif // MATH_LIB_C
diff --git a/developer/made/.gitkeep b/developer/made/.gitkeep
deleted file mode 100644 (file)
index e69de29..0000000