Use the default uncrustify config (with indentation changes) to reformat the code.

This commit is contained in:
Reece H. Dunn
2015-12-17 07:40:24 +00:00
parent 603f046154
commit 36be9ac13f
40 changed files with 5524 additions and 5411 deletions
+31 -31
View File
@@ -18,51 +18,51 @@ void debug_init()
void debug_enter(const char* text)
{
struct timeval tv;
struct timeval tv;
gettimeofday(&tv, NULL);
gettimeofday(&tv, NULL);
if (!fd_log)
{
debug_init();
}
if (!fd_log)
{
debug_init();
}
if (fd_log)
{
fprintf(fd_log, "%03d.%03dms > ENTER %s\n",(int)(tv.tv_sec%1000), (int)(tv.tv_usec/1000), text);
}
if (fd_log)
{
fprintf(fd_log, "%03d.%03dms > ENTER %s\n",(int)(tv.tv_sec%1000), (int)(tv.tv_usec/1000), text);
}
}
void debug_show(const char *format, ...)
{
va_list args;
va_start(args, format);
if (!fd_log)
{
debug_init();
}
if (fd_log)
{
vfprintf(fd_log, format, args);
}
va_end(args);
va_list args;
va_start(args, format);
if (!fd_log)
{
debug_init();
}
if (fd_log)
{
vfprintf(fd_log, format, args);
}
va_end(args);
}
void debug_time(const char* text)
{
struct timeval tv;
struct timeval tv;
gettimeofday(&tv, NULL);
gettimeofday(&tv, NULL);
if (!fd_log)
{
debug_init();
}
if (fd_log)
{
fprintf(fd_log, "%03d.%03dms > %s\n",(int)(tv.tv_sec%1000), (int)(tv.tv_usec/1000), text);
}
if (!fd_log)
{
debug_init();
}
if (fd_log)
{
fprintf(fd_log, "%03d.%03dms > %s\n",(int)(tv.tv_sec%1000), (int)(tv.tv_usec/1000), text);
}
}
#endif