
#pragma once

#include <String.h>

typedef int bool;
extern char scratchbuffer[1000];

void program_quit(int exit_num =0);

void debug (char* msg);


// The gnu libg++ 1.36.3 include file sys/time.h does not have a valid
// definition of  struct timezone -- Its size cannot be derived.
// This is the C version.
// When libg++ is fixed, just delete this statement,
// and rename all references to  timezone_hack  back to  timezone  .
extern "C" {
struct timezone_hack {
        int     tz_minuteswest; /* minutes west of Greenwich */
        int     tz_dsttime;     /* type of dst correction */
};
}
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


typedef String Doc;

void emergency_program_quit ();
void program_quit (int status =0);
