The f_string_lengths length variable should be an f_array_length (this would otherwise be called f_string_lengths_length)
Replace all code that used the f_string_lengths length variables with f_array_length.
#ifndef _di_f_string_lengths_
typedef struct {
f_string_length *array;
- f_string_length size; // total amount of allocated space
- f_string_length used; // total number of allocated spaces used
+ f_array_length size; // total amount of allocated space
+ f_array_length used; // total number of allocated spaces used
} f_string_lengths;
- #define f_string_lengths_initialize { f_string_length_initialize, f_string_length_initialize, f_string_length_initialize }
+ #define f_string_lengths_initialize { f_string_length_initialize, f_array_length_initialize, f_array_length_initialize }
#define f_delete_string_lengths(status, lengths) \
f_delete_structure(status, lengths, f_string_length)
#ifndef _di_f_string_locations_
typedef struct {
f_string_location *array; // the array of string locations
- f_string_length size; // total amount of allocated space
- f_string_length used; // total number of allocated spaces used
+ f_array_length size; // total amount of allocated space
+ f_array_length used; // total number of allocated spaces used
} f_string_locations;
- #define f_string_locations_initialize {0, f_string_length_initialize, f_string_length_initialize}
+ #define f_string_locations_initialize {0, f_array_length_initialize, f_array_length_initialize}
#define f_delete_string_locations(status, locations) \
f_delete_structure(status, locations, f_string_location)
#endif
#ifndef _di_fl_process_parameters_
- f_return_status fl_process_parameters(const f_u_int argc, const f_string argv[], f_console_parameter parameters[], const f_u_int total_parameters, f_string_lengths *remaining){
+ f_return_status fl_process_parameters(const f_array_length argc, const f_string argv[], f_console_parameter parameters[], const f_u_int total_parameters, f_string_lengths *remaining){
#ifndef _di_level_1_parameter_checking_
if (remaining == f_null) return f_invalid_parameter;
#endif // _di_level_1_parameter_checking_
f_console_id result = 0;
f_bool found = f_false;
- f_u_int location = 1; // parameter 0 represents the program name so skip it
- f_u_int sub_location = 0;
- f_u_int increments = 0;
- f_u_int string_length = 0;
- f_u_int parameter_counter = 0;
+ f_array_length location = 1; // parameter 0 represents the program name so skip it
+ f_string_length sub_location = 0;
+ f_string_length increments = 0;
+ f_string_length string_length = 0;
+ f_array_length parameter_counter = 0;
f_string_lengths extra_initiator = f_string_lengths_initialize;
#endif
#ifndef _di_fl_process_parameters_
- extern f_return_status fl_process_parameters(const f_u_int argc, const f_string argv[], f_console_parameter parameters[], const f_u_int total_parameters, f_string_lengths *remaining);
+ extern f_return_status fl_process_parameters(const f_array_length argc, const f_string argv[], f_console_parameter parameters[], const f_array_length total_parameters, f_string_lengths *remaining);
#endif // _di_fl_process_parameters_
#endif // _di_fl_execute_path_
#ifndef _di_fl_execute_program_
- // TODO: this will find the program based on PATH environment so that static paths do not have to be used as with f_execute_path
- //f_return_status fl_execute_program(const f_string program_name, const f_string arguments[], f_s_int *results);
+ // This will find the program based on PATH environment so that static paths do not have to be used as with f_execute_path
+ extern f_return_status fl_execute_program(const f_string program_name, const f_string arguments[], f_s_int *results);
#endif // _di_fl_execute_program_
#ifdef __cplusplus
}
if (delimits.used > 0) {
- f_string_length counter = 0;
+ f_array_length counter = 0;
for (; counter < delimits.used; counter++) {
buffer->string[delimits.array[counter]] = f_fss_delimit_placeholder;
}
if (delimits.used > 0) {
- f_string_length counter = 0;
+ f_array_length counter = 0;
for (; counter < delimits.used; counter++) {
buffer->string[delimits.array[counter]] = f_fss_delimit_placeholder;
#endif // _di_fss_basic_list_read_print_help_
#ifndef _di_fss_basic_list_read_main_
- f_return_status fss_basic_list_read_main(const f_s_int argc, const f_string argv[], fss_basic_list_read_data *data){
+ f_return_status fss_basic_list_read_main(const f_array_length argc, const f_string argv[], fss_basic_list_read_data *data){
f_status status = f_status_initialize;
f_status allocation_status = f_status_initialize;
#include <level_3/fss_basic_list_read.h>
-int main(const f_s_int argc, const f_string argv[]){
+int main(const f_array_length argc, const f_string argv[]){
f_status status = f_status_initialize;
fss_basic_list_read_data data = fss_basic_list_read_data_initialize;
#endif // _di_fss_basic_read_print_help_
#ifndef _di_fss_basic_read_main_
- f_return_status fss_basic_read_main(const f_s_int argc, const f_string argv[], fss_basic_read_data *data){
+ f_return_status fss_basic_read_main(const f_array_length argc, const f_string argv[], fss_basic_read_data *data){
f_status status = f_status_initialize;
f_status allocation_status = f_status_initialize;
#include <level_3/fss_basic_read.h>
-int main(const f_s_int argc, const f_string argv[]){
+int main(const f_array_length argc, const f_string argv[]){
f_status status = f_status_initialize;
fss_basic_read_data data = fss_basic_read_data_initialize;
#endif // _di_fss_extended_read_print_help_
#ifndef _di_fss_extended_read_main_
- f_return_status fss_extended_read_main(const f_s_int argc, const f_string argv[], fss_extended_read_data *data){
+ f_return_status fss_extended_read_main(const f_array_length argc, const f_string argv[], fss_extended_read_data *data){
f_status status = f_status_initialize;
f_status allocation_status = f_status_initialize;
#include <level_3/fss_extended_read.h>
-int main(const f_s_int argc, const f_string argv[]){
+int main(const f_array_length argc, const f_string argv[]){
f_status status = f_status_initialize;
fss_extended_read_data data = fss_extended_read_data_initialize;