]> Kevux Git Server - fll/log
fll
22 months agoCleanup: Fix grammar in utf8 program help.
Kevin Day [Sat, 7 Jan 2023 02:14:51 +0000 (20:14 -0600)]
Cleanup: Fix grammar in utf8 program help.

22 months agoBugfix: The mode clang is missing from the UTF8 stand alone build settings.
Kevin Day [Fri, 6 Jan 2023 04:07:32 +0000 (22:07 -0600)]
Bugfix: The mode clang is missing from the UTF8 stand alone build settings.

22 months agoBugfix: Support for passing a fakefile Section incorrectly fails.
Kevin Day [Fri, 6 Jan 2023 03:57:27 +0000 (21:57 -0600)]
Bugfix: Support for passing a fakefile Section incorrectly fails.

The commit 6c05c66f50719c9edaa36dea75669e03cd558ee4 added a loop around the code.
I forget to handle the return status and break out of the loop appropriately.

Move the variable declaration outside of the loop to avoid re-declaring it inside.

An error or a child signal should cause the loop to terminate.

When the string comparison is matched, do not continue processing the inner loop.

22 months agoCleanup: Use correct version in install.sh script.
Kevin Day [Fri, 6 Jan 2023 03:53:01 +0000 (21:53 -0600)]
Cleanup: Use correct version in install.sh script.

I probably got lazy and copied then install.sh script from the 0.7 development branch and then forgot to update the version.

22 months agoFeature: Add support for installing documentation to the install.sh script.
Kevin Day [Fri, 6 Jan 2023 03:52:20 +0000 (21:52 -0600)]
Feature: Add support for installing documentation to the install.sh script.

22 months agoCleanup: Use braces around variable names.
Kevin Day [Fri, 6 Jan 2023 03:40:21 +0000 (21:40 -0600)]
Cleanup: Use braces around variable names.

Do this by practice now to better avoid ZSH and other potential compatibility problems.

22 months agoBugfix: Install script still install static program sources despite being disabled.
Kevin Day [Fri, 6 Jan 2023 03:39:37 +0000 (21:39 -0600)]
Bugfix: Install script still install static program sources despite being disabled.

The if condition nested is only wrapping the print block.
Move the conditional logic to the proper wrapping block.

22 months agoFeature: Support passing a fakefile Section name to the main program.
Kevin Day [Thu, 5 Jan 2023 03:20:16 +0000 (21:20 -0600)]
Feature: Support passing a fakefile Section name to the main program.

This is intuitive and should have already been supported in the project to better transition from GNU Make into Featureless Make.

The unknown parameter error is to no longer be thrown.

Instead, when the make process in being followed, check to see if any Sections exist in the fakefile matching the main program Section parameters.
Fail when this happens.
If the Section exists in the fakefile then that Section is operated on.

This, for example, now allows for doing something like "fake install" in the same way "make install" works.

The "install" Section must exist in the fakefile for this to work.

22 months agoCleanup: Add missing space in fake --help output.
Kevin Day [Thu, 5 Jan 2023 02:01:06 +0000 (20:01 -0600)]
Cleanup: Add missing space in fake --help output.

22 months agoUpdate: De-couple the build settings data file from the install.sh script.
Kevin Day [Thu, 5 Jan 2023 01:57:04 +0000 (19:57 -0600)]
Update: De-couple the build settings data file from the install.sh script.

The design is originally focused around the data/build/settings file.

This file is simple enough and easy enough to use that I decided to use it beyond its intended design.

I noticed that the data/build/settings isn't required anymore.
Removing this allows me to better use in other projects, such as those that have only a fakefile or have a different directory location for the build settings data.

The install.sh script is even simpler now.

22 months agoUpdate: The f_file_mode_from_string() replace parameter should be optional.
Kevin Day [Tue, 3 Jan 2023 21:43:37 +0000 (15:43 -0600)]
Update: The f_file_mode_from_string() replace parameter should be optional.

This change does not break ABI.
This change does not break API, except for parameter error when replace is NULL.

22 months agoFeature: Add f_file_is_stat() to perform f_file_is() using a pre-populated file stati...
Kevin Day [Tue, 3 Jan 2023 20:54:06 +0000 (14:54 -0600)]
Feature: Add f_file_is_stat() to perform f_file_is() using a pre-populated file statistics structure.

