]> git.refcnt.org Git - colorize.git/blobdiff - colorize.c
Add plain documentation
[colorize.git] / colorize.c
index 7faeb8008392459b9d32381445212854d2b2a2fa..3c96a29e960d0ab7e29aaa3a32ae3116f8e73db7 100644 (file)
@@ -2,7 +2,7 @@
  * colorize - Read text from standard input stream or file and print
  *            it colorized through use of ANSI escape sequences
  *
- * Copyright (c) 2011-2016 Steven Schubiger
+ * Copyright (c) 2011-2017 Steven Schubiger
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -19,6 +19,7 @@
  *
  */
 
+#define _DEFAULT_SOURCE
 #define _BSD_SOURCE
 #define _XOPEN_SOURCE 700
 #define _FILE_OFFSET_BITS 64
 
 #define DEBUG_FILE "debug.txt"
 
-#define VERSION "0.59"
+#define VERSION "0.60"
 
 typedef enum { false, true } bool;
 
@@ -785,7 +786,7 @@ read_print_stream (bool bold, const struct color **colors, const char *file, FIL
         line = buf;
         while ((eol = strpbrk (line, "\n\r")))
           {
-            char *p;
+            const char *p;
             flags &= ~(CR|LF);
             if (*eol == '\r')
               {