]> Kevux Git Server - fll/log
fll
4 years agoCleanup: remove spurious name in typedef struct declaration
Kevin Day [Sat, 2 May 2020 04:22:48 +0000 (23:22 -0500)]
Cleanup: remove spurious name in typedef struct declaration

4 years agoUpdate: use f_string_length instead of uint8_t for width_max in UTF-8 functions
Kevin Day [Sat, 2 May 2020 04:22:06 +0000 (23:22 -0500)]
Update: use f_string_length instead of uint8_t for width_max in UTF-8 functions

4 years agoCleanup: restructure bash script cleanup process
Kevin Day [Fri, 1 May 2020 04:56:26 +0000 (23:56 -0500)]
Cleanup: restructure bash script cleanup process

Explicitly return 0 in main.

The cleanup function can be called within the functions being removed.
This is handy in that the cleanup no longer has to be called after the main function.
The error code can then be properly returned without being lost due to the cleanup function.
Once this is done, return can be used instead of exit (which is generally safer).

4 years agoCleanup: whitespace tweaks and use define for printing long symbol
Kevin Day [Fri, 1 May 2020 03:40:01 +0000 (22:40 -0500)]
Cleanup: whitespace tweaks and use define for printing long symbol

4 years agoUpdate: implement missing serialized functions and fix bugs
Kevin Day [Fri, 1 May 2020 03:36:45 +0000 (22:36 -0500)]
Update: implement missing serialized functions and fix bugs

Implement fl_unserialize_simple() and fl_unserialize_simple_get().

The last character in the last string in the unserialized array gets cut off.
- This happened because the stopping point was incorrectly compensating for the splitter character for the last character in the string.

The width (UTF-8 character width) is not part of the locations size.

4 years agoFeature: implement UTF-8 special character check types (partial-stubs)
Kevin Day [Thu, 30 Apr 2020 05:21:07 +0000 (00:21 -0500)]
Feature: implement UTF-8 special character check types (partial-stubs)

Types are:
- alpha
- alpha-numeric
- numeric
- word (alpha-numeric and underscore '_')
- word-dash (alpha-numeric, underscore '_', and dash '-')

The ASCII portion of this implemented and should work.
The UTF-8/Unicode portion is completely unimplemented (aka: a stub).

4 years agoFeature: add parameter rip functions for ripping console parameters into an array...
Kevin Day [Thu, 30 Apr 2020 02:56:00 +0000 (21:56 -0500)]
Feature: add parameter rip functions for ripping console parameters into an array of strings

4 years agoCleanup: add missing parameter documentation and swap mash with trim in names
Kevin Day [Thu, 30 Apr 2020 02:53:04 +0000 (21:53 -0500)]
Cleanup: add missing parameter documentation and swap mash with trim in names

The additional parameter documentation is missing.

Be consistent with other functions in how the string '_trim' is appended to function names.

4 years agoBugfix: The address has to exist to use, all references with address of 0 are invalid...
Kevin Day [Thu, 30 Apr 2020 02:50:56 +0000 (21:50 -0500)]
Bugfix: The address has to exist to use, all references with address of 0 are invalid parameters

Oops.

4 years agoFeature: add functions for combining the additional console parameter together
Kevin Day [Wed, 29 Apr 2020 04:04:15 +0000 (23:04 -0500)]
Feature: add functions for combining the additional console parameter together

4 years agoRefactor: fll_program_process_parameters to fll_program_parameter_process
Kevin Day [Wed, 29 Apr 2020 03:22:54 +0000 (22:22 -0500)]
Refactor: fll_program_process_parameters to fll_program_parameter_process

Pave the way for additional fll_program_parameter_* functions.

4 years agoUpdate: add missing dependency to f_color
Kevin Day [Wed, 29 Apr 2020 03:22:32 +0000 (22:22 -0500)]
Update: add missing dependency to f_color

4 years agoCleanup: move comment into correct position
Kevin Day [Wed, 29 Apr 2020 03:01:50 +0000 (22:01 -0500)]
Cleanup: move comment into correct position

