Beispiel #1
0
/*
 *	clean-up and exit the software
 */
int	java2cpp_exit( void)
{
#ifdef	YYDEBUG
	if( IS_FLAGS_SYMBOL(data.flags))
	{
		print_symbol_table();
	}
#endif
	de_clips_list(data.symbol_table);


#ifdef YYDEBUG
	print_typedef_table();
#endif
de_clips_list(data.typedef_table);
/*
*	Check if memory leak
*/
if(data.memory)
{
	fprintf(stderr, "Error: memory deallocation error: %d\n",data.memory);
}

/** check if compiler warnings */
if(data.warnings)
	fprintf(stderr, "Warning: compiler warnings: %d\n", data.warnings);
/** check for errors */
if(data.errors)
	fprintf(stderr, "Error: compiler errors: %d\n", data.errors);
return (data.errors);
}
Beispiel #2
0
/*
 *	clean-up and exit the software
 */
int	ansi_c_exit( void)
{
/*
 *	print the typedef table then deallocate it
 */
#ifdef	YYDEBUG
	print_typedef_table();
#endif
	de_clips_list( data.typedef_table);
/*
 *	print the symbol table 
 */
#ifdef	YYDEBUG
	if( IS_FLAGS_SYMBOL( data.flags))
	{
		print_symbol_table();
	}
#endif
/*
 *	deallocate the symbol table list
 */
	de_clips_list( data.symbol_table);
/*
 *	check if memory leak
 */
	if( data.memory)
		fprintf( stderr, "Error: memory deallocation error: %d\n", data.memory);
/*
 *	check if compiler warnings
 */
	if( data.warnings)
		fprintf( stderr, "Warning: compiler warnings: %d\n", data.warnings);
/*
 *	check if compiler errors 
 */
	if( data.errors)
		fprintf( stderr, "Error: compiler errors: %d\n", data.errors);
	return( data.errors);
}