aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
AgeCommit message (Collapse)AuthorFilesLines
2024-08-03Don't increment rainbow color with partial lineGravatar Steven Schubiger 1-2/+6
2024-07-30Minor tweaks for rainbow modeGravatar Steven Schubiger 1-6/+5
2024-07-28Allow for background color rainbow modeGravatar Steven Schubiger 1-30/+90
2024-07-25init_conf_boolean(): merge duplicated codeGravatar Steven Schubiger 1-16/+16
2024-07-25Add initial implementation of foreground color rainbow modeGravatar Steven Schubiger 1-24/+113
2024-06-09colorize 0.66v0.66Gravatar Steven Schubiger 1-2/+2
2022-06-13Omit declaration of optind/optargGravatar Steven Schubiger 1-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 Schubiger 1-0/+1
2022-01-02Cast argument to unsigned char when invoking to{lower,upper}()Gravatar Steven Schubiger 1-3/+3
2022-01-02Cast argument to unsigned char when invoking is*()Gravatar Steven Schubiger 1-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 Schubiger 1-1/+1
2020-12-30main(): postpone invoking STACK_FILE(log)Gravatar Steven Schubiger 1-1/+5
2020-12-30release(): strengthen check for equal pointersGravatar Steven Schubiger 1-1/+2
2020-12-29Guard against fallthrough in switch statementGravatar Steven Schubiger 1-3/+4
2020-12-29release(): fix indentation of closing braceGravatar Steven Schubiger 1-1/+1
2020-12-29Release also FILE pointersGravatar Steven Schubiger 1-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 Schubiger 1-10/+18
2020-12-17Emit more concise error message when config file does not existGravatar Steven Schubiger 1-11/+13
2020-06-10Merge multiple vfprintf_fail() calls for --clean[-all]Gravatar Steven Schubiger 1-8/+1
2020-05-12main(): warn for purposeless switches with --clean[-all]Gravatar Steven Schubiger 1-1/+15
2020-03-28Move conf file path code to a functionGravatar Steven Schubiger 1-19/+27
2020-03-28process_opt_exclude_random(): don't check for non-NULLnessGravatar Steven Schubiger 1-2/+1
because release_var() already does so.
2020-03-26init_conf_vars(): use explicit format stringGravatar Steven Schubiger 1-1/+1
2020-03-25assign_conf(): reduce code duplicationGravatar Steven Schubiger 1-16/+9
2020-03-20colorize 0.65v0.65Gravatar Steven Schubiger 1-2/+2
2019-10-07process_opt_exclude_random(): fix typoGravatar Steven Schubiger 1-1/+1
2019-09-21Fix using color from config with hyphenGravatar Steven Schubiger 1-7/+11
2019-09-18Silence -Wimplicit-fallthrough= warningGravatar Steven Schubiger 1-0/+1
2019-09-17parse_conf(): minor tweaksGravatar Steven Schubiger 1-4/+6
- Parse lines with CRLF endings - Separate the '#' sign from the option name
2019-09-01Add config short option -cGravatar Steven Schubiger 1-6/+14
2019-08-30Print line number when exceeding charsGravatar Steven Schubiger 1-1/+3
2019-08-27Introduce --configGravatar Steven Schubiger 1-23/+92
2019-08-20Const DESC_TYPEGravatar Steven Schubiger 1-1/+1
2019-08-18First draft of config file parsingGravatar Steven Schubiger 1-40/+251
2019-03-25Include print_tstamp() under DEBUG onlyGravatar Steven Schubiger 1-0/+4
2019-02-27Print timestamp at top of debug outputGravatar Steven Schubiger 1-0/+27
2019-02-24*alloc_wrap_debug(): improve aligning of debug outputGravatar Steven Schubiger 1-3/+4
2019-02-17Wrap size of struct calculating expressionGravatar Steven Schubiger 1-4/+6
2018-06-13colorize 0.64v0.64Gravatar Steven Schubiger 1-2/+2
2018-06-10print_version(): const version string pointerGravatar Steven Schubiger 1-1/+1
2018-05-23Const pointersGravatar Steven Schubiger 1-2/+2
2018-04-08process_args(): comment color_names[] initializationGravatar Steven Schubiger 1-1/+5
2018-03-28read_print_stream(): add commentGravatar Steven Schubiger 1-1/+1
2018-03-14Omit superfluous backslash continuation characterGravatar Steven Schubiger 1-5/+5
2018-01-28First draft of --omit-color-emptyGravatar Steven Schubiger 1-13/+22
2017-12-20Define PROGRAM_NAMEGravatar Steven Schubiger 1-1/+3
2017-12-16has_color_name(): return true from else branchGravatar Steven Schubiger 1-2/+2
2017-12-06colorize 0.63v0.63Gravatar Steven Schubiger 1-1/+1
2017-11-04Make strlen() assertions more explicitGravatar Steven Schubiger 1-2/+2
2017-10-29Simplify SKIP_LINE_ENDINGS() macroGravatar Steven Schubiger 1-1/+1