22 months agoUpdate: Be more thorough in the f_file unit test.
Kevin Day [Tue, 3 Jan 2023 20:52:16 +0000 (14:52 -0600)]
Update: Be more thorough in the f_file unit test.

The "*_returns_false" test is doing a more complete check but the "*_returns_true" is not.
Redesign the "*_returns_true" test to have the same structure as the "*_returns_false" test.

22 months agoBugfix: The f_signal unit tests after significant change.
Kevin Day [Tue, 3 Jan 2023 20:47:46 +0000 (14:47 -0600)]
Bugfix: The f_signal unit tests after significant change.

The bugfix from commit 3a5a4e73f16b0285e9cfb436481835e192896ef8 didn't include checking and updating the unit tests.

22 months agoUpdate: Use an enumeration rather than a define macro for the conversion flags.
Kevin Day [Fri, 30 Dec 2022 15:43:42 +0000 (09:43 -0600)]
Update: Use an enumeration rather than a define macro for the conversion flags.

22 months agoUpdate: Code documentation is missing the function fl_conversion_dynamic_partial_to_u...
Kevin Day [Tue, 27 Dec 2022 15:52:26 +0000 (09:52 -0600)]
Update: Code documentation is missing the function fl_conversion_dynamic_partial_to_unsigned_detect().

22 months agoBugfix: The signal is not properly closing.
Kevin Day [Mon, 26 Dec 2022 13:58:48 +0000 (07:58 -0600)]
Bugfix: The signal is not properly closing.

The signal id is a file descriptor.
File descriptors are unset when at -1 rather than 0.

The not zero check is therefore invalid.
Replace that check with a check against negative one.

22 months agoSecurity: Check if either 'main' or 'setting' is NULL.
Kevin Day [Sun, 25 Dec 2022 02:00:05 +0000 (20:00 -0600)]
Security: Check if either 'main' or 'setting' is NULL.

Name the void pointer 'setting' as 'void_setting' for consistency purposes.
Note that this should not be named 'void_setting' in the header files.

22 months agoUpdate: Do not treat interrupt not being listened to as an error.
Kevin Day [Sun, 25 Dec 2022 01:31:32 +0000 (19:31 -0600)]
Update: Do not treat interrupt not being listened to as an error.

When the interrupt is received and the interrupt is not in the designated set then an error is being returned.
Change this behavior to return a non-error status.

22 months agoSecurity: Check if setting is NULL.
Kevin Day [Sat, 24 Dec 2022 22:30:43 +0000 (16:30 -0600)]
Security: Check if setting is NULL.

22 months agoCleanup: Use 'choice' instead of 'decision'.
Kevin Day [Sat, 24 Dec 2022 22:06:20 +0000 (16:06 -0600)]
Cleanup: Use 'choice' instead of 'decision'.

This became inconsistent at some point in time.
Use 'choice' simply because it is shorter.

23 months agoUpdate: Use f_color_mode_not_e rather than f_color_mode_color_not_e.
Kevin Day [Sat, 24 Dec 2022 00:38:20 +0000 (18:38 -0600)]
Update: Use f_color_mode_not_e rather than f_color_mode_color_not_e.

The second 'color' in f_color_mode_color_not_e is redundant and inconsistent with the other parameters.
Remove it.

23 months agoUpdate: Fix license in documentation.
Kevin Day [Wed, 21 Dec 2022 19:40:44 +0000 (13:40 -0600)]
Update: Fix license in documentation.

The time.txt specification uses the open-standard-license-1.0.
When I separated the time.txt and formally wrote the specification for the standard, I forgot to set the documentation to a documentation license.
The documentation licese is supposed to be cc-by-sa-4.0.

23 months agoBugfix: Not defaulting to top-level fakefile when data/build/ does not exist.
Kevin Day [Tue, 20 Dec 2022 13:50:50 +0000 (07:50 -0600)]
Bugfix: Not defaulting to top-level fakefile when data/build/ does not exist.

This is happening because the `data/build` directory check is happening independent of the defaulting to the local fakefile step.

Add a check that removes the requirement only when there is no explicit fakefile parameter specified and a fakefile at the top-level exists.