4 years agoFeature: implement append and prepend string functions
Kevin Day [Wed, 29 Apr 2020 02:57:19 +0000 (21:57 -0500)]
Feature: implement append and prepend string functions

4 years agoFeature: implement string mash support
Kevin Day [Tue, 28 Apr 2020 05:46:11 +0000 (00:46 -0500)]
Feature: implement string mash support

String mashing is a way to append a string to another with a glue string in between.
The idea is that a space could be placed between the two strings.
A string is primarily used as the mash character so that UTF-8 can be natively supported as the glue character.

4 years agoUpdate: only resize if necessary when processing string
Kevin Day [Tue, 28 Apr 2020 04:15:56 +0000 (23:15 -0500)]
Update: only resize if necessary when processing string

Avoid unnecessary work.

4 years agoUpdate: short variable name, reorganize function, fix types
Kevin Day [Mon, 27 Apr 2020 02:13:28 +0000 (21:13 -0500)]
Update: short variable name, reorganize function, fix types

The use of parameter_counter ended up being very wordy with "parameters.parameter[parameter_counter]".
- Change this to 'i', since that is unused and traditional.

Reorganize the additional parameter processing loop.

Use uint8_t instead of "unsigned short" for more consistency.
The width_max should be f_number_unsigned and not "unsigned short".

Add additional documentation for console ids in regards to what "empty" means.

4 years agoFeature: add fl_console_parameter_to_string_dynamic_directory to fl_console
Kevin Day [Sun, 26 Apr 2020 22:12:27 +0000 (17:12 -0500)]
Feature: add fl_console_parameter_to_string_dynamic_directory to fl_console

Provide a console argument handler for parsing out a directory path and returning it in a dynamic string.

4 years agoCleanup: fix include ordering
Kevin Day [Sun, 26 Apr 2020 22:11:26 +0000 (17:11 -0500)]
Cleanup: fix include ordering

4 years agoBugfix: f_file_not_found should be considered an error
Kevin Day [Sun, 26 Apr 2020 22:11:07 +0000 (17:11 -0500)]
Bugfix: f_file_not_found should be considered an error

4 years agoBugfix: remove null pointer check from file stat
Kevin Day [Sun, 26 Apr 2020 07:14:39 +0000 (02:14 -0500)]
Bugfix: remove null pointer check from file stat

Do not assume that stat was passed as an uninitialized pointer.
In the case of passing a class by reference, the stat pointer would be non-zero.
This pointer is not dynamically allocated and therefore not an error.
The null pointer check is therefore invalid for these cases.

4 years agoUpdate: Ensure internal visibility is used in private functions and fix header incons...
Kevin Day [Sun, 26 Apr 2020 05:26:57 +0000 (00:26 -0500)]
Update: Ensure internal visibility is used in private functions and fix header inconsistency in status code

4 years agoCleanup: fix wording in help in regards to special options
Kevin Day [Sun, 26 Apr 2020 04:23:34 +0000 (23:23 -0500)]
Cleanup: fix wording in help in regards to special options

4 years agoCleanup: ensure help sentences end in period and use "build" instead of "built"
Kevin Day [Sun, 26 Apr 2020 04:19:32 +0000 (23:19 -0500)]
Cleanup: ensure help sentences end in period and use "build" instead of "built"

4 years agoCleanup: the standard print help functions only need color context
Kevin Day [Sun, 26 Apr 2020 04:00:43 +0000 (23:00 -0500)]
Cleanup: the standard print help functions only need color context

Passing the entire program data structure is not necessary.
Just pass the color context, this simplifies the code.

4 years agoCleanup: use correct wording in invalid parameter message
Kevin Day [Sun, 26 Apr 2020 03:37:09 +0000 (22:37 -0500)]
Cleanup: use correct wording in invalid parameter message

4 years agoFeature: add "other" parameter support in program print
Kevin Day [Sun, 26 Apr 2020 03:30:19 +0000 (22:30 -0500)]
Feature: add "other" parameter support in program print

Printing support for short and long options exist but I never created one for other option.

4 years agoUpdate: implement private f_utf functions, add missing function, and impove is_graph
Kevin Day [Sat, 25 Apr 2020 20:35:06 +0000 (15:35 -0500)]
Update: implement private f_utf functions, add missing function, and impove is_graph

