extern void audit ( const char *text ) ;
extern void begin_progress_message ( char *msg ) ;
extern void begin_wait_message ( char *msg , int ok_to_abort ) ;
extern void bw_map () ;
extern void colormap () ;
extern unsigned int countit ( COMPLEX *c , COMPLEX *z_start , COMPLEX *end , double *loop_real, double *loop_imag ) ;
extern void dispRT ( int nrows , int ncols , double *quat_dist , unsigned char *image ,
                     int lighting , double magnif ) ;
extern void end_printing ( HWND hwnd ) ;
extern void end_progress_message () ;
extern void end_wait_message () ;
extern int execute () ;
extern int initialize_for_printing ( HWND hwnd ) ;
extern int mand_thr ( double min_r_p , double max_r_p , double min_i_p , double max_i_p ,
                      unsigned int dwell_limit_p , int binary_decomp_p , int object_type_p ,
                      int dwell_vs_binary , double binary_threshold ,
                      COMPLEX center_p , int nrows_p , int ncols_p , unsigned int *dwells ,
                      double *loop_real , double *loop_imag ) ;
extern void *memalloc ( size_t n ) ;
extern void memclose () ;
extern void memfree ( void *ptr ) ;
extern void *memrealloc ( void *ptr , size_t size ) ;
extern void memtext ( const char *text ) ;
extern double msetdist ( COMPLEX *param , COMPLEX *start , int max_dwell , int julia , double *orbit_real , double *orbit_imag ) ;
extern void nomemclose () ;
extern void paint_main_window ( HWND hwnd ) ;
extern int quat_thr ( double Rcent , double Icent , double Jcent , double Kcent , double magnif , int collapse ,
                      QUATERNION *jparam , double elev , double az , int nrows , int ncols ,
                      double *out , QUATERNION *orbit ) ;
extern int save_img_file ( HWND hwnd , char *name ) ;
extern void save_img_file_init () ;
extern void setpos_progress_message ( double pos ) ;
extern void show_magnif () ;
extern void smooth_quat ( int nrows , int ncols , double *quat_dist ) ;
extern void tracquat ( double Rcent , double Icent , double Jcent , double Kcent ,
                       double magnif , int collapse , QUATERNION *jparam ,
                       double elev , double az , double rowpos , int ncols ,
                       double *out , QUATERNION *orbit ) ;
extern int user_pressed_escape () ;
extern int write_bmp ( char *filename , int nbytes , int nrows , int ncols , unsigned char *image ) ;
extern "C" {
extern LRESULT WINAPI MsgProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam ) ;
INT_PTR CALLBACK DialogAbout ( HWND hdwnd , UINT message ,
                               WPARAM wParam , LPARAM lParam ) ;
INT_PTR CALLBACK DialogWaitMessage ( HWND hdwnd , UINT message ,
                                     WPARAM wParam , LPARAM lParam ) ;
INT_PTR CALLBACK DialogProgress ( HWND hdwnd , UINT message ,
                                  WPARAM wParam , LPARAM lParam ) ;
INT_PTR CALLBACK DialogParams ( HWND hdwnd , UINT message ,
                                WPARAM wParam , LPARAM lParam ) ;
INT_PTR CALLBACK DialogColorMap ( HWND hdwnd , UINT message ,
                                WPARAM wParam , LPARAM lParam ) ;
INT_PTR CALLBACK DialogMagnify ( HWND hdwnd , UINT message ,
                                WPARAM wParam , LPARAM lParam ) ;
INT_PTR CALLBACK DialogPrintParams ( HWND hdwnd , UINT message ,
                                  WPARAM wParam , LPARAM lParam ) ;
}
