4 Mar
2013
4 Mar
'13
10:28 p.m.
This makes implementing `colon_printf` easier. printf("%s ", colstr.colon); printf(fmt, args); ... instead of printf("%s::%s ", colstr.colon, colstr.title); printf(fmt, args); ... I can change it if you guys prefer but I figured setting colstr.colon like this would minimize the amount of work that needs to be done at pretty print time. (That said, to be consistent with my argument, I should probably add that whitespace to colstr.colon too.)
+static void init_colors(int colors) +{ + if(colors == PM_COLOR_ON) { + colstr.colon = BOLDBLUE "::" BOLDWHITE;
Why add "::" here instead of making this a plain color like all of the other members and adding "::" in colon_printf?