aboutsummaryrefslogtreecommitdiffstats
path: root/cfg.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-03-26 19:03:52 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-03-26 19:03:52 +0000
commit9660f76b9498ca64ff2c0d3372ff6ce7d4a92090 (patch)
tree3382711de58aef784bece794c81c249e2ca59b8b /cfg.c
parentc028ba39da4ad240a79d50ca39e6fc2bf0590e2c (diff)
downloadlcd4linux-9660f76b9498ca64ff2c0d3372ff6ce7d4a92090.tar.gz
[lcd4linux @ 2000-03-26 19:03:52 by reinelt]
more Pixmap renaming quoting of '#' in config file git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@23 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'cfg.c')
-rw-r--r--cfg.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/cfg.c b/cfg.c
index 4b97a0a..1e0df08 100644
--- a/cfg.c
+++ b/cfg.c
@@ -1,4 +1,4 @@
-/* $Id: cfg.c,v 1.2 2000/03/10 17:36:02 reinelt Exp $
+/* $Id: cfg.c,v 1.3 2000/03/26 19:03:52 reinelt Exp $
*
* config file stuff
*
@@ -20,6 +20,11 @@
*
*
* $Log: cfg.c,v $
+ * Revision 1.3 2000/03/26 19:03:52 reinelt
+ *
+ * more Pixmap renaming
+ * quoting of '#' in config file
+ *
* Revision 1.2 2000/03/10 17:36:02 reinelt
*
* first unstable but running release
@@ -84,7 +89,8 @@ static char *strip (char *s)
for (p=s; *p; p++) {
if (*p=='"') do p++; while (*p && *p!='\n' && *p!='"');
if (*p=='\'') do p++; while (*p && *p!='\n' && *p!='\'');
- if (*p=='#' || *p=='\n') {
+ if (p>s && *(p-1)=='\\' && *p=='#')
+ if (*p=='\n' || (*p=='#' && (p==s || *(p-1)!='\\'))) {
*p='\0';
break;
}