The public functions should exist in isolation of each other, so the private functions are necessary.

f_utf_is_valid() is missing.

The is_graph functions should handle zero-width as well.

4 years agoFeature: enable support default, protected, and hidden GCC visibility macros
Kevin Day [Sat, 25 Apr 2020 19:04:41 +0000 (14:04 -0500)]
Feature: enable support default, protected, and hidden GCC visibility macros

4 years agoUpdate: redesign byte_dump --last to be inclusive
Kevin Day [Sat, 25 Apr 2020 17:46:36 +0000 (12:46 -0500)]
Update: redesign byte_dump --last to be inclusive

The --last parameter should be inclusive for consistency with the rest of the project, namely FSS.

By redesigning the --last to internally be represented as a relative offset, the behavior can be simplified.
Doing this also adds support for potential future designs where a --length parameter may be provided that is a relative size parameter instead of an absolute one like --last.

4 years agoBugfix: --last does not count correctly when 2-byte or more characters exist
Kevin Day [Sat, 25 Apr 2020 17:23:20 +0000 (12:23 -0500)]
Bugfix: --last does not count correctly when 2-byte or more characters exist

The last parameter does not take into consideration UTF-8 widths.
Redesign counting to accommodate the 2-byte, 3-byte, and 4-byte character widths.

4 years agoCleanup: refactor max_width to width_max
Kevin Day [Sat, 25 Apr 2020 17:15:04 +0000 (12:15 -0500)]
Cleanup: refactor max_width to width_max

Use the newer naming practices.
These kinds of changes will be performed as I notice them.

4 years agoBugfix: conversion of char to utf character is not working
Kevin Day [Sat, 25 Apr 2020 04:12:27 +0000 (23:12 -0500)]
Bugfix: conversion of char to utf character is not working

This is the result of a simple typo, the 'to' should be a 'from' in the f_macro_utf_character_*_char_* calls.

Add additional safety masks to the f_macro_utf_character_*_char_* macros.

4 years agoUpdate: add initial handling of zero-width space in FSS projects
Kevin Day [Sat, 25 Apr 2020 01:54:05 +0000 (20:54 -0500)]
Update: add initial handling of zero-width space in FSS projects

UTF-8 zero-width characters have the potential for being combining characters.
In such cases, the combiner/joiner should be considered part of what is being combined.
That is a combiner/joiner before a graph should be treated as a graph.
A combiner/joiner before a whitespace should be treated as a whitespace.

Disclaimer: I suspect that this will eventually need to be broken down to handle each specific case.
A combiner/joiner on whitespace that results in rendering a printable/visible character would be a violation of the whitespace design principles of FSS.
Further investigation is needed and will likely require changes.

Add appropriate @todo for further development of this functionality.

Rename max_width to width_max to follow newer practices.

4 years agoFeature: add f_string_length_size max of (uint64_t - 4)
Kevin Day [Sat, 25 Apr 2020 00:39:35 +0000 (19:39 -0500)]
Feature: add f_string_length_size max of (uint64_t - 4)

The goal here is that any string processing must be able to add a given UTF-8 width (4-byte) and not oveflow.
Much of the code in this project will not check this as it should be done so at a higher level (performance reasons).
The ideal time is that when allocating some string, always allocate at max f_string_length_size.

4 years agoUpdate: rename whitespace functions to space functions and consider zero-width
Kevin Day [Fri, 24 Apr 2020 03:32:59 +0000 (22:32 -0500)]
Update: rename whitespace functions to space functions and consider zero-width

Whitespace is now being used more explicitly in regards to UTF-8.

Zero-width consideratons added, but I think more work is needed in this regard.

4 years agoUpdate: add missing zero-width UTF-8 functions
Kevin Day [Fri, 24 Apr 2020 03:31:40 +0000 (22:31 -0500)]
Update: add missing zero-width UTF-8 functions

Also update documentation comments.

4 years agoUpdate: Make classic mode more like hexdump
Kevin Day [Fri, 24 Apr 2020 03:07:27 +0000 (22:07 -0500)]
Update: Make classic mode more like hexdump

