path: root/colorize.c
AgeCommit message (Collapse)AuthorFilesLines
2022-06-13Omit declaration of optind/optargHEADmasterGravatar Steven Schubiger1-4/+0
fixes: warning: ‘optind’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] fixes: warning: ‘optarg’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] https://github.com/stsc/colorize/issues/1 Thanks Stephan Jauernick
2022-06-12Add comment that getpwuid() leaks memoryGravatar Steven Schubiger1-0/+1
2022-01-02Cast argument to unsigned char when invoking to{lower,upper}()Gravatar Steven Schubiger1-3/+3
2022-01-02Cast argument to unsigned char when invoking is*()Gravatar Steven Schubiger1-9/+9
fixes: warning: array subscript has type ‘char’ [-Wchar-subscripts] https://github.com/stsc/colorize/issues/1 Thanks Stephan Jauernick
2021-12-14main(): amend wording of diagnosticGravatar Steven Schubiger1-1/+1
2020-12-30main(): postpone invoking STACK_FILE(log)Gravatar Steven Schubiger1-1/+5
2020-12-30release(): strengthen check for equal pointersGravatar Steven Schubiger1-1/+2
2020-12-29Guard against fallthrough in switch statementGravatar Steven Schubiger1-3/+4
2020-12-29release(): fix indentation of closing braceGravatar Steven Schubiger1-1/+1
2020-12-29Release also FILE pointersGravatar Steven Schubiger1-44/+94
- stack(): save pointer and type in array of struct - release(): free and clear accordingly - cleanup(): free accordingly - Add STACK_FILE() macro - Close streams through RELEASE() - Rename RELEASE_VAR() macro to generic RELEASE() - Rename stack_var() function to stack() - Rename release_var() function to release()
2020-12-25Stack and release varsGravatar Steven Schubiger1-10/+18
2020-12-17Emit more concise error message when config file does not existGravatar Steven Schubiger1-11/+13
2020-06-10Merge multiple vfprintf_fail() calls for --clean[-all]Gravatar Steven Schubiger1-8/+1
2020-05-12main(): warn for purposeless switches with --clean[-all]Gravatar Steven Schubiger1-1/+15
2020-03-28Move conf file path code to a functionGravatar Steven Schubiger1-19/+27
2020-03-28process_opt_exclude_random(): don't check for non-NULLnessGravatar Steven Schubiger1-2/+1
because release_var() already does so.
2020-03-26init_conf_vars(): use explicit format stringGravatar Steven Schubiger1-1/+1
2020-03-25assign_conf(): reduce code duplicationGravatar Steven Schubiger1-16/+9
2020-03-20colorize 0.65v0.65Gravatar Steven Schubiger1-2/+2
2019-10-07process_opt_exclude_random(): fix typoGravatar Steven Schubiger1-1/+1
2019-09-21Fix using color from config with hyphenGravatar Steven Schubiger1-7/+11
2019-09-18Silence -Wimplicit-fallthrough= warningGravatar Steven Schubiger1-0/+1
2019-09-17parse_conf(): minor tweaksGravatar Steven Schubiger1-4/+6
- Parse lines with CRLF endings - Separate the '#' sign from the option name
2019-09-01Add config short option -cGravatar Steven Schubiger1-6/+14
2019-08-30Print line number when exceeding charsGravatar Steven Schubiger1-1/+3
2019-08-27Introduce --configGravatar Steven Schubiger1-23/+92
2019-08-20Const DESC_TYPEGravatar Steven Schubiger1-1/+1
2019-08-18First draft of config file parsingGravatar Steven Schubiger1-40/+251
2019-03-25Include print_tstamp() under DEBUG onlyGravatar Steven Schubiger1-0/+4
2019-02-27Print timestamp at top of debug outputGravatar Steven Schubiger1-0/+27
2019-02-24*alloc_wrap_debug(): improve aligning of debug outputGravatar Steven Schubiger1-3/+4
2019-02-17Wrap size of struct calculating expressionGravatar Steven Schubiger1-4/+6
2018-06-13colorize 0.64v0.64Gravatar Steven Schubiger1-2/+2
2018-06-10print_version(): const version string pointerGravatar Steven Schubiger1-1/+1
2018-05-23Const pointersGravatar Steven Schubiger1-2/+2
2018-04-08process_args(): comment color_names[] initializationGravatar Steven Schubiger1-1/+5
2018-03-28read_print_stream(): add commentGravatar Steven Schubiger1-1/+1
2018-03-14Omit superfluous backslash continuation characterGravatar Steven Schubiger1-5/+5
2018-01-28First draft of --omit-color-emptyGravatar Steven Schubiger1-13/+22
2017-12-20Define PROGRAM_NAMEGravatar Steven Schubiger1-1/+3
2017-12-16has_color_name(): return true from else branchGravatar Steven Schubiger1-2/+2
2017-12-06colorize 0.63v0.63Gravatar Steven Schubiger1-1/+1
2017-11-04Make strlen() assertions more explicitGravatar Steven Schubiger1-2/+2
2017-10-29Simplify SKIP_LINE_ENDINGS() macroGravatar Steven Schubiger1-1/+1
2017-10-12print_help(): indicate which options require an argumentGravatar Steven Schubiger1-10/+18
2017-10-07Assert after find_color_entry() returnsGravatar Steven Schubiger1-0/+1
2017-10-04Define DEBUG_FILE under DEBUG onlyGravatar Steven Schubiger1-1/+3
2017-10-01Minor tweaksGravatar Steven Schubiger1-2/+2
- Omit enumeration identifier - Reorder const qualifier
2017-08-26Extend fixed space of attr[]Gravatar Steven Schubiger1-1/+1
2017-08-20process_opt_attr(): release var if not prior exitedGravatar Steven Schubiger1-0/+1