]> feistymeow.org Git - feisty_meow.git/commitdiff
upgraded to feisty, still working on compiling
authorFred T. Hamster <fred@feistymeow.org>
Wed, 18 Feb 2026 21:53:50 +0000 (16:53 -0500)
committerFred T. Hamster <fred@feistymeow.org>
Wed, 18 Feb 2026 21:53:50 +0000 (16:53 -0500)
nucleus/library/tests_processes/find_window.cpp
nucleus/library/tests_processes/makefile.shutdowner
nucleus/library/tests_processes/t_shutdown_alerter.cpp [deleted file]
nucleus/library/tests_processes/test_shutdown_alerter.cpp [new file with mode: 0644]
nucleus/library/tests_processes/zing_window.cpp

index b94df20c7b991218051a83b50cd8e92214db0cac..3c5fc27b0b35955b56e9f29aa6bf153032b7a12e 100644 (file)
 * Please send any updates to: fred@gruntose.com                               *
 \*****************************************************************************/
 
-#include <basis/convert_utf.h>
+#include <application/windoze_helper.h>
+#include <basis/astring.h>
+#include <basis/utf_conversion.h>
 #include <basis/guards.h>
-#include <basis/istring.h>
-#include <basis/portable.h>
-#include <opsystem/command_line.h>
+#include <filesystem/filename.h>
 #include <loggers/console_logger.h>
-#include <opsystem/filename.h>
-#include <data_struct/static_memory_gremlin.h>
+#include <structures/static_memory_gremlin.h>
 
-HOOPLE_STARTUP_CODE;
+using namespace application;
+using namespace basis;
+using namespace filesystem;
+using namespace loggers;
+using namespace structures;
+//using namespace timely;
 