The hexdump program prints periods more than what is currently done.
Change this behavior to increase the use of non-colored periods.

The -p/--placeholder parameter is still used, so the combination of --classic and -p will have closer results to hexdump.

4 years agoUpdate: byte_dump should utilize color2 functions and handle zero-width characters
Kevin Day [Fri, 24 Apr 2020 02:50:44 +0000 (21:50 -0500)]
Update: byte_dump should utilize color2 functions and handle zero-width characters

4 years agoUpdate: further clarify fss specification rules in regards to leading/trailing whites...
Kevin Day [Fri, 24 Apr 2020 02:49:14 +0000 (21:49 -0500)]
Update: further clarify fss specification rules in regards to leading/trailing whitespace in object names

4 years agoFeature: add color print2 functions
Kevin Day [Fri, 24 Apr 2020 02:46:14 +0000 (21:46 -0500)]
Feature: add color print2 functions

It is very common to have colors that are bolded.
Adding a new function to handle to color codes so that bold can be used makes sense to me.

I do not like using numbers in function names, but in this exceptional case, it makes sense.

4 years agoCleanup: remove extra newline
Kevin Day [Fri, 24 Apr 2020 02:45:56 +0000 (21:45 -0500)]
Cleanup: remove extra newline

4 years agoBugfix: fix UTF-8 whitespace detection and provide zero-width detection function
Kevin Day [Fri, 24 Apr 2020 02:43:01 +0000 (21:43 -0500)]
Bugfix: fix UTF-8 whitespace detection and provide zero-width detection function

The whitespace detection codes for UTF-8 were incorrect.

Non-printing characters, called zero-width, are not whitespace.
Move them out of the whitespace detection and provide a new function for detecting zero-width.

Handle additional UTF-8 whitespace character codes that I had previously missed.

4 years agoFeature: implement support for the -T/--trim parameter
Kevin Day [Thu, 23 Apr 2020 01:40:50 +0000 (20:40 -0500)]
Feature: implement support for the -T/--trim parameter

Provide support for trimming the object names on input and output.

After implementing this I suddenly remember that the standard might require that the whitespace before and after a valid object name are to be ignored.
This may be removed in the future and fixed in the library.
Additional investigation on how I want to handle this needs to happen first.

The standard is originally designed around ASCII, which only ASCII whitespace is considered whitespace.
This will probably have to be fixed to match the additional goals of the project in terms of whitespace handling.

4 years agoUpdate: add simple documentation about private functions
Kevin Day [Wed, 22 Apr 2020 03:58:08 +0000 (22:58 -0500)]
Update: add simple documentation about private functions

4 years agoBugfix: correctly calculate end-- with UTF-8 and use correct function name
Kevin Day [Wed, 22 Apr 2020 03:50:15 +0000 (22:50 -0500)]
Bugfix: correctly calculate end-- with UTF-8 and use correct function name

When walking back from the end of the string and handling possible UTF-8 characters, the byte width needs to be properly handled.

The functions in these projects are fl_ and not f_.

Includes minor code cleanup.

4 years agoFeature: expand string functions and utf-8 string functions
Kevin Day [Wed, 22 Apr 2020 02:00:18 +0000 (21:00 -0500)]
Feature: expand string functions and utf-8 string functions

The need for this was realized while developing this trim parameter feature.
This has been added as is for commit isolation and may be incomplete.

This utilizes private functions to reduce duplicate code.
While the use of private functions is generally unwanted in this project, this specific case seems to be an exception.

Add rip functions.
Add non-dynamic equivalent of some string functions.
Add trim functions.

4 years agoUpdate: the print functions should increment by utf-8 char width and not 1
Kevin Day [Mon, 20 Apr 2020 04:53:54 +0000 (23:53 -0500)]
Update: the print functions should increment by utf-8 char width and not 1

The UTF-8 character may be of a width greater than 1.
The loop must increment by this width and not the literal 1.

4 years agoCleanup: ensure macro_ is pefixed in string macros
Kevin Day [Mon, 20 Apr 2020 04:51:44 +0000 (23:51 -0500)]
Cleanup: ensure macro_ is pefixed in string macros

