Пример #1
0
/** \brief Destructor
 */
bt_io_pfile_t::~bt_io_pfile_t()		throw()
{
	// close all pending bt_io_pfile_read_t
	DBGNET_ASSERT( read_db.empty() );
	while( !read_db.empty() )	nipmem_delete read_db.front();	
	// close all pending bt_io_pfile_write_t
	DBGNET_ASSERT( write_db.empty() );
	while( !write_db.empty() )	nipmem_delete write_db.front();	
	// remove the temporary files created by this bt_io_pfile_t
	remove_temp_files();
}
Пример #2
0
void disconnect_from_remote_host(int host)
{
	if (!isconnected) {
		return;
	}

	if (config.access_method[host] == FTP) {
		ftp_disconnect(host);
	}
	remove_temp_files(host);
	isconnected = FALSE;

	message(DISCONNECT, config.host_name[host], 0, host);
}
Пример #3
0
extern void fatalerror(char *s)
{   print_preamble();

    printf("Fatal error: %s\n",s);
    if (no_compiler_errors > 0) print_sorry_message();

#ifdef ARC_THROWBACK
    throwback(0, s);
    throwback_end();
#endif
#ifdef MAC_FACE
    close_all_source();
    if (temporary_files_switch) remove_temp_files();
    abort_transcript_file();
    free_arrays();
    if (store_the_text)
        my_free(&all_text,"transcription text");
    longjmp(g_fallback, 1);
#endif
    exit(1);
}