summaryrefslogtreecommitdiff
path: root/output.h
diff options
context:
space:
mode:
Diffstat (limited to 'output.h')
-rw-r--r--output.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/output.h b/output.h
index 2bb1c39..1f0e2d7 100644
--- a/output.h
+++ b/output.h
@@ -22,10 +22,14 @@ struct output
};
extern struct output *output_context;
+extern unsigned int stdio_traced;
#define OUTPUT_SET(_new) do{ if ((_new)->syncout) output_context = (_new); }while(0)
#define OUTPUT_UNSET() do{ output_context = NULL; }while(0)
+#define OUTPUT_TRACED() do{ stdio_traced = 1; }while(0)
+#define OUTPUT_IS_TRACED() (!!stdio_traced)
+
FILE *output_tmpfile (char **, const char *);
/* Initialize and close a child output structure: if NULL do this program's