aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
AgeCommit message (Collapse)AuthorFilesLines
2017-08-17colorize 0.62v0.62Gravatar Steven Schubiger 1-1/+1
2017-08-06print_help(): omit braces around for loop bodyGravatar Steven Schubiger 1-7/+5
2017-08-04Assert after find_color_entries() returnsGravatar Steven Schubiger 1-0/+1
2017-08-04Make assertions more explicitGravatar Steven Schubiger 1-5/+5
2017-08-02Optimize extracting invalid attribute nameGravatar Steven Schubiger 1-4/+3
2017-08-01Enhance message if attribute is invalidGravatar Steven Schubiger 1-1/+8
2017-07-21Set description once for unknown flagsGravatar Steven Schubiger 1-3/+4
2017-07-06write_attr(): pass struct by referenceGravatar Steven Schubiger 1-8/+13
2017-06-16Minor tweaksGravatar Steven Schubiger 1-5/+5
Be more precise with naming/wording
2017-05-17Const name_lenGravatar Steven Schubiger 1-1/+1
2017-05-12Reject attributes with multiple occurrencesGravatar Steven Schubiger 1-14/+40
2017-04-27colorize 0.61v0.61Gravatar Steven Schubiger 1-1/+1
2017-04-16Don't xstrdup() optargGravatar Steven Schubiger 1-6/+2
2017-04-16Tweak commentGravatar Steven Schubiger 1-1/+1
2017-04-16First draft of attr optionGravatar Steven Schubiger 1-27/+84
2017-04-02colorize 0.60v0.60Gravatar Steven Schubiger 1-2/+2
2017-04-02Define _DEFAULT_SOURCEGravatar Steven Schubiger 1-0/+1
Silence # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
2017-03-19Const dataGravatar Steven Schubiger 1-1/+1
2017-03-04Include all flags in version outputGravatar Steven Schubiger 1-1/+13
2017-01-27Eliminate gotoGravatar Steven Schubiger 1-11/+11
2017-01-07Fix spelling of preceededGravatar Steven Schubiger 1-2/+2
I: colorize: spelling-error-in-binary usr/bin/colorize preceeded preceded
2016-10-25Stack and release color names memoryGravatar Steven Schubiger 1-7/+7
Don't call the color_names memory freeing code explicitly in the cleanup function as it is taken care of via {STACK,RELEASE}_VAR(). This implies the memory is "garbage collected" like other uses of those macros, too. Also, declare and initialize the color_names array in a non-global, tighter scope.
2016-08-19Print list of options dynamically in help outputGravatar Steven Schubiger 1-23/+44
2016-07-27colorize 0.59v0.59Gravatar Steven Schubiger 1-1/+1
2016-05-20Const pointerGravatar Steven Schubiger 1-1/+1
2016-04-07Use more descriptive enumerator nameGravatar Steven Schubiger 1-5/+5
2016-03-21Terminate buffer with single NULGravatar Steven Schubiger 1-1/+1
2016-01-21colorize 0.58v0.58Gravatar Steven Schubiger 1-2/+2
2016-01-20List color separator in version outputGravatar Steven Schubiger 1-0/+1
2016-01-19Make color separator configurableGravatar Steven Schubiger 1-1/+7
2016-01-15Optimize merging for partial lines furtherGravatar Steven Schubiger 1-12/+18
Completing partial lines (i.e., to ones without truncated escape sequences) can be handled more efficiently by concatenating only the partial line beginning at the last escape control character with the characters read from the input stream. Compared to previous code which concatenated the *entire* partial line with the characters read, pass now the resulting string of aforementioned concatenation separately to the escape sequence cleaning function. Even though it may appear as a minor optimisation, it is a /substantial/ improvement in terms of memory being allocated when cleaning lines.
2015-11-28Bring data type into lineGravatar Steven Schubiger 1-4/+3
2015-11-07Circumvent cleanup function for testing outputGravatar Steven Schubiger 1-2/+2
2015-10-27Move path skipping code to a functionGravatar Steven Schubiger 1-47/+52
2015-10-27Move color names code to a functionGravatar Steven Schubiger 1-55/+64
2015-10-25Simplify code in cleanup functionGravatar Steven Schubiger 1-3/+1
2015-10-25Don't initialize arg_cntGravatar Steven Schubiger 1-1/+1
2015-10-04colorize 0.57v0.57Gravatar Steven Schubiger 1-1/+1
2015-09-20Lazily allocate memoryGravatar Steven Schubiger 1-11/+12
2015-09-03Double memory when increasing bufferGravatar Steven Schubiger 1-10/+21
2015-08-28Choose larger integer data typeGravatar Steven Schubiger 1-3/+3
2015-08-18Properly indent pair of bracesGravatar Steven Schubiger 1-4/+5
2015-08-09First draft of improved merging partial linesGravatar Steven Schubiger 1-25/+130
2015-07-24Move option processing code to a functionGravatar Steven Schubiger 1-60/+67
2015-06-17colorize 0.56v0.56Gravatar Steven Schubiger 1-1/+1
2015-06-15Don't initialize static variables explicitlyGravatar Steven Schubiger 1-8/+8
2015-06-07Cast variable properlyGravatar Steven Schubiger 1-9/+9
2015-05-14Refactor print_cleanGravatar Steven Schubiger 1-116/+154
Avoid allocating memory for escape sequence offsets by printing text in between directly. Furthermore, divide resulting code into numerous functions in order to reduce complexity. Thanks Urs Fässler
2015-04-03Declare color sets variables as constantGravatar Steven Schubiger 1-3/+3
2015-03-02Convert short version option to uppercaseGravatar Steven Schubiger 1-3/+3