23 months agoFeature: Add support for a prepending a prefix to build directory names.
Kevin Day [Sat, 17 Dec 2022 00:38:43 +0000 (18:38 -0600)]
Feature: Add support for a prepending a prefix to build directory names.

This should make it easier to build packages for releases with the packages named for "monolithic-", "level_0-", "stand_alone-", etc...

23 months agoBugfix: The "-mode" functionality is incomplete and incorrect in the bootstrap.sh...
Kevin Day [Sat, 17 Dec 2022 00:15:47 +0000 (18:15 -0600)]
Bugfix: The "-mode" functionality is incomplete and incorrect in the bootstrap.sh script.

The bootstrap_load_settings_has() method is removed for being incorrect.

Add missing Objects, such as build_indexer, build_indexer_arguments, build_name, search_exclusive, and search_static, to the "has-" detection data array.
Add additional detection data array for the "-mode" variants of the "has-" data array keys.

Stop checking if Content is an empty string when doing an Object existence check.
Just check to see if the Object exist, with or without Content.

Override the parameters when a "-mode" is provided for single-value parameters, even if the Content does not exist.
This should properly fail for when the Object is overridden with a mode that has no Content and is required.

For example, take the following:
  build_compiler gcc
  build_compiler-clang

In that above case clang is a mode that is overriding but has no Content.
The build_compiler is required.
This should fail because clang mode replaces the single-valued build_compiler with no Content.
This is a proper failure.

23 months agoCleanup: Fix comments that have incorrect notes.
Kevin Day [Fri, 16 Dec 2022 23:08:48 +0000 (17:08 -0600)]
Cleanup: Fix comments that have incorrect notes.

23 months agoCleanup: Fix comments that have incorrect notes.
Kevin Day [Fri, 16 Dec 2022 19:00:11 +0000 (13:00 -0600)]
Cleanup: Fix comments that have incorrect notes.

23 months agoProgress: Prototype the callback paameter for console parameters.
Kevin Day [Fri, 16 Dec 2022 03:03:24 +0000 (21:03 -0600)]
Progress: Prototype the callback paameter for console parameters.

There needs to be a way to have conditional parameters and other relationships.
Provide an optional callback to help facilitate this without adding any additional complicated structures (other than the callback itself).

I need to figure out how I want the arguments to the callback to be defined.
This stubs out the design.
The parameters to the callback are subject to change once I determine what they should be.

23 months agoUpdate: Documentation and specifications.
Kevin Day [Fri, 16 Dec 2022 02:17:44 +0000 (20:17 -0600)]
Update: Documentation and specifications.

All of the documentation and specifications should now be IKI based.

I have finally decided on how I want abbreviations handled.
This removes the "abbreviation-" and "abbreviation:" from use.
The new behavior has the abbreviation followed by the expansion, such as FLL:"Featureless Linux Library".
have the block IKI structure identical in pattern to the script IKI structure.

Use "italic" instead of "emphasis" for such IKI vocabulary.

23 months agoUpdate: Add formal specification for Time and EpochTime and use IKI in the files.
Kevin Day [Fri, 16 Dec 2022 01:19:20 +0000 (19:19 -0600)]
Update: Add formal specification for Time and EpochTime and use IKI in the files.

23 months agoCleanup: Bring a copy of time.txt from Controller to the core project.
Kevin Day [Fri, 16 Dec 2022 00:33:14 +0000 (18:33 -0600)]
Cleanup: Bring a copy of time.txt from Controller to the core project.

New functionality needs to be added to the package.sh script to conditionally add documentation and specifications to any given package.
Once this is done, then the now redundant time.txt can be removed from the Controller and possibly Control projects.

There also needs to be a formally specification file for time.txt and not just documentation.

23 months agoCleanup: Re-word sentences in time.txt to be less likely to be mis-interpreted.
Kevin Day [Fri, 16 Dec 2022 00:27:40 +0000 (18:27 -0600)]
Cleanup: Re-word sentences in time.txt to be less likely to be mis-interpreted.

23 months agoCleanup: Be more specific about quotes in FSS and add missing unicode value.
Kevin Day [Thu, 15 Dec 2022 03:34:57 +0000 (21:34 -0600)]
Cleanup: Be more specific about quotes in FSS and add missing unicode value.

