--- lib/readline/colors.h.orig 2012-09-16 20:25:03.000000000 +0200 +++ lib/readline/colors.h 2015-11-13 20:29:55.000000000 +0100 @@ -27,14 +27,14 @@ #ifndef _COLORS_H_ #define _COLORS_H_ -#include // size_t +#include /* size_t*/ #if defined(__TANDEM) && defined(HAVE_STDBOOL_H) && (__STDC_VERSION__ < 199901L) typedef int _Bool; #endif #if defined (HAVE_STDBOOL_H) -# include // bool +# include /* bool */ #else typedef int _rl_bool_t; --- lib/readline/parse-colors.c.orig 2013-12-14 02:05:40.000000000 +0100 +++ lib/readline/parse-colors.c 2015-11-13 20:33:04.000000000 +0100 @@ -32,21 +32,21 @@ #include -// strdup() / strcpy() +/* strdup() / strcpy() */ #if defined (HAVE_STRING_H) # include #else /* !HAVE_STRING_H */ # include #endif /* !HAVE_STRING_H */ -// abort() +/* abort() */ #if defined (HAVE_STDLIB_H) # include #else # include "ansi_stdlib.h" #endif /* HAVE_STDLIB_H */ -#include "rldefs.h" // STREQ, savestring +#include "rldefs.h" /* STREQ, savestring */ #include "readline.h" #include "rlprivate.h" #include "rlshell.h" @@ -61,30 +61,30 @@ struct bin_str _rl_color_indicator[] = { - { LEN_STR_PAIR ("\033[") }, // lc: Left of color sequence - { LEN_STR_PAIR ("m") }, // rc: Right of color sequence - { 0, NULL }, // ec: End color (replaces lc+no+rc) - { LEN_STR_PAIR ("0") }, // rs: Reset to ordinary colors - { 0, NULL }, // no: Normal - { 0, NULL }, // fi: File: default - { LEN_STR_PAIR ("01;34") }, // di: Directory: bright blue - { LEN_STR_PAIR ("01;36") }, // ln: Symlink: bright cyan - { LEN_STR_PAIR ("33") }, // pi: Pipe: yellow/brown - { LEN_STR_PAIR ("01;35") }, // so: Socket: bright magenta - { LEN_STR_PAIR ("01;33") }, // bd: Block device: bright yellow - { LEN_STR_PAIR ("01;33") }, // cd: Char device: bright yellow - { 0, NULL }, // mi: Missing file: undefined - { 0, NULL }, // or: Orphaned symlink: undefined - { LEN_STR_PAIR ("01;32") }, // ex: Executable: bright green - { LEN_STR_PAIR ("01;35") }, // do: Door: bright magenta - { LEN_STR_PAIR ("37;41") }, // su: setuid: white on red - { LEN_STR_PAIR ("30;43") }, // sg: setgid: black on yellow - { LEN_STR_PAIR ("37;44") }, // st: sticky: black on blue - { LEN_STR_PAIR ("34;42") }, // ow: other-writable: blue on green - { LEN_STR_PAIR ("30;42") }, // tw: ow w/ sticky: black on green - { LEN_STR_PAIR ("30;41") }, // ca: black on red - { 0, NULL }, // mh: disabled by default - { LEN_STR_PAIR ("\033[K") }, // cl: clear to end of line + { LEN_STR_PAIR ("\033[") }, /* lc: Left of color sequence */ + { LEN_STR_PAIR ("m") }, /* rc: Right of color sequence */ + { 0, NULL }, /* ec: End color (replaces lc+no+rc) */ + { LEN_STR_PAIR ("0") }, /* rs: Reset to ordinary colors */ + { 0, NULL }, /* no: Normal */ + { 0, NULL }, /* fi: File: default */ + { LEN_STR_PAIR ("01;34") }, /* di: Directory: bright blue */ + { LEN_STR_PAIR ("01;36") }, /* ln: Symlink: bright cyan */ + { LEN_STR_PAIR ("33") }, /* pi: Pipe: yellow/brown */ + { LEN_STR_PAIR ("01;35") }, /* so: Socket: bright magenta */ + { LEN_STR_PAIR ("01;33") }, /* bd: Block device: bright yellow */ + { LEN_STR_PAIR ("01;33") }, /* cd: Char device: bright yellow */ + { 0, NULL }, /* mi: Missing file: undefined */ + { 0, NULL }, /* or: Orphaned symlink: undefined */ + { LEN_STR_PAIR ("01;32") }, /* ex: Executable: bright green */ + { LEN_STR_PAIR ("01;35") }, /* do: Door: bright magenta */ + { LEN_STR_PAIR ("37;41") }, /* su: setuid: white on red */ + { LEN_STR_PAIR ("30;43") }, /* sg: setgid: black on yellow */ + { LEN_STR_PAIR ("37;44") }, /* st: sticky: black on blue */ + { LEN_STR_PAIR ("34;42") }, /* ow: other-writable: blue on green */ + { LEN_STR_PAIR ("30;42") }, /* tw: ow w/ sticky: black on green */ + { LEN_STR_PAIR ("30;41") }, /* ca: black on red */ + { 0, NULL }, /* mh: disabled by default */ + { LEN_STR_PAIR ("\033[K") }, /* cl: clear to end of line */ }; /* Parse a string as part of the LS_COLORS variable; this may involve