4 years agoUpdate: experimentally switch to uint8_t to UTF-8 character processing
Kevin Day [Mon, 20 Apr 2020 04:48:41 +0000 (23:48 -0500)]
Update: experimentally switch to uint8_t to UTF-8 character processing

4 years agoUpdate: memory simple delete and simple destroy loop tweaks
Kevin Day [Mon, 20 Apr 2020 04:44:28 +0000 (23:44 -0500)]
Update: memory simple delete and simple destroy loop tweaks

Move the conditional outside of the loop for theoretical performance improvements.

4 years agoFeature: allow trimmed output
Kevin Day [Sun, 8 Mar 2020 23:16:38 +0000 (18:16 -0500)]
Feature: allow trimmed output

New functions added for trimming leading and trailing whitespace from some string.

4 years agoSecurity: fix memory leaks in FSS read programs
Kevin Day [Fri, 28 Feb 2020 04:30:54 +0000 (22:30 -0600)]
Security: fix memory leaks in FSS read programs

4 years agoCleanup: minor changes in f_print
Kevin Day [Fri, 28 Feb 2020 04:27:00 +0000 (22:27 -0600)]
Cleanup: minor changes in f_print

4 years agoCleanup: FLL errors is now FLL status
Kevin Day [Fri, 28 Feb 2020 04:25:40 +0000 (22:25 -0600)]
Cleanup: FLL errors is now FLL status

4 years agoCleanup: add missing parameter documentation for f_print_string()
Kevin Day [Wed, 26 Feb 2020 03:34:11 +0000 (21:34 -0600)]
Cleanup: add missing parameter documentation for f_print_string()

4 years agoProgress: continue development of FSS Extended List
Kevin Day [Tue, 25 Feb 2020 03:28:38 +0000 (21:28 -0600)]
Progress: continue development of FSS Extended List

In particular:
- Remove excessive fl_fss_increment_buffer() uses.
  - The removed code may be a good idea long term, but for now use a simpler and more efficient approach.
- Fix some mistakes in the slash delimiter handling.
- Begin the initial work for recursively (or so..) processing the nested lists.

4 years agoUpdate: add f_unterminated* status codes and fix f_unterminated_nest status codes
Kevin Day [Wed, 19 Feb 2020 01:51:17 +0000 (19:51 -0600)]
Update: add f_unterminated* status codes and fix f_unterminated_nest status codes

Add basic f_unterminated status codes just like f_unterminated_group status codes.
Fix missing status code conversions for f_unterminated_nest.

4 years agoCleanup: enable debugging by default for level and monolithic builds, just like with...
Kevin Day [Thu, 9 Jan 2020 02:54:33 +0000 (20:54 -0600)]
Cleanup: enable debugging by default for level and monolithic builds, just like with individual builds

4 years agoProgress: continue working on fss_extended_list
Kevin Day [Wed, 8 Jan 2020 03:44:33 +0000 (21:44 -0600)]
Progress: continue working on fss_extended_list

4 years agoCleanup: add period at end of sentences
Kevin Day [Wed, 8 Jan 2020 03:44:07 +0000 (21:44 -0600)]
Cleanup: add period at end of sentences

5 years agoUpdate: build level and monolithic fixes and improvements
Kevin Day [Sat, 23 Nov 2019 04:56:20 +0000 (22:56 -0600)]
Update: build level and monolithic fixes and improvements

Add missing library: fll_file.

Make it even easier to compile against "level" and "monolithic" build processes by providing "--level" and "--monolithic" parameters to the generate.sh script and associated settings files.

Make sure package.sh clears other build modes (when --level is specified, make sur --individual and --monolithic modes are not set).

5 years agoUpdate: implement *_delete_simple() and *_destroy_simple() macros and related changes
Kevin Day [Fri, 22 Nov 2019 02:24:43 +0000 (20:24 -0600)]
Update: implement *_delete_simple() and *_destroy_simple() macros and related changes