23 months agoBugfix: The IKI variables that expand reserved words should expand into multiple...
Kevin Day [Thu, 15 Dec 2022 00:14:47 +0000 (18:14 -0600)]
Bugfix: The IKI variables that expand reserved words should expand into multiple parameters.

Reserved words, such as the ones regarding the --mode parameter, have multiple values then these should themselves expand into multiple values.
Wrapping quotes can be added to prevent this behavior.

There may be previous issues that intentionally added this (and then possibly as a bugfix).
The previous behavior of expanding multi-valued reserved words into a single parameter value when not using quotes is now considered a bug.

23 months agoUpdate: Slight changes to design around the build settings arguments.
Kevin Day [Wed, 14 Dec 2022 05:25:46 +0000 (23:25 -0600)]
Update: Slight changes to design around the build settings arguments.

Improve the argument handling when the fakefile contains a build settings with arguments.

This is done in observance of a bug where passed modes are combined into a single parameter when modes are passed via an IKI replacement.
A follow up bugfix that may involve some refactoring or functionality reinterpretation is needed.

This uses an explicit array when needed rather than an inexplicit pointer.

This repeats the parsing when printing the output so that information output is not misleading.

23 months agoCleanup: Fix problems with comments.
Kevin Day [Wed, 14 Dec 2022 05:29:20 +0000 (23:29 -0600)]
Cleanup: Fix problems with comments.

23 months agoBugfix: The fakefile needs to have the supported modes.
Kevin Day [Wed, 14 Dec 2022 03:47:43 +0000 (21:47 -0600)]
Bugfix: The fakefile needs to have the supported modes.

23 months agoSecurity: Ensure pointer exists before calling process function callbacks.
Kevin Day [Wed, 14 Dec 2022 01:57:16 +0000 (19:57 -0600)]
Security: Ensure pointer exists before calling process function callbacks.

In cases where these are not defined, just do nothing.

23 months agoProgress: Begin working on Featureless Make.
Kevin Day [Tue, 13 Dec 2022 04:45:42 +0000 (22:45 -0600)]
Progress: Begin working on Featureless Make.

These are the initial changes I made while looking at what I am going to need to do.

23 months agoUpdate: Improve some of the Featureless Make documentation and specifications.
Kevin Day [Tue, 13 Dec 2022 04:29:50 +0000 (22:29 -0600)]
Update: Improve some of the Featureless Make documentation and specifications.

There will likely be another pass at this.

23 months agoUpdate: Build and other documentation, fixing or adding IKI support.
Kevin Day [Tue, 13 Dec 2022 04:11:45 +0000 (22:11 -0600)]
Update: Build and other documentation, fixing or adding IKI support.

23 months agoUpdate: Add lossy allocation documentation.
Kevin Day [Tue, 13 Dec 2022 04:10:47 +0000 (22:10 -0600)]
Update: Add lossy allocation documentation.

23 months agoCleanup: The main program header files should not normally be installed.
Kevin Day [Tue, 13 Dec 2022 02:09:36 +0000 (20:09 -0600)]
Cleanup: The main program header files should not normally be installed.

23 months agoUpdate: Add main.h to every program.
Kevin Day [Tue, 13 Dec 2022 02:07:41 +0000 (20:07 -0600)]
Update: Add main.h to every program.

This should not be installed as it is for the program and not the library.
This just provides documentation for most cases.

23 months agoBugfix: _GNU_SOURCE should be wrapped in an ifndef.
Kevin Day [Mon, 12 Dec 2022 05:15:31 +0000 (23:15 -0600)]
Bugfix: _GNU_SOURCE should be wrapped in an ifndef.

23 months agoUpdate: Out of date build documentation.
Kevin Day [Mon, 12 Dec 2022 04:15:01 +0000 (22:15 -0600)]
Update: Out of date build documentation.

The "See: ..." files should now end in ".txt".

The directory structure for both the status project and the work directory have changed since this documentation was last modified.

Update documentation regarding running Featureless Make with no arguments.

Remove redundant "Alternatively..." documentation that is already described elsewhere.

23 months agoBugfix: The bootstrap script needs to support settings-specific built files.
Kevin Day [Mon, 12 Dec 2022 03:39:03 +0000 (21:39 -0600)]
Bugfix: The bootstrap script needs to support settings-specific built files.

