From 01ca7ad07ac7f0c764fcb74c503c523505c69487 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Sat, 21 Jun 2008 09:24:39 +0000 Subject: [PATCH] Added comments to a couple of non-obvious lines (to me, anyway) git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1178 7f574dfc-610e-0410-a909-a81674777703 --- src/conky.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/conky.c b/src/conky.c index bd9e0ad..fdbfefb 100644 --- a/src/conky.c +++ b/src/conky.c @@ -915,6 +915,7 @@ static inline void new_alignr(char *buf, long c) new_special(buf, ALIGNR)->arg = c; } +// A postive offset pushes the text further left static inline void new_alignc(char *buf, long c) { new_special(buf, ALIGNC)->arg = c; @@ -7757,6 +7758,7 @@ void clean_up(void) static int string_to_bool(const char *s) { if (!s) { + // Assumes an option without a true/false means true return 1; } else if (strcasecmp(s, "yes") == 0) { return 1; -- 1.7.9.5