Skip to content

Commit

Permalink
smokeview source: move show_timings to file_util
Browse files Browse the repository at this point in the history
  • Loading branch information
gforney committed Jul 28, 2024
1 parent 68a75dd commit c4030a0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions Source/shared/file_util.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "options.h"
#define IN_FILE_UTIL
#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
Expand Down
5 changes: 5 additions & 0 deletions Source/shared/file_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,9 @@ STREXTERN char STRDECL(dirseparator[],"/");
#endif
#endif

#ifdef IN_FILE_UTIL
int show_timings=0;
#else
extern int show_timings;
#endif
#endif
2 changes: 0 additions & 2 deletions Source/shared/options_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@
#define PRINT_CUM_TIMER(timer, label) PrintTime(__FILE__, __LINE__, &timer, label, 0)
#endif

SVEXTERN int SVDECL(show_timings, 0);

#include "lint.h"

#endif
1 change: 1 addition & 0 deletions Source/smokeview/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "smokeviewvars.h"
#include "command_args.h"
#include "fopen.h"
#include "file_util.h"

#ifdef WIN32
#include <direct.h>
Expand Down

0 comments on commit c4030a0

Please sign in to comment.