23 months agoBugfix: The bootsrap script needs to treat -s/--settings as a possible path.
Kevin Day [Mon, 12 Dec 2022 03:27:55 +0000 (21:27 -0600)]
Bugfix: The bootsrap script needs to treat -s/--settings as a possible path.

23 months agoUpdate: Add fakefile for the FLL monolithic and level builds.
Kevin Day [Mon, 12 Dec 2022 03:10:14 +0000 (21:10 -0600)]
Update: Add fakefile for the FLL monolithic and level builds.

23 months agoBugfix: Incorrect directory path for header file.
Kevin Day [Mon, 12 Dec 2022 01:17:42 +0000 (19:17 -0600)]
Bugfix: Incorrect directory path for header file.

23 months agoCleanup: Rename files in status_code project.
Kevin Day [Mon, 12 Dec 2022 01:14:59 +0000 (19:14 -0600)]
Cleanup: Rename files in status_code project.

23 months agoFeature: Add 'import' Object to fakefile and settings specifications.
Kevin Day [Mon, 12 Dec 2022 00:40:30 +0000 (18:40 -0600)]
Feature: Add 'import' Object to fakefile and settings specifications.

This is important for building complex project structures and reducing the code redundancy.
To keep the logic and design simple, recursion is not allowed.

One can now create a base settings file that is imported by other settings files.
The same is true for fakefile files.

23 months agoCleanup: Fix styling, spelling, and wording mistakes in the specifications and docume...
Kevin Day [Mon, 12 Dec 2022 00:36:59 +0000 (18:36 -0600)]
Cleanup: Fix styling, spelling, and wording mistakes in the specifications and documentation.

23 months agoBugfix: The -h/--help is not describing backticks is missing and -f/--file is out...
Kevin Day [Sun, 11 Dec 2022 21:20:53 +0000 (15:20 -0600)]
Bugfix: The -h/--help is not describing backticks is missing and -f/--file is out of place.

23 months agoFeature: Add support for printing partial data with or without closing data in fss_write.
Kevin Day [Sun, 11 Dec 2022 03:58:49 +0000 (21:58 -0600)]
Feature: Add support for printing partial data with or without closing data in fss_write.

The "complete" "partial" FSS write enumaration settings still prints the end of Object or Content data.
This "partial" simply does not print the end of line characters.

Change the behavior to act like the newly added feature regarting "complete" "trim".
Provide parameters to toggle on printing of the closing data.

23 months agoFeature: Add support for "trim" in "complete" enumeration for FSS writing.
Kevin Day [Sun, 11 Dec 2022 03:57:21 +0000 (21:57 -0600)]
Feature: Add support for "trim" in "complete" enumeration for FSS writing.

There is now a "none" equivalent that performs a "trim".

23 months agoFeature: Add fll_program_print_error_parameter_cannot_use_with_without().
Kevin Day [Sun, 11 Dec 2022 03:56:01 +0000 (21:56 -0600)]
Feature: Add fll_program_print_error_parameter_cannot_use_with_without().

23 months agoCleanup: Remove accidentally created file.
Kevin Day [Sun, 11 Dec 2022 01:35:11 +0000 (19:35 -0600)]
Cleanup: Remove accidentally created file.

23 months agoUpdate: Redesign project structure to follow the "main" design used in fss_write.
Kevin Day [Sun, 11 Dec 2022 00:00:03 +0000 (18:00 -0600)]
Update: Redesign project structure to follow the "main" design used in fss_write.

This makes the program structure more consistent.
The structure being followed easily allows for a more object-oriented directory structure and design.
This design is more accurately closer to "progam-oriented" than "object-oriented" due to the structure revolving around a program.

The design of the code itself in fss_write is object-oriented like.
Use this code design for fss_status_code and status_code.
The other programs do not need to do this and have everything under the "main".

23 months agoUpdate: Remove unnecessary program_name and program_name_long variables.
Kevin Day [Sat, 10 Dec 2022 23:41:35 +0000 (17:41 -0600)]
Update: Remove unnecessary program_name and program_name_long variables.

The help printing functions are already per-sub-program-specific.