I do not want a *_delete() and *_destroy() that doesn't provide the ability to handle a status code.
However, in practice, the *_delete() and *_destroy() macros rarely needed the status response checked.
Additional f_status variables were created only to be provided for the status parameter of the stated macros.
This is a waste.

This provides and utilizes alternative *_delete() and *_destroy() macros called *_delete_simple() and *_destroy_simple().
These simple macros do not accept or process the status code.
The resulting code is simpler and easier.

I am on the fence whether or not to throw away the *_delete() and *_destroy() macros that utilize a status parameter.
Future versions may or may not replace the *_delete() and *_destroy() with the *_delete_simple() and *_destroy_simple() macros.

Update *_delete() and *_destroy() macros as needed.

5 years agoCleanup: fix spelling of occurred.
Kevin Day [Wed, 20 Nov 2019 02:21:26 +0000 (20:21 -0600)]
Cleanup: fix spelling of occurred.

5 years agoFeature: add new project fll_file
Kevin Day [Wed, 20 Nov 2019 02:21:07 +0000 (20:21 -0600)]
Feature: add new project fll_file

This project contains the function fll_file_error_print()  for handling common error output.

5 years agoRefactor: make status codes more consistent
Kevin Day [Wed, 20 Nov 2019 01:43:54 +0000 (19:43 -0600)]
Refactor: make status codes more consistent

Better follow the naming paradigm where reasonably possible.
Use more consistent naming, which should also help with reducing the changes of enum to function name conflicts.
Alphabetically organize status codes per group.

5 years agoUpdate: rewrite status code functions and related changes
Kevin Day [Wed, 20 Nov 2019 01:00:00 +0000 (19:00 -0600)]
Update: rewrite status code functions and related changes

Fix several problems with the status code processing, namely missing or incomplete data.
Add status code max size defines.
Add missing "#ifndef _di_f_status_codes_" to status codes.
Update cases where 'error' was not renamed to 'code' in status code sources.
Add missing status codes.
Fix incorrect define, "#ifdef _di_fl_status_invalid_" should instead be "#ifndef _di_fl_status_invalid_".
Fix incorrect sizes associated with status code output strings.
Prepare pipe support (not yet implemented).

Ensure f_utf is included and linked in all appriopriate dependencies.
Treat f_utf as a core level_0 project and update documentation accodingly.

Relocate fl_console_parameter_process() into f_console_parameter_process().

5 years agoCleanup: comments in f_utf
Kevin Day [Mon, 18 Nov 2019 01:27:39 +0000 (19:27 -0600)]
Cleanup: comments in f_utf

5 years agoFeature: enable custom filter and sort in fl_directory_list()
Kevin Day [Mon, 18 Nov 2019 01:25:40 +0000 (19:25 -0600)]
Feature: enable custom filter and sort in fl_directory_list()

5 years agoUpdate: Document fl_directory_list() and finish implementing it
Kevin Day [Mon, 18 Nov 2019 01:08:32 +0000 (19:08 -0600)]
Update: Document fl_directory_list() and finish implementing it

The said function is documented as incomplete and has now been completed.

5 years agoFeature: implement pipe support in byte_dump
Kevin Day [Sun, 17 Nov 2019 07:48:34 +0000 (01:48 -0600)]
Feature: implement pipe support in byte_dump

5 years agoBugfix: incorrect operators used in comparison
Kevin Day [Sun, 17 Nov 2019 07:15:10 +0000 (01:15 -0600)]
Bugfix: incorrect operators used in comparison

Should be using '&&' and not '||' when making sure the character is in the expected range.

5 years agoBugfix: When --last is set to 0, entire file is dumped
Kevin Day [Sun, 17 Nov 2019 06:58:40 +0000 (00:58 -0600)]
Bugfix: When --last is set to 0, entire file is dumped

The --last value being set to 0 is internally used to represent entire file.
Explicitly setting --last to 0 makes no sense, so set the minimum allowed size for --last to 1.

5 years agoBugfix: only present error when --first and --last are both provided and --last is...
Kevin Day [Sun, 17 Nov 2019 06:54:28 +0000 (00:54 -0600)]
Bugfix: only present error when --first and --last are both provided and --last is less than --first

