]> feistymeow.org Git - feisty_meow.git/commitdiff
working NIL fix in upgrader
authorFred T. Hamster <fred@feistymeow.org>
Sat, 14 Feb 2026 10:41:28 +0000 (05:41 -0500)
committerFred T. Hamster <fred@feistymeow.org>
Sat, 14 Feb 2026 10:41:28 +0000 (05:41 -0500)
octopi/library/tests_cromp/test_cromp_client.cpp
scripts/buildor/upgrade_hoople_to_feistymeow.sh

index e7f2078450925995f2271daca52c6fc846791f75..9b466edf4c26d43498470cddf9a7ddc464b0805e 100644 (file)
@@ -242,7 +242,7 @@ private:
 
 cromp_client_tester::cromp_client_tester()
 : application_shell("cromp_client_tester"),
-  _uplink(NIL),
+  _uplink(NULL_POINTER),
   _lock(new mutex),
   _threads_active(0),
   _finished_loops(0.0),
@@ -440,7 +440,7 @@ void cromp_client_tester::look_for_receipts(int count,
     structures::set<octopus_request_id> &delinquents, bool wait)
 {
   FUNCDEF("look_for_receipts");
-  infoton *received = NIL;
+  infoton *received = NULL_POINTER;
   while (count--) {
     if (!ids.length()) break;  // nothing to check on.
     octopus_request_id the_id = ids[0];
@@ -484,7 +484,7 @@ LOG(a_sprintf("added %s to delinquents.", the_id.text_form().s()));
 
 if (!received) {
 deadly_error(class_name(), func,
-"received packet was NIL even though outcome was OKAY!");
+"received packet was NULL_POINTER even though outcome was OKAY!");
 }
 
     // check that the right type is coming back to us.
@@ -616,7 +616,7 @@ void cromp_client_tester::grab_items()
   FUNCDEF("grab_items");
   octopus_request_id id(_uplink->entity(), -12);
     // look for an id we don't expect to have any thing waiting for.
-  infoton *found = NIL;
+  infoton *found = NULL_POINTER;
   outcome ret = _uplink->retrieve_and_restore(found, id, 0);
   WHACK(found);
 }
@@ -742,7 +742,7 @@ int cromp_client_tester::execute()
   // create the extra grabber threads.
   for (int i = 0; i < _grabber_count; i++) {
     grabby_thread *to_add = new grabby_thread(*this);
-    cab.add_thread(to_add, false, NIL);
+    cab.add_thread(to_add, false, NULL_POINTER);
   }
 
   LOG(a_sprintf("adding %d transmitter threads to test.", _thread_count));
@@ -750,12 +750,12 @@ int cromp_client_tester::execute()
   // create the specified number of threads.
   for (int j = 0; j < _thread_count; j++) {
     bitey_thread *to_add = new bitey_thread(*this);
-    cab.add_thread(to_add, false, NIL);
+    cab.add_thread(to_add, false, NULL_POINTER);
   }
 
 //LOG("starting all threads...");
   time_stamp start;
-  cab.start_all(NIL);
+  cab.start_all(NULL_POINTER);
 //LOG("done starting threads...");
 
   time_control::sleep_ms(400);  // wait until a few get cranked up.
index c187b5f94c4a52b65e4b9221e61da5c79f01128b..0ed1692a350e7c00e8ba1bdaa8388827d8971020 100644 (file)
@@ -162,7 +162,7 @@ standards and usages."
     | sed -e 's/log_base::CRLF_AT_END/parser_bits::CRLF_AT_END/g' \
     | sed -e 's/^#include <mechanisms\/throughput_counter.h> *$/#include <sockets\/throughput_counter.h>/g' \
     | sed -e 's/^#include <application\/rendezvous.h> *$/#include <processes\/rendezvous.h>/g' \
-    | sed -e 's/\([[:space:]]\)*NIL\([^A-Za-z_\)/\1NULL_POINTER\2/g' \
+    | sed -e 's/\([^A-Za-z0-9_]\)NIL\([^A-Za-z0-9_]\)/\1NULL_POINTER\2/g' \
     | sed -e 's/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/[\/]*/\/\/\/\/\/\/\/\/\/\/\/\/\/\//g' \
     >"$tempfile"