23 months agoUpdate: Centralize the error print function names.
Kevin Day [Sat, 10 Dec 2022 22:36:27 +0000 (16:36 -0600)]
Update: Centralize the error print function names.

This reduces repeated strings in the code.
A helper macro is used so that the individual code never needs to be changed if there are any changes to the array and the enumeration.

This reduces the binary file size.

23 months agoCleanup: Fix incorrect comments.
Kevin Day [Sat, 10 Dec 2022 21:05:34 +0000 (15:05 -0600)]
Cleanup: Fix incorrect comments.

23 months agoCleanup: Remove remaining fss_*_write programs.
Kevin Day [Sat, 10 Dec 2022 17:34:01 +0000 (11:34 -0600)]
Cleanup: Remove remaining fss_*_write programs.

These are now part of fss_write.

23 months agoUpdate: Finish updating fss_write.
Kevin Day [Sat, 10 Dec 2022 17:28:35 +0000 (11:28 -0600)]
Update: Finish updating fss_write.

Remove the unused files.
Simplify the processing callbacks using ternary operators.
Resolve the void_setting to the specific setting for easier to read code at the cost of allocation more memory (1 memory address variable per function).
Implement the ignore functionality.
Make sure the multiple Content is supported where appropriate.
The flags must not be reset at the start of the setting load so that main.c programs can pre-fill the flags.
Add all of the supported write program setting files.
Other miscellaneous changes and fixes.

The pipe data is lacking and will need future reviews and probably will need fixes.
The original fss_*_write pipe data is also lacking so I feel that it is fine to leave it alone for now to be addressed later on.

23 months agoSecurity: Invalid write in FSS functions and ensure a reset used length on error.
Kevin Day [Sat, 10 Dec 2022 16:28:24 +0000 (10:28 -0600)]
Security: Invalid write in FSS functions and ensure a reset used length on error.

The command that triggers this is "fss_basic_write -oc hi there".

An invalid write is happening due to not always performing the array size increase operations.
Update all FSS write functions with more thorough checks.
This problem is being obfuscated by the lossy allocation.

When errors happen the destination->used needs to be consistently reset to the original value on return.

Use the lossy allocation as well for allocation shwere the increase by is a raw digit.
In these specific cases use state.step_small rather than state.step_large.

Rename used_start to destination_used for improved consistency.

23 months agoUpdate: Add more notes to 'disable' about.txt documentation.
Kevin Day [Sat, 10 Dec 2022 01:14:51 +0000 (19:14 -0600)]
Update: Add more notes to 'disable' about.txt documentation.

23 months agoCleanup: Update the build disable process.
Kevin Day [Fri, 9 Dec 2022 05:07:50 +0000 (23:07 -0600)]
Cleanup: Update the build disable process.

23 months agoCleanup: Make changes to the build disable process documentation.
Kevin Day [Fri, 9 Dec 2022 05:04:21 +0000 (23:04 -0600)]
Cleanup: Make changes to the build disable process documentation.

23 months agoBugfix: _di_string_ascii_s_ is missing the _f.
Kevin Day [Fri, 9 Dec 2022 04:53:28 +0000 (22:53 -0600)]
Bugfix: _di_string_ascii_s_ is missing the _f.

23 months agoUpdate: Add mising _d in wrapping defines.
Kevin Day [Fri, 9 Dec 2022 05:01:10 +0000 (23:01 -0600)]
Update: Add mising _d in wrapping defines.

23 months agoUpdate: The define _di_f_array_t_ should be _di_f_array_length_t_.
Kevin Day [Fri, 9 Dec 2022 04:37:54 +0000 (22:37 -0600)]
Update: The define _di_f_array_t_ should be _di_f_array_length_t_.

23 months agoUpdate: The status code wrapping global constant string wrapping defines should end...
Kevin Day [Fri, 9 Dec 2022 04:20:01 +0000 (22:20 -0600)]
Update: The status code wrapping global constant string wrapping defines should end in _s.

23 months agoUpdate: The _di_compiler_attributes_ should e _di_compiler_attributes_d_.
Kevin Day [Fri, 9 Dec 2022 04:11:45 +0000 (22:11 -0600)]
Update: The _di_compiler_attributes_ should e _di_compiler_attributes_d_.