If --first is specified by itself, --last is implicitly defined as the EOF.

5 years agoUpdate: byte_dump should take into consideration the offsets when processing --first
Kevin Day [Sun, 17 Nov 2019 06:40:59 +0000 (00:40 -0600)]
Update: byte_dump should take into consideration the offsets when processing --first

This includes moving some of the variables into structures to simplify the design.

5 years agoUpdate: use fl_console_parameter_to_number_unsigned() instead of atoll()
Kevin Day [Sun, 17 Nov 2019 01:15:57 +0000 (19:15 -0600)]
Update: use fl_console_parameter_to_number_unsigned() instead of atoll()

This includes minor source code changes.

5 years agoUpdate: only print newline when --empty is used and --select is 0
Kevin Day [Sat, 16 Nov 2019 21:06:05 +0000 (15:06 -0600)]
Update: only print newline when --empty is used and --select is 0

In all other cases with --empty and --select, such as --select 1, if that selection is empty do not print any newlines.

Remove some impossible conditions.

5 years agoUpdate: --name and --at in combination should process '--at' relative to '--name'
Kevin Day [Sat, 16 Nov 2019 20:50:58 +0000 (14:50 -0600)]
Update: --name and --at in combination should process '--at' relative to '--name'

This logic is already done with --line and other parameters.
Doing this same thing with --name and --at makes the code/logic more consistent and reasonable.

5 years agoCleanup: display correct standard in help for fss_basic_list_read and fss_extended_read
Kevin Day [Sat, 16 Nov 2019 05:01:59 +0000 (23:01 -0600)]
Cleanup: display correct standard in help for fss_basic_list_read and fss_extended_read

5 years agoUpdate: status code tweaks, including setting fl_fss_status_code_first as different...
Kevin Day [Sat, 16 Nov 2019 04:58:13 +0000 (22:58 -0600)]
Update: status code tweaks, including setting fl_fss_status_code_first as different from f_status_code_last

5 years agoCleanup: minor tweaks to comments
Kevin Day [Sat, 16 Nov 2019 04:21:43 +0000 (22:21 -0600)]
Cleanup: minor tweaks to comments

5 years agoUpdate: finish implementing fss_basic_list_read
Kevin Day [Sat, 16 Nov 2019 04:20:56 +0000 (22:20 -0600)]
Update: finish implementing fss_basic_list_read

5 years agoUpdate: finish implementing fss_extended_read
Kevin Day [Fri, 15 Nov 2019 03:15:39 +0000 (21:15 -0600)]
Update: finish implementing fss_extended_read

5 years agoUpdate: print newline for empty content even when --at and --line, so long as --empty...
Kevin Day [Fri, 15 Nov 2019 03:12:34 +0000 (21:12 -0600)]
Update: print newline for empty content even when --at and --line, so long as --empty is specified

5 years agoRegression: the --at parameter should be processed even when --depth is not specified
Kevin Day [Fri, 15 Nov 2019 02:46:26 +0000 (20:46 -0600)]
Regression: the --at parameter should be processed even when --depth is not specified

The implementation of --depth resulted in --at to not be processed when the --depth parameter is not provided.

5 years agoUpdate: ensure error output has appropriate highlighting
Kevin Day [Fri, 15 Nov 2019 02:44:57 +0000 (20:44 -0600)]
Update: ensure error output has appropriate highlighting

5 years agoCleanup: minor cleanups
Kevin Day [Fri, 15 Nov 2019 02:44:17 +0000 (20:44 -0600)]
Cleanup: minor cleanups

5 years agoBugfix: f_overflow should be returned with error bit set
Kevin Day [Fri, 15 Nov 2019 02:43:58 +0000 (20:43 -0600)]
Bugfix: f_overflow should be returned with error bit set

5 years agoBugfix: string to number conversions should handle leading 0's as a valid number
Kevin Day [Thu, 14 Nov 2019 03:04:55 +0000 (21:04 -0600)]
Bugfix: string to number conversions should handle leading 0's as a valid number

5 years agoFeature: add support for including empty content in fss_basic_read
Kevin Day [Thu, 14 Nov 2019 02:54:31 +0000 (20:54 -0600)]
Feature: add support for including empty content in fss_basic_read

