#if BYTE_ORDER == LITTLE_ENDIAN 
#ifdef __LITTLE_ENDIAN 
output_code(){	struct instruction *cur_instr;	patch_t *cur_patch;	critical_section_t *cs;	symbol_node_t *cur_node;	int instrcount;	instrcount = 0;	fprintf(ofile,"/*\n"" * DO NOT EDIT - This file is automatically generated\n"" *		 from the following source files:\n"" *\n""%s */\n", versions);	fprintf(ofile, "static uint8_t seqprog[] = {\n");	for (cur_instr = STAILQ_FIRST(&seq_program);	     cur_instr != NULL;	     cur_instr = STAILQ_NEXT(cur_instr, links)) {		fprintf(ofile, "%s\t0x%02x, 0x%02x, 0x%02x, 0x%02x",			cur_instr == STAILQ_FIRST(&seq_program) ? "" : ",\n",#if BYTE_ORDER == LITTLE_ENDIAN			cur_instr->format.bytes[0],			cur_instr->format.bytes[1],			cur_instr->format.bytes[2],			cur_instr->format.bytes[3]);#else			cur_instr->format.bytes[3],			cur_instr->format.bytes[2],			cur_instr->format.bytes[1],			cur_instr->format.bytes[0]);#endif		instrcount++;	}	fprintf(ofile, "\n};\n\n");	if (patch_arg_list == NULL)		stop("Patch argument list not defined",		     EX_DATAERR);	/*	 *  Output patch information.  Patch functions first.	 */	fprintf(ofile,"typedef int %spatch_func_t (%s);\n", prefix, patch_arg_list);	for (cur_node = SLIST_FIRST(&patch_functions);	     cur_node != NULL;	     cur_node = SLIST_NEXT(cur_node,links)) {		fprintf(ofile,"static %spatch_func_t %spatch%d_func;\n""\n""static int\n""%spatch%d_func(%s)\n""{\n""	return (%s);\n""}\n\n",			prefix,			prefix,			cur_node->symbol->info.condinfo->func_num,			prefix,			cur_node->symbol->info.condinfo->func_num,			patch_arg_list,			cur_node->symbol->name);	}	fprintf(ofile,"static struct patch {\n""	%spatch_func_t		*patch_func;\n""	uint32_t		 begin		:10,\n""				 skip_instr	:10,\n""				 skip_patch	:12;\n""} patches[] = {\n", prefix);	for (cur_patch = STAILQ_FIRST(&patches);	     cur_patch != NULL;	     cur_patch = STAILQ_NEXT(cur_patch,links)) {		fprintf(ofile, "%s\t{ %spatch%d_func, %d, %d, %d }",			cur_patch == STAILQ_FIRST(&patches) ? "" : ",\n",			prefix,			cur_patch->patch_func, cur_patch->begin,			cur_patch->skip_instr, cur_patch->skip_patch);	}	fprintf(ofile, "\n};\n\n");	fprintf(ofile,"static struct cs {\n""	uint16_t	begin;\n""	uint16_t	end;\n""} critical_sections[] = {\n");	for (cs = TAILQ_FIRST(&cs_tailq);	     cs != NULL;	     cs = TAILQ_NEXT(cs, links)) {		fprintf(ofile, "%s\t{ %d, %d }",			cs == TAILQ_FIRST(&cs_tailq) ? "" : ",\n",			cs->begin_addr, cs->end_addr);	}	fprintf(ofile, "\n};\n\n");	fprintf(ofile,"static const int num_critical_sections = sizeof(critical_sections)\n""				       / sizeof(*critical_sections);\n");	fprintf(stderr, "%s: %d instructions used\n", appname, instrcount);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/0a637a2cec724eeb4649f6d1c07026b72c39ad84/aicasm.c/clean/drivers/scsi/aic7xxx/aicasm/aicasm.c