23 months agoBugfix: Some of the level checking defines have an "s" that should not be there.
Kevin Day [Fri, 9 Dec 2022 03:51:03 +0000 (21:51 -0600)]
Bugfix: Some of the level checking defines have an "s" that should not be there.

Fix incorrect _di_level_0_parameters_checking_, replacing it with _di_level_0_parameter_checking_.
Fix incorrect _di_level_2_parameters_checking_, replacing it with _di_level_2_parameter_checking_.

23 months agoUpdate: The status code wrapping defines should end in _e.
Kevin Day [Fri, 9 Dec 2022 03:38:09 +0000 (21:38 -0600)]
Update: The status code wrapping defines should end in _e.

23 months agoUpdate: Improve define structure, wrapping global static data in individual ifndef...
Kevin Day [Fri, 9 Dec 2022 02:37:42 +0000 (20:37 -0600)]
Update: Improve define structure, wrapping global static data in individual ifndef blocks.

Make the example "build/disable" defines scripts more precise to avoid getting defines used from other projects from being loaded in the wrong file.

Use per variable wrapping ifndef defines to have better fine-tuned control over the compiled code.

Fix any problems observed with syntax and naming.

23 months agoUpdate: More consistently follow the recent clarifications of the style guide for...
Kevin Day [Thu, 8 Dec 2022 06:09:56 +0000 (00:09 -0600)]
Update: More consistently follow the recent clarifications of the style guide for defines.

I discovered that the "_s" type of notation to be incredibly helpful while working on the stand alone projects.
I also noticed some inconsistency in the naming structure to some extent.

I updated and clarified the style guide and then updated the defines where needed.

This turned out to be more work than expect and has been rushed a little.
Look out for mistakes.

23 months agoUpdate: Style guide documentation.
Kevin Day [Thu, 8 Dec 2022 06:05:17 +0000 (00:05 -0600)]
Update: Style guide documentation.

I discovered the style guide is a bit out of date.
As I started cleaning it up I noticed that there is a lot more work needed.

This is a quick pass and more reviewing and fixes should follow.

23 months agoUpdate: Add stand alone firewall build.
Kevin Day [Thu, 8 Dec 2022 03:15:09 +0000 (21:15 -0600)]
Update: Add stand alone firewall build.

23 months agoBugfix: Add missing dependencies and remove incorrect library from firewall program.
Kevin Day [Thu, 8 Dec 2022 03:14:39 +0000 (21:14 -0600)]
Bugfix: Add missing dependencies and remove incorrect library from firewall program.

23 months agoUpdate: Remove unused "test" mode and add "clang" mode to stand alone builds.
Kevin Day [Thu, 8 Dec 2022 03:13:34 +0000 (21:13 -0600)]
Update: Remove unused "test" mode and add "clang" mode to stand alone builds.

23 months agoUpdate: The disable defines files need to be updated when defines change.
Kevin Day [Thu, 8 Dec 2022 00:38:21 +0000 (18:38 -0600)]
Update: The disable defines files need to be updated when defines change.

23 months agoUpdate: The fake stand alone build defines.
Kevin Day [Thu, 8 Dec 2022 00:35:49 +0000 (18:35 -0600)]
Update: The fake stand alone build defines.

Redesign to match the more recent stand alone config.h structure.

This is cherry-picked from 0.6 branch for consistency but another update is going to be necessary.

23 months agoCleanup: Add updated type and add commented out status codes.
Kevin Day [Thu, 8 Dec 2022 00:34:44 +0000 (18:34 -0600)]
Cleanup: Add updated type and add commented out status codes.

The status codes should always be present for consistency between programs despite these being stand alone.

23 months agoUpdate: The ifndef wrappers should end in _t_ to represent it wrapping a type.
Kevin Day [Thu, 8 Dec 2022 00:33:45 +0000 (18:33 -0600)]
Update: The ifndef wrappers should end in _t_ to represent it wrapping a type.

23 months agoCleanup: Remove random '_f' in ifndef define.
Kevin Day [Wed, 7 Dec 2022 05:59:30 +0000 (23:59 -0600)]
Cleanup: Remove random '_f' in ifndef define.

23 months agoCleanup: Update the stand alone utf8 to match how the byte_dump stand alone is designed.
Kevin Day [Wed, 7 Dec 2022 05:54:18 +0000 (23:54 -0600)]
Cleanup: Update the stand alone utf8 to match how the byte_dump stand alone is designed.

