]> git.refcnt.org Git - colorize.git/log
colorize.git
8 years agoBring data type into line
Steven Schubiger [Sat, 28 Nov 2015 20:32:49 +0000 (21:32 +0100)] 
Bring data type into line

8 years agoCircumvent cleanup function for testing output
Steven Schubiger [Sat, 7 Nov 2015 21:33:14 +0000 (22:33 +0100)] 
Circumvent cleanup function for testing output

8 years agoMove path skipping code to a function
Steven Schubiger [Tue, 27 Oct 2015 19:31:34 +0000 (20:31 +0100)] 
Move path skipping code to a function

8 years agoMove color names code to a function
Steven Schubiger [Tue, 27 Oct 2015 15:17:07 +0000 (16:17 +0100)] 
Move color names code to a function

8 years agoSimplify code in cleanup function
Steven Schubiger [Sun, 25 Oct 2015 19:52:26 +0000 (20:52 +0100)] 
Simplify code in cleanup function

8 years agoDon't initialize arg_cnt
Steven Schubiger [Sun, 25 Oct 2015 19:08:06 +0000 (20:08 +0100)] 
Don't initialize arg_cnt

8 years agocolorize 0.57 v0.57
Steven Schubiger [Sun, 4 Oct 2015 13:07:20 +0000 (15:07 +0200)] 
colorize 0.57

8 years agoReadjust indentation of tests
Steven Schubiger [Sun, 4 Oct 2015 12:56:51 +0000 (14:56 +0200)] 
Readjust indentation of tests

8 years agoReplace echo command invocations with printf
Steven Schubiger [Sat, 3 Oct 2015 20:45:13 +0000 (22:45 +0200)] 
Replace echo command invocations with printf

to be more portable.

8 years agoCatch test file exceptions
Steven Schubiger [Thu, 1 Oct 2015 11:22:14 +0000 (13:22 +0200)] 
Catch test file exceptions

8 years agoMerge branch 'merge_part_line'
Steven Schubiger [Wed, 30 Sep 2015 14:14:11 +0000 (16:14 +0200)] 
Merge branch 'merge_part_line'

When cleaning lines with --clean[-all], reduce allocating space
for the partial line in memory.  Previously, string concatenation
may have lead to excessive use of memory.

8 years agoLazily allocate memory
Steven Schubiger [Sun, 20 Sep 2015 14:13:11 +0000 (16:13 +0200)] 
Lazily allocate memory

8 years agoDouble memory when increasing buffer
Steven Schubiger [Thu, 3 Sep 2015 11:49:27 +0000 (13:49 +0200)] 
Double memory when increasing buffer

8 years agoChoose larger integer data type
Steven Schubiger [Fri, 28 Aug 2015 13:48:41 +0000 (15:48 +0200)] 
Choose larger integer data type

8 years agoAmend test name and comment
Steven Schubiger [Sun, 23 Aug 2015 19:39:01 +0000 (21:39 +0200)] 
Amend test name and comment

8 years agoProperly indent pair of braces
Steven Schubiger [Tue, 18 Aug 2015 17:10:50 +0000 (19:10 +0200)] 
Properly indent pair of braces

8 years agoSwitch from TAP::Harness to Test::Harness
Steven Schubiger [Mon, 17 Aug 2015 18:17:03 +0000 (20:17 +0200)] 
Switch from TAP::Harness to Test::Harness

in order to increase portability.

8 years agoAdd merge test file
Steven Schubiger [Sat, 15 Aug 2015 21:54:09 +0000 (23:54 +0200)] 
Add merge test file

8 years agoRun test files from test directory
Steven Schubiger [Sun, 9 Aug 2015 20:11:45 +0000 (22:11 +0200)] 
Run test files from test directory

8 years agoFirst draft of improved merging partial lines
Steven Schubiger [Sat, 8 Aug 2015 22:45:07 +0000 (00:45 +0200)] 
First draft of improved merging partial lines

