]> Kevux Git Server - fll/commitdiff
Cleanup: Switch from _ui_ format string to _un_ format string to match the print...
authorKevin Day <kevin@kevux.org>
Thu, 15 Feb 2024 04:28:10 +0000 (22:28 -0600)
committerKevin Day <kevin@kevux.org>
Thu, 15 Feb 2024 04:28:10 +0000 (22:28 -0600)
The _un_ format string is provided to directly match '%un' which is intended to directly match f_number_unsigned_t.
This is intended to make things easier (and safer) to hack.
That is, changing the data size of f_number_unsigned_t.

The _ul_ format string is specifically intended to be an unsigned long, period.

level_3/controller/c/rule/private-rule.c
level_3/fake/c/main/print/error.c
level_3/fss_identify/c/main/print/error.c
level_3/fss_read/c/main/print/error.c
level_3/utf8/c/main/print/error.c

index 606446251125060e4a5aa0cfe0d6432631e1f7c0..e9cdb325d02a6bb43d5ebff0496a6e9d57f4253a 100644 (file)
@@ -1887,7 +1887,7 @@ extern "C" {
           if (rerun_item->max) {
             fl_print_format(" for %[%ul%]", main->output.to, main->context.set.notable, rerun_item->count, main->context.set.notable);
             fl_print_format(" of %[%r%] ", main->output.to, main->context.set.notable, controller_max_s, main->context.set.notable);
-            fl_print_format(f_string_format_ul_single_s.string, main->output.to, main->context.set.notable, rerun_item->max, main->context.set.notable);
+            fl_print_format(f_string_format_un_single_s.string, main->output.to, main->context.set.notable, rerun_item->max, main->context.set.notable);
             fl_print_format(".%r", main->output.to, f_string_eol_s);
           }
           else {
index 2b4040aa1f35cd2cffbc729273f7000371847879..0f40312015c1c07921cf116222c288203bee2e98 100644 (file)
@@ -599,9 +599,9 @@ extern "C" {
     fl_print_format("%[' from section '%]", print->to, print->context, buffer, print->context);
     fl_print_format(f_string_format_Q_range_single_s.string, print->to, print->notable, buffer, section_name, print->notable);
     fl_print_format("%[' on line%] ", print->to, print->context, print->context);
-    fl_print_format(f_string_format_ul_single_s.string, print->to, print->notable, line, print->notable);
+    fl_print_format(f_string_format_un_single_s.string, print->to, print->notable, line, print->notable);
     fl_print_format("%[' cannot be processed because the max stack depth of%] ", print->to, print->context, print->context);
-    fl_print_format(f_string_format_ul_single_s.string, print->to, print->notable, stack_max, print->notable);
+    fl_print_format(f_string_format_un_single_s.string, print->to, print->notable, stack_max, print->notable);
     fl_print_format(" %[has been reached.%]%r", print->to, print->context, print->context, f_string_eol_s);
 
     f_file_stream_unlock(print->to);
@@ -632,7 +632,7 @@ extern "C" {
     fl_print_format("%[' from section '%]", print->to, print->context, buffer, print->context);
     fl_print_format(f_string_format_Q_range_single_s.string, print->to, print->notable, buffer, section_name, print->notable);
     fl_print_format("%[' on line%] ", print->to, print->context, print->context);
-    fl_print_format(f_string_format_ul_single_s.string, print->to, print->notable, line, print->notable);
+    fl_print_format(f_string_format_un_single_s.string, print->to, print->notable, line, print->notable);
     fl_print_format(" %[is not a known operation name.%]%r", print->to, print->context, print->context, f_string_eol_s);
 
     f_file_stream_unlock(print->to);
index 537250d2fa80232101d4d98851e3ae814d63c50d..f525e497f8bffdb30e0c5cf378c0b402cdc1378a 100644 (file)
@@ -51,7 +51,7 @@ extern "C" {
     f_file_stream_lock(print->to);
 
     fl_print_format("%[%QEmpty string is not allowed at index%] ", print->to, print->set->error, print->prefix, print->set->error);
-    fl_print_format(f_string_format_ul_single_s.string, print->to, print->set->notable, index, print->set->notable);
+    fl_print_format(f_string_format_un_single_s.string, print->to, print->set->notable, index, print->set->notable);
     fl_print_format(" %[for the parameter '%]", print->to, print->set->error, print->set->error);
     fl_print_format(f_string_format_rr_single_s.string, print->to, print->set->notable, f_console_symbol_long_normal_s, fss_identify_long_name_s, print->set->notable);
     fl_print_format(f_string_format_sentence_end_quote_s.string, print->to, print->set->error, print->set->error, f_string_eol_s);
@@ -73,7 +73,7 @@ extern "C" {
     fl_print_format("%[%QThe value '%]", print->to, print->set->error, print->prefix, print->set->error);
     fl_print_format(f_string_format_Q_single_s.string, print->to, print->set->notable, name, print->set->notable);
     fl_print_format("%[' at index%] ", print->to, print->set->error, print->set->error);
-    fl_print_format(f_string_format_ul_single_s.string, print->to, print->set->notable, index, print->set->notable);
+    fl_print_format(f_string_format_un_single_s.string, print->to, print->set->notable, index, print->set->notable);
     fl_print_format("%[ for the parameter '%]", print->to, print->set->error, print->set->error);
     fl_print_format(f_string_format_rr_single_s.string, print->to, print->set->notable, f_console_symbol_long_normal_s, fss_identify_long_name_s, print->set->notable);
     fl_print_format("%[' may only contain word characters or the dash (minus) character.%]%r", print->to, print->set->error, print->set->error, f_string_eol_s);
index f3c21725053bcae518510d4942cda595dfb2c1ca..b0e0a241251fe8081dc24624b28d2d3331fcd11a 100644 (file)
@@ -57,9 +57,9 @@ extern "C" {
     fl_print_format("%[%QThe parameter '%]", print->to, print->context, print->prefix, print->context);
     fl_print_format(f_string_format_rr_single_s.string, print->to, print->notable, symbol, name, print->notable);
     fl_print_format("%[' may not have the value '%]", print->to, print->context, print->context);
-    fl_print_format(f_string_format_ul_single_s.string, print->to, print->notable, value, print->notable);
+    fl_print_format(f_string_format_un_single_s.string, print->to, print->notable, value, print->notable);
     fl_print_format("%[' before the value '%]", print->to, print->context, print->context);
-    fl_print_format(f_string_format_ul_single_s.string, print->to, print->notable, before, print->notable);
+    fl_print_format(f_string_format_un_single_s.string, print->to, print->notable, before, print->notable);
     fl_print_format(f_string_format_sentence_end_quote_s.string, print->to, print->context, print->context, f_string_eol_s);
 
     f_file_stream_unlock(print->to);
@@ -77,7 +77,7 @@ extern "C" {
     f_file_stream_lock(print->to);
 
     fl_print_format("%[%QThe value '%]", print->to, print->context, print->prefix, print->context);
-    fl_print_format(f_string_format_ul_single_s.string, print->to, print->notable, value, print->notable);
+    fl_print_format(f_string_format_un_single_s.string, print->to, print->notable, value, print->notable);
     fl_print_format("%[' may only be specified once for the parameter '%]", print->to, print->context, print->context);
     fl_print_format(f_string_format_rr_single_s.string, print->to, print->notable, symbol, name, print->notable);
     fl_print_format(f_string_format_sentence_end_quote_s.string, print->to, print->context, print->context, f_string_eol_s);
index edbe9628a59d22e2cf86e5a93c8312b9c6a51b3b..83efad95b7f3a1b0389f0cba7a6ac7e2f8c4eea1 100644 (file)
@@ -118,7 +118,7 @@ extern "C" {
     f_file_stream_lock(print->to);
 
     fl_print_format("%[%QNo file specified at parameter index%] ", print->to, print->set->error, print->prefix, print->set->error);
-    fl_print_format(f_string_format_ul_single_s.string, print->to, print->set->notable, index, print->set->notable);
+    fl_print_format(f_string_format_un_single_s.string, print->to, print->set->notable, index, print->set->notable);
     fl_print_format(f_string_format_sentence_end_s.string, print->to, print->set->error, print->set->error, f_string_eol_s);
 
     f_file_stream_unlock(print->to);