23 months agoBugfix: The private is_zero_width function is also needed by the is_graph functions.
Kevin Day [Wed, 7 Dec 2022 05:53:37 +0000 (23:53 -0600)]
Bugfix: The private is_zero_width function is also needed by the is_graph functions.

23 months agoCleanup: Remove random '_f' added to ifndef define.
Kevin Day [Wed, 7 Dec 2022 05:52:59 +0000 (23:52 -0600)]
Cleanup: Remove random '_f' added to ifndef define.

23 months agoUpdate: Wrap the conversion digits defines in _di_f_conversion_digits_d_.
Kevin Day [Wed, 7 Dec 2022 05:01:23 +0000 (23:01 -0600)]
Update: Wrap the conversion digits defines in _di_f_conversion_digits_d_.

Also remove the extra _di_f_type_number_64_t_ from the build disable defines.

23 months agoBugfix: Add missing ifdefs for f_file_stat() and f_file_stat_at().
Kevin Day [Wed, 7 Dec 2022 04:40:11 +0000 (22:40 -0600)]
Bugfix: Add missing ifdefs for f_file_stat() and f_file_stat_at().

23 months agoUpdate: Add pre-built define files for stand alone use.
Kevin Day [Wed, 7 Dec 2022 04:09:40 +0000 (22:09 -0600)]
Update: Add pre-built define files for stand alone use.

Use these per-project files for adding a complete list of functions, structures, and macros with each ifdef define block disabled.

23 months agoCleanup: The static inline functions are being included when the function they call...
Kevin Day [Wed, 7 Dec 2022 04:06:50 +0000 (22:06 -0600)]
Cleanup: The static inline functions are being included when the function they call is not.

Wrap the static inline functions with the appropriate wrapping defines.

23 months agoCleanup: Update stand alone config.h files and add an additional comment.
Kevin Day [Wed, 7 Dec 2022 03:25:27 +0000 (21:25 -0600)]
Cleanup: Update stand alone config.h files and add an additional comment.

23 months agoBugfix: The type_array is probably a dependency for most of these.
Kevin Day [Wed, 7 Dec 2022 03:24:07 +0000 (21:24 -0600)]
Bugfix: The type_array is probably a dependency for most of these.

Almost everything is using an array from f_type_array.
Add this dependency to all programs rather than investigating every case.

23 months agoCleanup: The utf8 stand alone program does not need the libcap.so.
Kevin Day [Wed, 7 Dec 2022 03:23:09 +0000 (21:23 -0600)]
Cleanup: The utf8 stand alone program does not need the libcap.so.

23 months agoBugfix: Incorrect ifndef defines for some functions and structures.
Kevin Day [Wed, 7 Dec 2022 03:20:29 +0000 (21:20 -0600)]
Bugfix: Incorrect ifndef defines for some functions and structures.

The _di_string_ascii_s_ is incorrect and should instead be _di_f_string_ascii_s_.

These have been exposed while building the stand alone which is very sensitive to the defines.

23 months agoUpdate: Add support for backtick quoting for IKI.
Kevin Day [Tue, 6 Dec 2022 03:59:24 +0000 (21:59 -0600)]
Update: Add support for backtick quoting for IKI.

Comply with the recent addition to the IKI specification that designates backticks as a quote alternative to single and double quotes.

Fix several inconsistencies observed, such as "quoted" vs "quote".

The code is inconsistently using a type code and a literal character for passing the desired quote.
This is probably a long lost incomplete refactor.
Change all of the FSS code to accept the character as a uint8_t.
Get rid of the f_fss_quote_t and related, replacing them with uint8_t.

Get rid of the f_fss_delimit_* macros.
These are redundant and it is simpler just to use the f_fss_* variants.

Rename F_fss_delimit_placeholder_s to F_string_placeholder_s (and similar).

The flags for single and double quotes are not needed when the charaacter is being explicitly set.

23 months agoBugfix: Incorrect parameter passed to iki_read_print_help().
Kevin Day [Tue, 6 Dec 2022 03:48:31 +0000 (21:48 -0600)]
Bugfix: Incorrect parameter passed to iki_read_print_help().