-window_handle matching_window = NIL;
-istring window_name_sought;
+#undef LOG
+#define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger::get(), s)
+
+window_handle matching_window = NULL_POINTER;
+astring window_name_sought;
 
 BOOL CALLBACK zingers_enum_proc(window_handle hwnd, LPARAM lParam)
 {
@@ -38,7 +45,7 @@ BOOL CALLBACK zingers_enum_proc(window_handle hwnd, LPARAM lParam)
   int chars = GetWindowText(hwnd, win_name, MAX_TITLE - 1);
   if (chars > 0) {
     // see if the current window matches what we're looking for.
-    if (istring(from_unicode_temp(win_name)).ifind(window_name_sought) >= 0) {
+    if (astring(from_unicode_temp(win_name)).ifind(window_name_sought) >= 0) {
       matching_window = hwnd;
       return false;  // don't keep going.
     }
@@ -58,8 +65,8 @@ int main(int argc, char *argv[])
         "window is found, its window handle is displayed.");
     return 1;
   }
-  istring title = cmds.get(0).text();
-  matching_window = NIL;  // reset our match first.
+  astring title = cmds.get(0).text();
+  matching_window = NULL_POINTER;  // reset our match first.
   window_name_sought = title;
   // enumerate the windows looking for a match.
   EnumWindows(zingers_enum_proc, 0);
@@ -70,10 +77,10 @@ int main(int argc, char *argv[])
 //out.log("found matching window handle...");
 
   if (matching_window)
-    out.log(isprintf("window handle is 0x%lx (or %ld) for ", matching_window,
+    out.log(a_sprintf("window handle is 0x%lx (or %ld) for ", matching_window,
         matching_window) + title + ".");
   else
-    out.log(istring("no window found for ") + title + ".");
+    out.log(astring("no window found for ") + title + ".");
   return 0;
 }
 
@@ -82,54 +89,54 @@ int main(int argc, char *argv[])
   #include <basis/array.h>
   #include <basis/byte_array.cpp>
   #include <basis/callstack_tracker.cpp>
-  #include <basis/convert_utf.cpp>
+  #include <basis/utf_conversion.cpp>
   #include <basis/definitions.cpp>
   #include <basis/earth_time.cpp>
   #include <basis/guards.cpp>
-  #include <basis/istring.cpp>
+  #include <basis/astring.cpp>
   #include <basis/log_base.cpp>
   #include <basis/memory_checker.cpp>
   #include <basis/mutex.cpp>
-  #include <basis/object_base.h>
+  #include <basis/contracts.h>
   #include <basis/outcome.cpp>
   #include <basis/packable.cpp>
   #include <basis/portable.cpp>
   #include <basis/sequence.h>
-  #include <basis/set.h>
+  #include <structures/set.h>
   #include <basis/trap_new.addin>
   #include <basis/untrap_new.addin>
   #include <basis/utility.cpp>
   #include <basis/version_record.cpp>
-  #include <data_struct/amorph.h>
-  #include <data_struct/bit_vector.cpp>
-  #include <data_struct/byte_hasher.cpp>
-  #include <data_struct/configurator.cpp>
-  #include <data_struct/hash_table.h>
-  #include <data_struct/pointer_hash.h>
-  #include <data_struct/stack.h>
-  #include <data_struct/static_memory_gremlin.cpp>
-  #include <data_struct/string_hash.h>
-  #include <data_struct/string_hasher.cpp>
-  #include <data_struct/string_table.cpp>
-  #include <data_struct/symbol_table.h>
-  #include <data_struct/table_configurator.cpp>
+  #include <structures/amorph.h>
+  #include <structures/bit_vector.cpp>
+  #include <structures/byte_hasher.cpp>
+  #include <structures/configurator.cpp>
+  #include <structures/hash_table.h>
+  #include <structures/pointer_hash.h>
+  #include <structures/stack.h>
+  #include <structures/static_memory_gremlin.cpp>
+  #include <structures/string_hash.h>
+  #include <structures/string_hasher.cpp>
+  #include <structures/string_table.cpp>
+  #include <structures/symbol_table.h>
+  #include <structures/table_configurator.cpp>
   #include <loggers/console_logger.cpp>
   #include <loggers/file_logger.cpp>
   #include <loggers/locked_logger.cpp>
   #include <loggers/null_logger.cpp>
   #include <loggers/program_wide_logger.cpp>
-  #include <opsystem/byte_filer.cpp>
-  #include <opsystem/command_line.cpp>
+  #include <filesystem/byte_filer.cpp>
+  #include <application/command_line.cpp>
   #include <opsystem/critical_events.cpp>
-  #include <opsystem/directory.cpp>
-  #include <opsystem/filename.cpp>
-  #include <opsystem/ini_config.cpp>
+  #include <filesystem/directory.cpp>
+  #include <filesystem/filename.cpp>
+  #include <configuration/ini_configurator.cpp>
   #include <opsystem/ini_parser.cpp>
-  #include <opsystem/path_configuration.cpp>
-  #include <opsystem/rendezvous.cpp>
-  #include <textual/byte_format.cpp>
+  #include <configuration/application_configuration.cpp>
+  #include <processes/rendezvous.cpp>
+  #include <textual/byte_formatter.cpp>
   #include <textual/parser_bits.cpp>
   #include <textual/string_manipulation.cpp>
-  #include <textual/tokenizer.cpp>
+  #include <configuration/variable_tokenizer.cpp>
 #endif // __BUILD_STATIC_APPLICATION__
 
index c937eda7b0621f448567b7f5e7dc27a45c5fcdf1..eba80213dbc2aa9b2573cd48b60c9ac5aba5616d 100644 (file)
@@ -2,11 +2,12 @@ CONSOLE_MODE = t
 
 include cpp/variables.def
 
-PROJECT = t_shutdown_alerter
+PROJECT = test_shutdown_alerter
 TYPE = test
-TARGETS = t_shutdown_alerter.exe
-LOCAL_LIBS_USED = basis i_library
-RUN_TARGETS = 
+TARGETS = test_shutdown_alerter.exe
+LOCAL_LIBS_USED = basis 
+##i_library
+RUN_TARGETS = $(ACTUAL_TARGETS)
 
 include cpp/rules.def
 
diff --git a/nucleus/library/tests_processes/t_shutdown_alerter.cpp b/nucleus/library/tests_processes/t_shutdown_alerter.cpp
deleted file mode 100644 (file)
index 05d6d29..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/*****************************************************************************\
-*                                                                             *
-*  Name   : t_shutdown_alerter                                                *
-*  Author : Chris Koeritz                                                     *
-*                                                                             *
-*  Purpose:                                                                   *
-*                                                                             *
-*    An example of using the shutdown_alerter object to manage the runtime    *
-*  of a program.                                                              *
-*                                                                             *
-*******************************************************************************
-* Copyright (c) 2005-$now By Author.  This program is free software; you can  *
-* redistribute it and/or modify it under the terms of the GNU General Public  *
-* License as published by the Free Software Foundation; either version 2 of   *
-* the License or (at your option) any later version.  This is online at:      *
-*     http://www.fsf.org/copyleft/gpl.html                                    *
-* Please send any updates to: fred@gruntose.com                               *
-\*****************************************************************************/
-
-#include <basis/istring.h>
-#include <basis/log_base.h>
-#include <opsystem/filename.h>
-#include <data_struct/static_memory_gremlin.h>
-#include <processes/shutdown_alerter.h>
-
-HOOPLE_STARTUP_CODE;
-
-#define BASE_LOG(s) STAMPED_EMERGENCY_LOG(program_wide_logger(), s)
-#define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger(), s)
-
-const int TIMING_CYCLE = 1408;
-  // how frequently timer should be hit.
-
-class my_anchor : public shutdown_alerter
-{
-public:
-  virtual void handle_startup() { BASE_LOG("into startup..."); }
-  virtual void handle_shutdown() { BASE_LOG("into shutdown..."); }
-  virtual void handle_timer() { BASE_LOG("into timer..."); }
-};
-
-int main(int formal(argc), char *formal(argv)[])
-{
-  my_anchor w;
-  BASE_LOG(isprintf("timer will hit every %d ms.", TIMING_CYCLE));
-  shutdown_alerter::launch_console(w,
-      filename(portable::application_name()).basename(), TIMING_CYCLE);
-  return 0;
-}
-
diff --git a/nucleus/library/tests_processes/test_shutdown_alerter.cpp b/nucleus/library/tests_processes/test_shutdown_alerter.cpp
new file mode 100644 (file)
index 0000000..d7c5b11
--- /dev/null
@@ -0,0 +1,50 @@
+/*****************************************************************************\
+*                                                                             *
+*  Name   : t_shutdown_alerter                                                *
+*  Author : Chris Koeritz                                                     *
+*                                                                             *
+*  Purpose:                                                                   *
+*                                                                             *
+*    An example of using the shutdown_alerter object to manage the runtime    *
+*  of a program.                                                              *
+*                                                                             *
+*******************************************************************************
+* Copyright (c) 2005-$now By Author.  This program is free software; you can  *
+* redistribute it and/or modify it under the terms of the GNU General Public  *
+* License as published by the Free Software Foundation; either version 2 of   *
+* the License or (at your option) any later version.  This is online at:      *
+*     http://www.fsf.org/copyleft/gpl.html                                    *
+* Please send any updates to: fred@gruntose.com                               *
+\*****************************************************************************/
+
+#include <basis/astring.h>
+
+#include <filesystem/filename.h>
+#include <structures/static_memory_gremlin.h>
+#include <processes/shutdown_alerter.h>
+
+HOOPLE_STARTUP_CODE;
+
+#define BASE_LOG(s) STAMPED_EMERGENCY_LOG(program_wide_logger::get(), s)
+#define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger::get(), s)
+
+const int TIMING_CYCLE = 1408;
+  // how frequently timer should be hit.
+
+class my_anchor : public shutdown_alerter
+{
+public:
+  virtual void handle_startup() { BASE_LOG("into startup..."); }
+  virtual void handle_shutdown() { BASE_LOG("into shutdown..."); }
+  virtual void handle_timer() { BASE_LOG("into timer..."); }
+};
+
+int main(int formal(argc), char *formal(argv)[])
+{
+  my_anchor w;
+  BASE_LOG(a_sprintf("timer will hit every %d ms.", TIMING_CYCLE));
+  shutdown_alerter::launch_console(w,
+      filename(application_configuration::application_name()).basename(), TIMING_CYCLE);
+  return 0;
+}
+
index 592b4a2b90543f7119d887b2164e07f6bd7ad5b5..78fda90d9b93b63d0f87c65071b28255a629bce4 100644 (file)
 * Please send any updates to: fred@gruntose.com                               *
 \*****************************************************************************/
 
-#include <basis/convert_utf.h>
+#include <basis/utf_conversion.h>
 #include <basis/guards.h>
-#include <basis/istring.h>
-#include <basis/portable.h>
-#include <opsystem/command_line.h>
+#include <basis/astring.h>
+
+#include <application/command_line.h>
 #include <loggers/console_logger.h>
-#include <opsystem/filename.h>
-#include <data_struct/static_memory_gremlin.h>
+#include <filesystem/filename.h>
+#include <structures/static_memory_gremlin.h>
 
 #include <stdio.h>
 
 HOOPLE_STARTUP_CODE;
 
-window_handle matching_window = NIL;
-istring window_name_sought;
+window_handle matching_window = NULL_POINTER;
+astring window_name_sought;
 
 BOOL CALLBACK zingers_enum_proc(window_handle hwnd, LPARAM lParam)
 {
@@ -45,7 +45,7 @@ BOOL CALLBACK zingers_enum_proc(window_handle hwnd, LPARAM lParam)
   int chars = GetWindowText(hwnd, win_name, MAX_TITLE - 1);
   if (chars > 0) {
     // see if the current window matches what we're looking for.
-    if (istring(from_unicode_temp(win_name)).ifind(window_name_sought) >= 0) {
+    if (astring(from_unicode_temp(win_name)).ifind(window_name_sought) >= 0) {
       matching_window = hwnd;
       return false;  // don't keep going.
     }
@@ -68,12 +68,12 @@ int main(int argc, char *argv[])
         "message chosen, the window will behave in various different ways.\n"
         "If there are a third or fourth parameter, then these are taken as\n"
         "the extra data to send in the PostMessage call for zinging.");
-    out.log(isprintf("\nExample windows message values:\n\t"
+    out.log(a_sprintf("\nExample windows message values:\n\t"
         "WM_CLOSE = %d\n\tWM_PAINT = %d", WM_CLOSE, WM_PAINT));
     return 1;
   }
 
-  istring junk_text = cmds.get(0).text();
+  astring junk_text = cmds.get(0).text();
   bool saw_hex_code = false;
   if (junk_text.begins("0x")) {
     // we have a hex code.  we will key off of that, which assumes that there
@@ -106,7 +106,7 @@ int main(int argc, char *argv[])
   }
   if (has_alpha) {
     // reset our match first.
-    matching_window = NIL;
+    matching_window = NULL_POINTER;
     window_name_sought = junk_text;
 //out.log("saw non-numbers in handle, trying as name.");
     // enumerate the windows looking for a match.
@@ -139,7 +139,7 @@ int main(int argc, char *argv[])
 
   PostMessage(handle, event, p1, p2);
 
-  out.log(isprintf("posted at 0x%lx the zing (%u %u %u)", handle, event,
+  out.log(a_sprintf("posted at 0x%lx the zing (%u %u %u)", handle, event,
       p1, p2));
 
   return 0;
@@ -149,54 +149,54 @@ int main(int argc, char *argv[])
   // static dependencies found by buildor_gen_deps.sh:
   #include <basis/byte_array.cpp>
   #include <basis/callstack_tracker.cpp>
-  #include <basis/convert_utf.cpp>
+  #include <basis/utf_conversion.cpp>
   #include <basis/definitions.cpp>
   #include <basis/earth_time.cpp>
   #include <basis/guards.cpp>
-  #include <basis/istring.cpp>
+  #include <basis/astring.cpp>
   #include <basis/log_base.cpp>
   #include <basis/memory_checker.cpp>
   #include <basis/mutex.cpp>
-  #include <basis/object_base.h>
+  #include <basis/contracts.h>
   #include <basis/outcome.cpp>
   #include <basis/packable.cpp>
   #include <basis/portable.cpp>
   #include <basis/sequence.h>
-  #include <basis/set.h>
+  #include <structures/set.h>
   #include <basis/trap_new.addin>
   #include <basis/untrap_new.addin>
   #include <basis/utility.cpp>
   #include <basis/version_record.cpp>
-  #include <data_struct/amorph.h>
-  #include <data_struct/bit_vector.cpp>
-  #include <data_struct/byte_hasher.cpp>
-  #include <data_struct/configurator.cpp>
-  #include <data_struct/hash_table.h>
-  #include <data_struct/pointer_hash.h>
-  #include <data_struct/stack.h>
-  #include <data_struct/static_memory_gremlin.cpp>
-  #include <data_struct/string_hash.h>
-  #include <data_struct/string_hasher.cpp>
-  #include <data_struct/string_table.cpp>
-  #include <data_struct/symbol_table.h>
-  #include <data_struct/table_configurator.cpp>
+  #include <structures/amorph.h>
+  #include <structures/bit_vector.cpp>
+  #include <structures/byte_hasher.cpp>
+  #include <structures/configurator.cpp>
+  #include <structures/hash_table.h>
+  #include <structures/pointer_hash.h>
+  #include <structures/stack.h>
+  #include <structures/static_memory_gremlin.cpp>
+  #include <structures/string_hash.h>
+  #include <structures/string_hasher.cpp>
+  #include <structures/string_table.cpp>
+  #include <structures/symbol_table.h>
+  #include <structures/table_configurator.cpp>
   #include <loggers/console_logger.cpp>
   #include <loggers/file_logger.cpp>
   #include <loggers/locked_logger.cpp>
   #include <loggers/null_logger.cpp>
   #include <loggers/program_wide_logger.cpp>
-  #include <opsystem/byte_filer.cpp>
-  #include <opsystem/command_line.cpp>
+  #include <filesystem/byte_filer.cpp>
+  #include <application/command_line.cpp>
   #include <opsystem/critical_events.cpp>
-  #include <opsystem/directory.cpp>
-  #include <opsystem/filename.cpp>
-  #include <opsystem/ini_config.cpp>
+  #include <filesystem/directory.cpp>
+  #include <filesystem/filename.cpp>
+  #include <configuration/ini_configurator.cpp>
   #include <opsystem/ini_parser.cpp>
-  #include <opsystem/path_configuration.cpp>
-  #include <opsystem/rendezvous.cpp>
-  #include <textual/byte_format.cpp>
+  #include <configuration/application_configuration.cpp>
+  #include <processes/rendezvous.cpp>
+  #include <textual/byte_formatter.cpp>
   #include <textual/parser_bits.cpp>
   #include <textual/string_manipulation.cpp>
-  #include <textual/tokenizer.cpp>
+  #include <configuration/variable_tokenizer.cpp>
 #endif // __BUILD_STATIC_APPLICATION__