summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cr_cpri.h3
-rw-r--r--src/cr_main.c10
-rwxr-xr-xsrc/hlbin36408 -> 36280 bytes
3 files changed, 9 insertions, 4 deletions
diff --git a/src/cr_cpri.h b/src/cr_cpri.h
index 62aafc6..16c33af 100644
--- a/src/cr_cpri.h
+++ b/src/cr_cpri.h
@@ -22,7 +22,7 @@
*
* File : cr_cpri.h
*
- * @(#) [MB] cr_cpri.h Version 1.27 du 15/10/11 -
+ * @(#) [MB] cr_cpri.h Version 1.28 du 15/10/17 -
*
* ============================================================================
*/
@@ -37,6 +37,7 @@
#define CR_CONFIG_FILENAME ".hl.cfg"
#define CR_DEFLT_CONFIG_FILE "/etc/default/hl"
#define CR_ENV_DEFLT "HL_DEFAULT"
+#define CR_DEFLT_COLOR "3Y"
#define bool int
#define FALSE (0)
diff --git a/src/cr_main.c b/src/cr_main.c
index 61a1e44..36fffc8 100644
--- a/src/cr_main.c
+++ b/src/cr_main.c
@@ -20,7 +20,7 @@
*
* File : cr_main.c
*
- * @(#) [MB] cr_main.c Version 1.63 du 15/10/11 -
+ * @(#) [MB] cr_main.c Version 1.64 du 15/10/17 -
*
* Functions in this file :
* ~~~~~~~~~~~~~~~~~~~~~~~~
@@ -587,9 +587,13 @@ int main(int argc, char *argv[])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
_env_var_name = CR_ENV_DEFLT;
if ((_env_deflt = getenv(_env_var_name)) == 0) {
+#if 0
fprintf(stderr, "%s: minimal syntax but \"%s\" is undefined !\n",
G.prgname, _env_var_name);
exit(1);
+#else
+ _env_deflt = CR_DEFLT_COLOR;
+#endif
}
_lg = strlen(_env_deflt);
if ((_deflt_color_opt = malloc(_lg + 2)) == 0) {
@@ -732,7 +736,7 @@ int main(int argc, char *argv[])
break;
case 'V':
- fprintf(stderr, "%s: version %s\n", G.prgname, "1.63");
+ fprintf(stderr, "%s: version %s\n", G.prgname, "1.64");
exit(1);
break;
@@ -803,7 +807,7 @@ int main(int argc, char *argv[])
******************************************************************************/
void cr_usage(bool disp_config)
{
- fprintf(stderr, "%s: version %s\n", G.prgname, "1.63");
+ fprintf(stderr, "%s: version %s\n", G.prgname, "1.64");
fprintf(stderr, "Usage: %s [-h|-H|-V|-[[%%.]eiuvdDEL1234][-[rgybmcwRGYBMCWn] regexp ...][--config_name ...] ]\n",
G.prgname);
fprintf(stderr, " -h : help\n");
diff --git a/src/hl b/src/hl
index 18eedec..a102af3 100755
--- a/src/hl
+++ b/src/hl
Binary files differ