for (vector<Uc_function *>::iterator it = functions.begin();
for (std::vector<Uc_function *>::iterator it = functions.begin();
int main	(	int argc,	char **argv	)	{	extern int yyparse();	extern FILE *yyin;	char *src;	char outname[150];	if (argc > 1)		{		src = argv[1];		yyin = fopen(argv[1], "r");		strcpy(outname, src);	// Set up output name.		char *dot = strrchr(outname, '.');		if (!dot)			dot = outname + strlen(outname);		strcpy(dot, ".uco");		}	else		{		src = "<stdin>";		yyin = stdin;		strcpy(outname, "a.ucout");		}	Uc_location::set_cur(src, 0);					// For now, use black gate.	Uc_function::set_intrinsics(Uc_function::bg);#if 0//++++TESTING	int tok;	extern int yylex();	while ((tok = yylex()) != EOF)		printf("%d\n", tok);#endif	yyparse();	int errs = Uc_location::get_num_errors();	if (errs > 0)			// Check for errors.		return errs;	ofstream out(outname);		// Open output.	for (vector<Uc_function *>::iterator it = functions.begin();					it != functions.end(); it++)		{		Uc_function *fun = *it;		fun->gen(out);		// Generate function.		}	return Uc_location::get_num_errors();	}