]> Kevux Git Server - fll/log
fll
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().

23 months agoUpdate: Add support for backtick quoting for IKI.
Kevin Day [Tue, 6 Dec 2022 01:41:12 +0000 (19:41 -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.

23 months agoUpdate: FSS and IKI specification now supports backticks for quoting similar to singl...
Kevin Day [Tue, 6 Dec 2022 01:11:09 +0000 (19:11 -0600)]
Update: FSS and IKI specification now supports backticks for quoting similar to single and double quotes.

The 0.6 version is not having this support added to prevent API breakage.
This should be supported in 0.7 and greater.

23 months agoBugfix: Invalid print of character when a placeholder should be printed in byte_dump.
Kevin Day [Tue, 6 Dec 2022 00:33:44 +0000 (18:33 -0600)]
Bugfix: Invalid print of character when a placeholder should be printed in byte_dump.

The following is happening:
  # clear ; echo -n "xa" | byte_dump -wt 2 && echo -n "∩" | byte_dump -wt 2 && echo -n "∩xa" | byte_dump -wt 2

  Piped Byte Dump: (in Hexidecimal)
  0000000000000000  78 61  | x a  |

  Piped Byte Dump: (in Hexidecimal)
  0000000000000000  e2 88  | ∩    |
  0000000000000001  a9     | ∩    |

  Piped Byte Dump: (in Hexidecimal)
  0000000000000000  e2 88  | ∩    |
  0000000000000001  a9 78  |   x  |
  0000000000000002  61     | a    |

In the second case the line 0000000000000001 should not print the string '| ∩    |'.
This is happening because the character is not being properly reset in the situation where the overflow happens at the end of input.

With this change the results should now be:
  # clear ; echo -n "xa" | byte_dump -wt 2 && echo -n "∩" | byte_dump -wt 2 && echo -n "∩xa" | byte_dump -wt 2

  Piped Byte Dump: (in Hexidecimal)
  0000000000000000  78 61  | x a  |

  Piped Byte Dump: (in Hexidecimal)
  0000000000000000  e2 88  | ∩    |
  0000000000000001  a9     |      |

  Piped Byte Dump: (in Hexidecimal)
  0000000000000000  e2 88  | ∩    |
  0000000000000001  a9 78  |   x  |
  0000000000000002  61     | a    |

Perform a trivial cleanup/optimization where inverse of bytes is being checked for.
This is pointless when there is an else block.
Reverse the order and remove the "not" operator.

23 months agoProgress: Continue program related work, updating fss_write.
Kevin Day [Mon, 5 Dec 2022 01:02:32 +0000 (19:02 -0600)]
Progress: Continue program related work, updating fss_write.

Rename F_supported to F_supported and F_supported_not to F_support_not to avoid past tense.

Add a static empty range to make initialization assignment even easier.

For fss_write:
- Add most of the ignore range handling.
- Add support for the multiple Content per Object and handle errors for standards that do not support this.
- Lost of clean up and simplifications.
- Add a lot of fixme and todo comments for things not yet completed.

There is still a lot to do with fss_write.
The common write functionality is mostly done.
The standard specific functionality is not written for anything except FSS Payload.

23 months agoProgress: Continue program related work, updating fss_write.
Kevin Day [Sun, 4 Dec 2022 00:39:56 +0000 (18:39 -0600)]
Progress: Continue program related work, updating fss_write.

Minor improvement to comments and specifications.

I've identified the structure I wanted and this is progress towards implementing the fss_write code across all currently supported formats.

23 months agoCleanup: Remove fss_payload_write.
Kevin Day [Sat, 3 Dec 2022 01:30:28 +0000 (19:30 -0600)]
Cleanup: Remove fss_payload_write.

This is now part of fss_write.

23 months agoProgress: Continue program related work, updating fss_write.
Kevin Day [Fri, 2 Dec 2022 04:29:36 +0000 (22:29 -0600)]
Progress: Continue program related work, updating fss_write.

Fix minor spacing problem where the color context should be closed near non-whitespace whenever possible.

Add missing word "error" in some comments.

Continue working in fss_write.
This gets the fss_payload_write program compiling.
The installer by default doesn't handle all of the programs.
Where before './install.sh -w /tmp/fll/' used to work now the following are all needed:
- ./install.sh -w /tmp/fll/
- ./install.sh -w /tmp/fll/ -s data/build/settings.main
- ./install.sh -w /tmp/fll/ -s data/build/settings.payload

23 months agoProgress: Continue program related work, updating fss_write.
Kevin Day [Wed, 30 Nov 2022 04:59:01 +0000 (22:59 -0600)]
Progress: Continue program related work, updating fss_write.

Relocate help and version flag assignment checks across programs.

Setup individual help printing for each supported "--as" parameter in fss_write.

23 months agoProgress: Continue program related work, updating fss_write.
Kevin Day [Tue, 29 Nov 2022 03:38:03 +0000 (21:38 -0600)]
Progress: Continue program related work, updating fss_write.

The work continues, focusing on preparing fss_write for handling all currently written fss_*_write programs.
This should also pave the way for supporting other fss-???? standards than are currently directly represented.

The individual write programs will be linked to the same library fss_write is.
These individual write programs will act as if they were passed the "--as XXXX".
For example, fss_basic_list would operate the same as "fss_write -a fss-0002".

Some of the programs may have vastly different functionality than others.
In any case that code can be shared that code will be shared.

23 months agoUpdate: Fix and improve FSS unit test regarding zero-width.
Kevin Day [Fri, 25 Nov 2022 01:11:29 +0000 (19:11 -0600)]
Update: Fix and improve FSS unit test regarding zero-width.

Recent changes to the Unicode functions regarding zero-width improved or changed how what is designated as a zero-width character.
The test is failing due to this change.

Update the test to treat the tested character as zero-width.
Add an additional test condition to test the stop range.

2 years agoProgress: Stub out the fss_write program.
Kevin Day [Wed, 23 Nov 2022 03:16:20 +0000 (21:16 -0600)]
Progress: Stub out the fss_write program.

The fss_write program is going to replace all of the other fss_X_write programs.
This is the initial setup and may not be the final structure.
I still have some fiddlign to do to figure out how I want them to share code.

The final result is intended to have the fss_write being capable of compiling all of the fss_X_write programs as well as the fss_write program.

2 years agoRegression: Improper execution when no arguments and no pipe are passed to fake.
Kevin Day [Wed, 23 Nov 2022 02:03:31 +0000 (20:03 -0600)]
Regression: Improper execution when no arguments and no pipe are passed to fake.

At some point in time the default for executing without a "clean", "make", or "build" stopped working.
This probably happened when I fixed the empty pipe bug.

The default should run the "make" operation.

2 years agoSecurity: Invalid access when calling fake without 'make' or 'build'.
Kevin Day [Wed, 23 Nov 2022 01:43:16 +0000 (19:43 -0600)]
Security: Invalid access when calling fake without 'make' or 'build'.

This is caused by the F_data_not return result not being processed in some of the fl_fss functions.

Additional changes:
- Make the return status constant.
- The status is being returned regardless in some cases so remove the effectively redundant lines of code.
- Combined the additional if condition blocks together.

2 years agoUpdate: All projects should have fakefiles.
Kevin Day [Tue, 22 Nov 2022 03:14:44 +0000 (21:14 -0600)]
Update: All projects should have fakefiles.

This is an oversight and neither a bug nor a feature.

The FLL is designed to be built using the build settings.
The flagship program fake, should still be directly supported and fakefiles should be available.
Most of these fakefiles just trigger the build settings.

2 years agoUpdate: Change the console structure to use bits and prepare console for future changes.
Kevin Day [Sat, 19 Nov 2022 23:20:21 +0000 (17:20 -0600)]
Update: Change the console structure to use bits and prepare console for future changes.

Fix bug whee the level_0 console public functions do not directly call each other and should instead call private functions.

Change the console types to f_console_flag_t and f_console_result_t.

Rather than using the full integer value instead use bits for both the flags and the results.

Rename "enable" to "normal".
Rename "disable" to "inverse".
Rename "other" and "additional" to "simple".
Add "complex" for planned future use.

All equivalence checks are changed to bitwise checks.

2 years agoUpdate: The stand alone settings need to use the updated string and utf source files.
Kevin Day [Sat, 19 Nov 2022 23:18:53 +0000 (17:18 -0600)]
Update: The stand alone settings need to use the updated string and utf source files.

2 years agoCleanup: Remove unimplemented function.
Kevin Day [Fri, 18 Nov 2022 00:41:39 +0000 (18:41 -0600)]
Cleanup: Remove unimplemented function.

2 years agoRegression: Wrong bitwise operator used.
Kevin Day [Thu, 17 Nov 2022 05:13:54 +0000 (23:13 -0600)]
Regression: Wrong bitwise operator used.

The commit ef89fafafe125e0afbf83476f255f52e176a9c72 has a mistake where the wrong bitwise operation is used.

2 years agoProgress: Continue program related work.
Kevin Day [Thu, 17 Nov 2022 04:39:45 +0000 (22:39 -0600)]
Progress: Continue program related work.

Clear the setting flags when calling the settings load function.

Clean up some print function inconsistencies.