Empty content is an object that has no content.
When there is no content for an object, no content is printed for that line and that line is not included in content totals or line selections.

5 years agoUpdate: finish implementing fss_basic_read
Kevin Day [Thu, 14 Nov 2019 02:44:53 +0000 (20:44 -0600)]
Update: finish implementing fss_basic_read

5 years agoProgress: continue implementing fss_basic_read, also numerous other fixes/tweaks
Kevin Day [Wed, 13 Nov 2019 06:12:42 +0000 (00:12 -0600)]
Progress: continue implementing fss_basic_read, also numerous other fixes/tweaks

I decided to allow --at and --name to be used at the same time (and therefore at the same --depth).
The depth code is to be rewritten and that is only partially rewritten.
Many of the parameters are now written and the fss_basic_read needs to be tested and reviewed.
(There fss_basic_read is still incomplete, but there is enough working code to begin testing.)

5 years agoBugfix: "true" is now a reserved type, so replace variable names of "true" with ...
Kevin Day [Tue, 12 Nov 2019 04:30:12 +0000 (22:30 -0600)]
Bugfix: "true" is now a reserved type, so replace variable names of "true" with "is_true"

5 years agoCleanup: add space to --help for duodecimal parameter
Kevin Day [Sun, 10 Nov 2019 04:39:41 +0000 (22:39 -0600)]
Cleanup: add space to --help for duodecimal parameter

5 years agoFeature: add support for duodecimal (base-12)
Kevin Day [Sun, 10 Nov 2019 04:31:20 +0000 (22:31 -0600)]
Feature: add support for duodecimal (base-12)

Now that duodecimal has been added to the FLL project, make sure byte_dump can print in that format.
There is no printf() code for base-12, so implement a custom print process.

Fix some typoes in the "hexi" decimal spelling.

5 years agoUpdate: implement f_number_signed and f_number_unsigned, as either 32-bit, 64-bit...
Kevin Day [Sun, 10 Nov 2019 04:28:28 +0000 (22:28 -0600)]
Update: implement f_number_signed and f_number_unsigned, as either 32-bit, 64-bit, or 128-bit

Provide the types f_number_signed and f_number_unsigned as a way to define the default "number" type to be used for string to number conversions and array indexes.
By providing 32-bit, 64-bit (default), and 128-bit types, the type can then be adjusted to more easily work on limited hardware or expand to more capable hardware.

This will be the recommended number data type to use in FLL functions going forward.

5 years agoProgress: f_conversion and fl_console changes
Kevin Day [Sat, 9 Nov 2019 07:27:49 +0000 (01:27 -0600)]
Progress: f_conversion and fl_console changes

This includes adding support for duodecimal (base 12)

5 years agoProgress: rewriting fss_* programs and all dependencies
Kevin Day [Sat, 9 Nov 2019 01:25:07 +0000 (19:25 -0600)]
Progress: rewriting fss_* programs and all dependencies

I am changing the parameters and design of the fss_* programs, such as fss_basic_read.
There is no work done on the fss_*_write programs yet.

There were a lot of changes in the dependencies, including cleanups and improvements.

The parameters passed to the fss_* functions will now be more consistent across each of them.
This should make scripting much easier.

There is a lot of incomplete work and I am focused currently on getting fss_basic_read to work as desired.
I halted my work on f_conversion and fl_console to make sure none of these changes are lost.

I do not expect this commit to compile with everything due to the incomplete work.
I would rather post incomplete code than risk losing code as has happened in the past.

5 years agoProgress: do not include closing brace when determining stop point in extended list
Kevin Day [Sat, 2 Nov 2019 20:54:42 +0000 (15:54 -0500)]
Progress: do not include closing brace when determining stop point in extended list

5 years agoProgress: use the content_nests equivalents in place of the contents
Kevin Day [Sat, 2 Nov 2019 20:05:07 +0000 (15:05 -0500)]
Progress: use the content_nests equivalents in place of the contents

When I copied basic_list code to use a starting point for extended, I missed creating "nest" equivalents to some code.