Commit Graph

42 Commits

Author SHA1 Message Date
Nick Chambers 149e2fb9a2 Replace stdlib string functions with gargoyle equivalents 2022-07-10 18:19:30 -05:00
Nick Chambers cb257baec0 Remove defaults from utility functions 2022-07-10 17:19:44 -05:00
Nick Chambers 11bf68274d Fix #8 2022-07-07 19:43:06 -05:00
Nick Chambers 94f33f1594 Remove extraneous line 2022-07-03 00:45:52 -05:00
Nick Chambers 10e400303f Rename errno to errno_code 2022-07-03 00:44:46 -05:00
Nick Chambers a9b18e4e6f Create defaults for the boolean negator argument 2022-07-02 19:18:13 -05:00
Nick Chambers cb116860a1 Include the proper header for index 2022-07-02 18:23:39 -05:00
Nick Chambers fee831260f Alphabetize twine functions 2022-07-01 16:48:21 -05:00
Nick Chambers fe8776b6e9 Alphabetize and make uniform the symbols in codex.h 2022-07-01 16:32:16 -05:00
Nick Chambers b39bc46b50 Teach `gargoyle_digest_argv` to report errors intelligently 2022-07-01 15:03:07 -05:00
Nick Chambers 47332f3777 Teach `gargoyle_digest_argv` to report errors intelligently 2022-07-01 14:46:13 -05:00
Nick Chambers db8c84bbe0 Add a utility function for creating errors 2022-07-01 12:41:50 -05:00
Nick Chambers 26525b24fb Return a proper error if a parameter is unknown 2022-06-30 03:08:37 -05:00
Nick Chambers a2a62554b8 Add an error type for recording failures 2022-06-30 02:30:34 -05:00
Nick Chambers 103b0eb94d Use default values instead of hard-coding 2022-06-30 02:19:10 -05:00
Nick Chambers f97be5af3b Add support for signed integers 2022-06-30 01:21:42 -05:00
Nick Chambers 60b54e37c0 Honor `GARGOYLE_FLG_STRCT` when parsing command line arguments 2022-06-29 23:32:07 -05:00
Nick Chambers 224baa071b Increase `idx` in `gargoyle_find_brand` by the negate size 2022-06-29 16:06:49 -05:00
Nick Chambers 52577843c3 Update method to match variable name 2022-06-29 14:44:45 -05:00
Nick Chambers 2999592c80 Properly namespace twine utility functions 2022-06-29 02:12:58 -05:00
Nick Chambers 41c0a4c2da Fix environment variable parser to exit early 2022-06-28 20:42:32 -05:00
Nick Chambers 8b8f6a2b3f Parse and apply environment variables 2022-06-28 20:27:17 -05:00
Nick Chambers fb3610c4d5 Apply values to short options 2022-06-28 20:24:07 -05:00
Nick Chambers 4e10b72586 Restructure code and make all public features toggleable 2022-06-27 18:25:31 -05:00
Nick Chambers 7a7313da7f Make `is_sep` a public symbol 2022-06-26 21:39:00 -05:00
Nick Chambers c49726b8b8 Update missed parameter names 2022-06-24 08:20:50 -05:00
Nick Chambers 86a3ab5eca Fix parameter names to make more sense 2022-06-24 08:16:17 -05:00
Nick Chambers f15b461612 Error if an unknown type is detected 2022-06-22 20:25:28 -05:00
Nick Chambers 8ea191c696 Read string values from the command line into desired variables 2022-06-22 16:45:57 -05:00
Nick Chambers a1f9b3a9b8 Tranform string values into double-precision numbers 2022-06-20 13:20:00 -05:00
Nick Chambers 7d9b89e9f8 Tranform string values into 64-bit unsigned integers 2022-06-20 12:51:19 -05:00
Nick Chambers 88c124f4bc Properly obtain the next option value 2022-06-20 12:49:17 -05:00
Nick Chambers 624646663d Properly toggle boolean flag values 2022-06-19 20:30:01 -05:00
Nick Chambers b39e377f4f Take advantage of types being bit flags 2022-06-19 11:28:59 -05:00
Nick Chambers f019f09a22 Fix the location of the option types 2022-06-19 11:04:51 -05:00
Nick Chambers f6fba0ac6b Skip argv 0 by default 2022-06-19 04:02:11 -05:00
Nick Chambers 4f2ec58b6e Accurately parse boolean options 2022-06-19 02:55:16 -05:00
Nick Chambers 9a8e74cb0d Properly detect the end of an emblem 2022-06-19 01:38:20 -05:00
Nick Chambers 66d076c119 Make twine.c a POSIX compliant file 2022-06-19 01:19:44 -05:00
Nick Chambers e7d0b2c114 Find the appropriate entry for short options 2022-06-19 00:56:39 -05:00
Nick Chambers 9dfca6f3c1 Find the appropriate entry for long options 2022-06-19 00:13:49 -05:00
Nick Chambers c9ee108cd5 Create the basic parser shell 2022-06-18 20:13:10 -05:00