8 years agoMove option processing code to a function
Steven Schubiger [Fri, 24 Jul 2015 18:44:43 +0000 (20:44 +0200)] 
Move option processing code to a function

8 years agocolorize 0.56 v0.56
Steven Schubiger [Wed, 17 Jun 2015 13:29:25 +0000 (15:29 +0200)] 
colorize 0.56

8 years agoDon't initialize static variables explicitly
Steven Schubiger [Mon, 15 Jun 2015 20:44:03 +0000 (22:44 +0200)] 
Don't initialize static variables explicitly

8 years agoAdd release preparation script
Steven Schubiger [Sun, 7 Jun 2015 13:06:55 +0000 (15:06 +0200)] 
Add release preparation script

8 years agoCast variable properly
Steven Schubiger [Sun, 7 Jun 2015 12:32:01 +0000 (14:32 +0200)] 
Cast variable properly

8 years agoAdd initial .gitignore
Steven Schubiger [Sat, 16 May 2015 13:43:33 +0000 (15:43 +0200)] 
Add initial .gitignore

Thanks Elias Diem

8 years agoRefactor print_clean
Steven Schubiger [Thu, 14 May 2015 19:51:15 +0000 (21:51 +0200)] 
Refactor print_clean

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

8 years agoAdd COPYING
Steven Schubiger [Fri, 8 May 2015 21:35:48 +0000 (23:35 +0200)] 
Add COPYING

9 years agoDeclare color sets variables as constant
Steven Schubiger [Fri, 3 Apr 2015 21:05:30 +0000 (23:05 +0200)] 
Declare color sets variables as constant

9 years agoConvert short version option to uppercase
Steven Schubiger [Mon, 2 Mar 2015 14:26:05 +0000 (15:26 +0100)] 
Convert short version option to uppercase

9 years agoNullify pointers only where appropriate
Steven Schubiger [Sun, 15 Feb 2015 19:03:43 +0000 (20:03 +0100)] 
Nullify pointers only where appropriate

9 years agoOmit unnecessary break statement
Steven Schubiger [Fri, 13 Feb 2015 18:27:46 +0000 (19:27 +0100)] 
Omit unnecessary break statement

9 years agoFollow symbolic link to obtain file status
Steven Schubiger [Mon, 26 Jan 2015 19:52:54 +0000 (20:52 +0100)] 
Follow symbolic link to obtain file status

9 years agoReuse file opening function
Steven Schubiger [Sun, 25 Jan 2015 15:54:10 +0000 (16:54 +0100)] 
Reuse file opening function

9 years agocolorize 0.55 v0.55
Steven Schubiger [Wed, 21 Jan 2015 20:35:58 +0000 (21:35 +0100)] 
colorize 0.55

9 years agoLog debug output to file
Steven Schubiger [Tue, 20 Jan 2015 21:20:57 +0000 (22:20 +0100)] 
Log debug output to file

9 years agoAllow for debug flag to be passed to make
Steven Schubiger [Sun, 11 Jan 2015 21:43:11 +0000 (22:43 +0100)] 
Allow for debug flag to be passed to make

9 years agoSupport files larger than 2GB on 32-bit systems
Steven Schubiger [Sat, 10 Jan 2015 22:18:11 +0000 (23:18 +0100)] 
Support files larger than 2GB on 32-bit systems

9 years agoKeep return value check simple
Steven Schubiger [Thu, 8 Jan 2015 14:14:36 +0000 (15:14 +0100)] 
Keep return value check simple

9 years agoTest that debugging builds compile
Steven Schubiger [Tue, 16 Dec 2014 18:11:29 +0000 (19:11 +0100)] 
Test that debugging builds compile

9 years agoCheck if BUF_SIZE is defined
Steven Schubiger [Sun, 14 Dec 2014 13:55:28 +0000 (14:55 +0100)] 
Check if BUF_SIZE is defined

