Kevin Day [Sat, 9 May 2020 03:17:03 +0000 (22:17 -0500)]
Refactor: f_string_location to f_string_range (and related)
I am now favoring the term "range" over "location".
Kevin Day [Sat, 9 May 2020 01:26:45 +0000 (20:26 -0500)]
Cleanup: reword location to range
The word 'range' seems more appropriate than 'location'.
Kevin Day [Sat, 9 May 2020 01:23:46 +0000 (20:23 -0500)]
Update: switch back to lengths from inclusive ranges
Using start and stop ranges ended up being cumbersome.
Using length is simpler and a start range can be used by just adding to the source string before calling.
Kevin Day [Sat, 9 May 2020 00:42:35 +0000 (19:42 -0500)]
Update: add missing error handling
Kevin Day [Fri, 8 May 2020 04:38:59 +0000 (23:38 -0500)]
Progress: continue fake development
Utilize the recently added functions for appending console parameters for execution.
Kevin Day [Fri, 8 May 2020 02:47:18 +0000 (21:47 -0500)]
Update: numerous fixes and additions, mostly string related
Not sure how I let this one get through, but add missing return statement in a couple of private string functions where it is missing.
In retrospect, it seems that I was overzealous with some of the parameter checks.
Redo the parameter checks to not be as sting on string length and buffer size ranges.
Instead, just return that there is nothing to do instead of erroring out.
Add string terminate functions.
These functions are designed to guarantee that an end of string exists at the end of some dynamic string.
Add functions for appending one or more arguments to the arguments array for the execute functions.
This functionality is common enough (used extensively by firewall and soon to be used by fake).
Support providing an array of arguments to append.
This greatly simplifies long-winded code.
Minor fixes and cleanups in the execute functions:
- Add missing parameter checks.
- Rename results to result to be more accurate.
Add length defines for console symbols.
Kevin Day [Wed, 6 May 2020 04:14:13 +0000 (23:14 -0500)]
Progress: begin re-implementing fake program (Featureless Make)
The goal here will be to mimic the current FSS build scripts fist.
Then update the FSS build scripts to the more generalized design.
Then implement the traditional fakefile process (a makefile alternative).
Currently has "skeleton" mode, which may or may not be implemented.
This was added as a stub just in case I decide to implement it.
Kevin Day [Wed, 6 May 2020 04:12:25 +0000 (23:12 -0500)]
Update: add together snatch functions, update comments
Kevin Day [Tue, 5 May 2020 05:00:50 +0000 (00:00 -0500)]
Feature: add fss snatch functions for "snatching" content for a set of object names
These are intended to be used for simple purposes.
Directly implementing these in individual projects are recommended for more advanced usage.
I intend to expand on these "snatch" functions in the near future.
Kevin Day [Tue, 5 May 2020 04:48:08 +0000 (23:48 -0500)]
Bugfix: start position not being calculated fo fl_string functions
I missed adding the start position.
Kevin Day [Tue, 5 May 2020 03:41:25 +0000 (22:41 -0500)]
Cleanup: remove useless macros for f_string_location and update comments
Kevin Day [Tue, 5 May 2020 03:25:47 +0000 (22:25 -0500)]
Cleanup: replace variable name 'input' with 'location', add location parameter check
Using the word 'location' makes more semantic sense than 'input', especially given that the variable type is called a location.
Kevin Day [Tue, 5 May 2020 03:01:27 +0000 (22:01 -0500)]
Update: add back the dynamic_partial functions, add missing functions
After further review I realized that the dynamic partial behavior is going to be more common.
The rip functions are also not the same because it removes leading/trailing whitespace, which may be undesirable.
Some of the append_nulless function implementations were missing.
Update comments.
Kevin Day [Mon, 4 May 2020 11:47:38 +0000 (06:47 -0500)]
Feature: add fl_utf_file project
This is intended to be an f_utf_character handling version of fl_file project.
This f_utf_character is a 4-byte wide storage for a single UTF-8 character.
I accidentally committed the utf_file build settings in a previous commit:
f69e57a.
Kevin Day [Mon, 4 May 2020 11:11:59 +0000 (06:11 -0500)]
Update: Redesign f_file and fl_file functions, simplifying f_file_position
Redesign the logic behind the f_file and fl_file functions to favor the buffer->used append strategy.
Remove f_file_read_range(), something similar can be added later if need be.
Povide f_file_reat_until(), that functions similar to f_file_read_at(), except the file position is not automatically set.
Using f_file_reat_until() is more efficient in array loops because it does not check the file position every execution.
Add f_macro_file_seek_data() and f_macro_file_seek_hole() to support the newer seek modes: SEEK_DATA and SEEK_HOLE.
The f_file_position structure is simplified.
The file position should only be for file related code and having buffer in there is just plain wrong.
The structure is further simplified in its property names.
Remove unnecessary invalid parameter checks.
Add f_file_default_write_size define.
Kevin Day [Mon, 4 May 2020 02:43:46 +0000 (21:43 -0500)]
Update: make fl_file functions more consistent and update documentation
Refactor the fl_file functions.
Rewrite memory management in f_file and fl_file functions.
Fix bug with size of bytes, renaming it to byte_chunk to avoid confusion.
Add block size property to f_file structure to allow custom block size handling (as opposed to the previous behavior of using a hard-coded default).
Make sure f_none_on_eof is actually returned.
Kevin Day [Mon, 4 May 2020 02:43:05 +0000 (21:43 -0500)]
Update: ensure f_no_data is returned when applicable for fl_string and fl_utf functions
Kevin Day [Sat, 2 May 2020 23:42:44 +0000 (18:42 -0500)]
Update: simplify and rework string functions
The rip and append functions are functionally identical.
Remove the rip function.
With the rip functions gone, the rip_trim functions are renamed to rip.
This way "rip" functions operate like a theoretical append_trim function, but with fewer words.
Make the string functions use start and stop ranges instead of lengths.
This eliminates the needs for the partial functions.
Add new nulless functions that check for and remove nulls from source strings while transferring them to the destination string.
This allows for converting the strings that may have nulls to nulless strings such that they can be used in null-sensitive functions such as those found in the standard C libraries.
Make sure the utf_string functions match correspond to the string functions.
Kevin Day [Sat, 2 May 2020 16:30:11 +0000 (11:30 -0500)]
Update: set default allocation step to 4
This will better coincide with UTF-9 4-byte wide characters.
Kevin Day [Sat, 2 May 2020 16:07:19 +0000 (11:07 -0500)]
Update: at f_array_too_large status and don't include terminating NULL in string lengths
Just like f_string_too_large, there needs to be a generic f_array_too_large to report that the array is larger than can be supported.
Also provide an f_array_max_size #define just like f_string_max_size.
The #define string lengths shouldn't include the terminating NULL.
This will prevent having to remove the NULL when converting to/from null-agnostic to null-aware designs.
Kevin Day [Sat, 2 May 2020 05:10:23 +0000 (00:10 -0500)]
Feature: add word, dash, and plus UTF-8 character checker
The use of the '+' operator is more common than in the past.
Add support for detecting if a character is a word character, a dash character, or a plus character.
Kevin Day [Sat, 2 May 2020 04:51:35 +0000 (23:51 -0500)]
Update: Fix string length calculation and report when no changes for fll_program functions
Both fl_string_rip and fl_string_rip_trim use include ranges and not lengths.
Record the start length to identify if there were changes and return f_no_data when there are not changes.
Kevin Day [Sat, 2 May 2020 04:32:42 +0000 (23:32 -0500)]
Bugfix: is_word tests were using the wrong function and there is no ASCII zero-width space
Kevin Day [Sat, 2 May 2020 04:24:16 +0000 (23:24 -0500)]
Cleanup: fic typo in the word "skip"
Kevin Day [Sat, 2 May 2020 04:23:24 +0000 (23:23 -0500)]
Cleanup: call clear macros in _new macros
Kevin Day [Sat, 2 May 2020 04:22:48 +0000 (23:22 -0500)]
Cleanup: remove spurious name in typedef struct declaration
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
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).
Kevin Day [Fri, 1 May 2020 03:40:01 +0000 (22:40 -0500)]
Cleanup: whitespace tweaks and use define for printing long symbol
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.
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).
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
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.
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.
Kevin Day [Wed, 29 Apr 2020 04:04:15 +0000 (23:04 -0500)]
Feature: add functions for combining the additional console parameter together
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.
Kevin Day [Wed, 29 Apr 2020 03:22:32 +0000 (22:22 -0500)]
Update: add missing dependency to f_color
Kevin Day [Wed, 29 Apr 2020 03:01:50 +0000 (22:01 -0500)]
Cleanup: move comment into correct position
Kevin Day [Wed, 29 Apr 2020 02:57:19 +0000 (21:57 -0500)]
Feature: implement append and prepend string functions
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.
Kevin Day [Tue, 28 Apr 2020 04:15:56 +0000 (23:15 -0500)]
Update: only resize if necessary when processing string
Avoid unnecessary work.
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.
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.
Kevin Day [Sun, 26 Apr 2020 22:11:26 +0000 (17:11 -0500)]
Cleanup: fix include ordering
Kevin Day [Sun, 26 Apr 2020 22:11:07 +0000 (17:11 -0500)]
Bugfix: f_file_not_found should be considered an error
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.
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
Kevin Day [Sun, 26 Apr 2020 04:23:34 +0000 (23:23 -0500)]
Cleanup: fix wording in help in regards to special options
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"
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.
Kevin Day [Sun, 26 Apr 2020 03:37:09 +0000 (22:37 -0500)]
Cleanup: use correct wording in invalid parameter message
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.
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.
Kevin Day [Sat, 25 Apr 2020 19:04:41 +0000 (14:04 -0500)]
Feature: enable support default, protected, and hidden GCC visibility macros
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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
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.
Kevin Day [Fri, 24 Apr 2020 02:45:56 +0000 (21:45 -0500)]
Cleanup: remove extra newline
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.
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.
Kevin Day [Wed, 22 Apr 2020 03:58:08 +0000 (22:58 -0500)]
Update: add simple documentation about private functions
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.
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.
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.
Kevin Day [Mon, 20 Apr 2020 04:51:44 +0000 (23:51 -0500)]
Cleanup: ensure macro_ is pefixed in string macros
Kevin Day [Mon, 20 Apr 2020 04:48:41 +0000 (23:48 -0500)]
Update: experimentally switch to uint8_t to UTF-8 character processing
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.
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.
Kevin Day [Fri, 28 Feb 2020 04:30:54 +0000 (22:30 -0600)]
Security: fix memory leaks in FSS read programs
Kevin Day [Fri, 28 Feb 2020 04:27:00 +0000 (22:27 -0600)]
Cleanup: minor changes in f_print
Kevin Day [Fri, 28 Feb 2020 04:25:40 +0000 (22:25 -0600)]
Cleanup: FLL errors is now FLL status
Kevin Day [Wed, 26 Feb 2020 03:34:11 +0000 (21:34 -0600)]
Cleanup: add missing parameter documentation for f_print_string()
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.
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.
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
Kevin Day [Wed, 8 Jan 2020 03:44:33 +0000 (21:44 -0600)]
Progress: continue working on fss_extended_list
Kevin Day [Wed, 8 Jan 2020 03:44:07 +0000 (21:44 -0600)]
Cleanup: add period at end of sentences
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).
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.
Kevin Day [Wed, 20 Nov 2019 02:21:26 +0000 (20:21 -0600)]
Cleanup: fix spelling of occurred.
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.
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.
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().
Kevin Day [Mon, 18 Nov 2019 01:27:39 +0000 (19:27 -0600)]
Cleanup: comments in f_utf
Kevin Day [Mon, 18 Nov 2019 01:25:40 +0000 (19:25 -0600)]
Feature: enable custom filter and sort in fl_directory_list()
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.
Kevin Day [Sun, 17 Nov 2019 07:48:34 +0000 (01:48 -0600)]
Feature: implement pipe support in byte_dump
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.
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.
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.
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.