Remove braces around single-line if/while/for/etc. and related cleanup.

This commit is contained in:
Reece H. Dunn
2015-12-22 20:40:10 +00:00
parent 9a837c8182
commit d345d74f64
29 changed files with 783 additions and 1375 deletions
+6 -12
View File
@@ -42,13 +42,11 @@ void debug_enter(const char *text)
gettimeofday(&tv, NULL);
if (!fd_log) {
if (!fd_log)
debug_init();
}
if (fd_log) {
if (fd_log)
fprintf(fd_log, "%03d.%03dms > ENTER %s\n", (int)(tv.tv_sec%1000), (int)(tv.tv_usec/1000), text);
}
}
@@ -56,12 +54,10 @@ void debug_show(const char *format, ...)
{
va_list args;
va_start(args, format);
if (!fd_log) {
if (!fd_log)
debug_init();
}
if (fd_log) {
if (fd_log)
vfprintf(fd_log, format, args);
}
va_end(args);
}
@@ -71,12 +67,10 @@ void debug_time(const char *text)
gettimeofday(&tv, NULL);
if (!fd_log) {
if (!fd_log)
debug_init();
}
if (fd_log) {
if (fd_log)
fprintf(fd_log, "%03d.%03dms > %s\n", (int)(tv.tv_sec%1000), (int)(tv.tv_usec/1000), text);
}
}
#endif