9 years agoPass file/line on for string allocation routines
Steven Schubiger [Tue, 28 Oct 2014 20:07:24 +0000 (21:07 +0100)] 
Pass file/line on for string allocation routines

9 years agoMake diagnostics more consistent
Steven Schubiger [Sun, 26 Oct 2014 17:33:22 +0000 (18:33 +0100)] 
Make diagnostics more consistent

9 years agoPrint memory allocation diagnostics
Steven Schubiger [Sat, 25 Oct 2014 19:53:48 +0000 (21:53 +0200)] 
Print memory allocation diagnostics

9 years agoUse more portable exit failure status macro
Steven Schubiger [Wed, 1 Oct 2014 13:35:55 +0000 (15:35 +0200)] 
Use more portable exit failure status macro

9 years agoMerge duplicated version printing code
Steven Schubiger [Thu, 24 Jul 2014 10:50:07 +0000 (12:50 +0200)] 
Merge duplicated version printing code

9 years agoComment end of conditional inclusion
Steven Schubiger [Thu, 26 Jun 2014 20:52:55 +0000 (22:52 +0200)] 
Comment end of conditional inclusion

9 years agoInclude commit hash in version output
Steven Schubiger [Thu, 26 Jun 2014 14:08:37 +0000 (16:08 +0200)] 
Include commit hash in version output

Extracting the abbreviated commit hash will break when git will be
replaced by a different version control system.  But until it does,
get the hash from the git repository.

9 years agoCheck exit value for displaying version data
Steven Schubiger [Wed, 11 Jun 2014 12:55:04 +0000 (14:55 +0200)] 
Check exit value for displaying version data

9 years agoPrint abbreviated size of buffer
Steven Schubiger [Tue, 10 Jun 2014 15:10:38 +0000 (17:10 +0200)] 
Print abbreviated size of buffer

9 years agocolorize 0.54 v0.54
Steven Schubiger [Mon, 2 Jun 2014 18:06:26 +0000 (20:06 +0200)] 
colorize 0.54

9 years agoDon't declare errno
Steven Schubiger [Fri, 16 May 2014 12:37:00 +0000 (14:37 +0200)] 
Don't declare errno

10 years agoLocalize variable with name of existing file
Steven Schubiger [Fri, 4 Apr 2014 21:36:24 +0000 (23:36 +0200)] 
Localize variable with name of existing file

10 years agoRearrange debugging macros
Steven Schubiger [Thu, 20 Mar 2014 16:14:35 +0000 (17:14 +0100)] 
Rearrange debugging macros

10 years agoConditionally define memory allocation wrappers
Steven Schubiger [Wed, 29 Jan 2014 19:26:40 +0000 (20:26 +0100)] 
Conditionally define memory allocation wrappers

10 years agoQuote color string in error messages
Steven Schubiger [Tue, 28 Jan 2014 10:28:20 +0000 (11:28 +0100)] 
Quote color string in error messages

10 years agoExtend feature test macro further
Steven Schubiger [Sun, 26 Jan 2014 21:07:57 +0000 (22:07 +0100)] 
Extend feature test macro further

10 years agoDisplay type and name of file in error messages
Steven Schubiger [Sat, 25 Jan 2014 21:00:57 +0000 (22:00 +0100)] 
Display type and name of file in error messages

10 years agoDeclare check target as phony
Steven Schubiger [Sun, 19 Jan 2014 18:04:36 +0000 (19:04 +0100)] 
Declare check target as phony

10 years agoCompile with -ansi -pedantic
Steven Schubiger [Sun, 19 Jan 2014 16:41:25 +0000 (17:41 +0100)] 
Compile with -ansi -pedantic

10 years agoSilence warnings under -pedantic
Steven Schubiger [Sun, 5 Jan 2014 12:31:52 +0000 (13:31 +0100)] 
Silence warnings under -pedantic

10 years agocolorize 0.53 v0.53
Steven Schubiger [Thu, 2 Jan 2014 20:33:43 +0000 (21:33 +0100)] 
colorize 0.53

