+enum failure_type {
+ OPTIONAL_CMD,
+ MANDATORY_CMD,
+};
+
+// Globals to set failuretest() policy
+extern bool failuretest_conservative;
+extern unsigned char failuretest_permissive;
+
+// Compares failure type to policy in effect, and either exits or
+// simply returns to the calling routine.
+void failuretest(failure_type type, int returnvalue);
+
+// Globals to control printing
+extern bool printing_is_switchable;
+extern bool printing_is_off;
+
+// Printing control functions
+inline void print_on()
+{
+ if (printing_is_switchable)
+ printing_is_off = false;
+}
+inline void print_off()
+{
+ if (printing_is_switchable)
+ printing_is_off = true;
+}