10 years agoEnhance formatting of SYNOPSIS section
Steven Schubiger [Thu, 2 Jan 2014 16:48:36 +0000 (17:48 +0100)] 
Enhance formatting of SYNOPSIS section

10 years agoPrefer term help screen
Steven Schubiger [Sun, 22 Dec 2013 19:27:02 +0000 (20:27 +0100)] 
Prefer term help screen

10 years agoPrint hint to invoke usage screen
Steven Schubiger [Sat, 21 Dec 2013 20:28:25 +0000 (21:28 +0100)] 
Print hint to invoke usage screen

10 years agoMerge declarations of boolean type
Steven Schubiger [Thu, 12 Dec 2013 22:05:26 +0000 (23:05 +0100)] 
Merge declarations of boolean type

10 years agoFirst draft of README
Steven Schubiger [Tue, 10 Dec 2013 21:26:08 +0000 (22:26 +0100)] 
First draft of README

10 years agoSort color names elsewhere
Steven Schubiger [Mon, 9 Dec 2013 17:11:44 +0000 (18:11 +0100)] 
Sort color names elsewhere

10 years agoExchange color codes for cyan/magenta
Steven Schubiger [Sat, 7 Dec 2013 15:55:30 +0000 (16:55 +0100)] 
Exchange color codes for cyan/magenta

Whoops, accidentally swapped.

10 years agoList state of debugging in version output
Steven Schubiger [Fri, 6 Dec 2013 20:33:12 +0000 (21:33 +0100)] 
List state of debugging in version output

10 years agoRead multiple of 1024 bytes from stream
Steven Schubiger [Sun, 1 Dec 2013 17:05:54 +0000 (18:05 +0100)] 
Read multiple of 1024 bytes from stream

10 years agoImprove determining buffer size
Steven Schubiger [Thu, 21 Nov 2013 20:41:59 +0000 (21:41 +0100)] 
Improve determining buffer size

10 years agoRemove superfluous semicolon from macros
Steven Schubiger [Sun, 17 Nov 2013 13:16:47 +0000 (14:16 +0100)] 
Remove superfluous semicolon from macros

10 years agoValidate color provided to exclude-random switch
Steven Schubiger [Sat, 16 Nov 2013 22:19:06 +0000 (23:19 +0100)] 
Validate color provided to exclude-random switch

10 years agocolorize 0.52 v0.52
Steven Schubiger [Wed, 6 Nov 2013 19:52:54 +0000 (20:52 +0100)] 
colorize 0.52

10 years agoUse NULL in long options data initialization
Steven Schubiger [Tue, 5 Nov 2013 14:31:22 +0000 (15:31 +0100)] 
Use NULL in long options data initialization

10 years agoDon't fail if color string exists as file
Steven Schubiger [Tue, 29 Oct 2013 19:12:42 +0000 (20:12 +0100)] 
Don't fail if color string exists as file

10 years agoDocument sequences being used
Steven Schubiger [Sun, 20 Oct 2013 15:05:48 +0000 (17:05 +0200)] 
Document sequences being used

10 years agoClear pointer before reusing
Steven Schubiger [Thu, 5 Sep 2013 11:36:26 +0000 (13:36 +0200)] 
Clear pointer before reusing

10 years agoSwap parameters of print_line
Steven Schubiger [Wed, 28 Aug 2013 20:38:54 +0000 (22:38 +0200)] 
Swap parameters of print_line

10 years agoReplace option part of identifiers with arg
Steven Schubiger [Sat, 24 Aug 2013 20:12:39 +0000 (22:12 +0200)] 
Replace option part of identifiers with arg

10 years agoAdd assertion in process_file_option
Steven Schubiger [Thu, 22 Aug 2013 13:25:53 +0000 (15:25 +0200)] 
Add assertion in process_file_option

10 years agoInitialize file pointer
Steven Schubiger [Wed, 21 Aug 2013 19:53:10 +0000 (21:53 +0200)] 
Initialize file pointer

10 years agoAvoid gmake specific Makefile idiom
Steven Schubiger [Sun, 18 Aug 2013 20:44:00 +0000 (22:44 +0200)] 
Avoid gmake specific Makefile idiom

Example make failure:
Using $< in a non-suffix rule context is a GNUmake idiom (line 11 of Makefile)

10 years agoExtend feature test macro
Steven Schubiger [Sat, 17 Aug 2013 15:22:12 +0000 (17:22 +0200)] 
Extend feature test macro

Defining _POSIX_C_SOURCE=200809L fixes compilation currently under
Net/Open/MirBSD (and possibly more).

10 years agoTest failures
Steven Schubiger [Fri, 9 Aug 2013 21:40:56 +0000 (23:40 +0200)] 
Test failures

10 years agocolorize 0.51 v0.51
Steven Schubiger [Sun, 4 Aug 2013 15:18:30 +0000 (17:18 +0200)] 
colorize 0.51

10 years agoPrint diagnostic for wrong count of arguments
Steven Schubiger [Sat, 3 Aug 2013 21:01:28 +0000 (23:01 +0200)] 
Print diagnostic for wrong count of arguments

10 years agoQuote original unrecognized color name
Steven Schubiger [Sat, 3 Aug 2013 17:55:47 +0000 (19:55 +0200)] 
Quote original unrecognized color name

This fixes the name being quoted for bold colors:

[sts@kronos colorize-eaf4e19]$ ./colorize Greeen
./colorize: foreground color 'greeen' not recognized

10 years agoAdd vfprintf_diag and macro
Steven Schubiger [Wed, 31 Jul 2013 16:25:48 +0000 (18:25 +0200)] 
Add vfprintf_diag and macro

10 years agoRevert "Make vfprintf_{fail,diag} wrappers"
Steven Schubiger [Tue, 30 Jul 2013 21:21:05 +0000 (23:21 +0200)] 
Revert "Make vfprintf_{fail,diag} wrappers"

This reverts commit fbbedc1d43af9c4fbc92611db19c617378dce2e8.

Undo as variadic macros are not allowed in C89.

10 years agoMake vfprintf_{fail,diag} wrappers
Steven Schubiger [Sat, 27 Jul 2013 16:01:00 +0000 (18:01 +0200)] 
Make vfprintf_{fail,diag} wrappers

10 years agoCheck for non-empty line
Steven Schubiger [Tue, 16 Jul 2013 20:19:11 +0000 (22:19 +0200)] 
Check for non-empty line

10 years agoEliminate stream modes
Steven Schubiger [Sat, 13 Jul 2013 20:47:54 +0000 (22:47 +0200)] 
Eliminate stream modes

The added complexity is not worth the cost as these modes do not
provide a real speed benefit nor is the implementation mature.

Thus, remove them.

10 years agoTighten scope of test
Steven Schubiger [Thu, 4 Jul 2013 09:12:45 +0000 (11:12 +0200)] 
Tighten scope of test

10 years agoClean sequences more strictly
Steven Schubiger [Wed, 3 Jul 2013 21:40:37 +0000 (23:40 +0200)] 
Clean sequences more strictly

10 years agoMention that sequences are added on a line basis
Steven Schubiger [Sun, 16 Jun 2013 12:34:28 +0000 (14:34 +0200)] 
Mention that sequences are added on a line basis

10 years agoBail out if both clean switches are provided
Steven Schubiger [Tue, 28 May 2013 15:56:18 +0000 (17:56 +0200)] 
Bail out if both clean switches are provided

10 years agoAllow for DEBUG to be overridden
Steven Schubiger [Sat, 18 May 2013 21:41:27 +0000 (23:41 +0200)] 
Allow for DEBUG to be overridden

10 years agoAdd note in line printing function
Steven Schubiger [Mon, 13 May 2013 13:18:17 +0000 (15:18 +0200)] 
Add note in line printing function