From 5aed7634c8993e3366817c4b20fca1aa18eacf21 Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Tue, 17 Apr 2001 04:05:52 +0000 Subject: Indentation plus faible --- src/compilo.c | 62 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'src/compilo.c') diff --git a/src/compilo.c b/src/compilo.c index f2c4c98..0fa17eb 100644 --- a/src/compilo.c +++ b/src/compilo.c @@ -13,69 +13,69 @@ typedef void (*sighandler_t) (int); void invite(void) { - fprintf(stderr, _("Assembler v1.0\n\n")); + fprintf(stderr, _("Assembler v1.0\n\n")); } void usage(void) { - fprintf(stderr, _("Usage: compilo program.asm objet.out\n")); - exit(0); + fprintf(stderr, _("Usage: compilo program.asm objet.out\n")); + exit(0); } void init_all(void) { - fprintf(stderr, _(" o Initialising the meta engine... ")); + fprintf(stderr, _(" o Initialising the meta engine... ")); - if (meta_init()) { - exception(1, _("Meta parser init failed.")); - } + if (meta_init()) { + exception(1, _("Meta parser init failed.")); + } - fprintf(stderr, _(" Done!\n o Meta language loading... ")); + fprintf(stderr, _(" Done!\n o Meta language loading... ")); - if (meta_load("instructions.txt")) { - exception(1, _("Meta language loading failed.")); - } + if (meta_load("instructions.txt")) { + exception(1, _("Meta language loading failed.")); + } - fprintf(stderr, _(" Done!\n o Initialising the assembler core...")); + fprintf(stderr, _(" Done!\n o Initialising the assembler core...")); - if (assembler_init()) { - exception(1, _("Assembler core init failed.")); - } + if (assembler_init()) { + exception(1, _("Assembler core init failed.")); + } - fprintf(stderr, _(" Done!\n")); + fprintf(stderr, _(" Done!\n")); } void flush_all(void) { - assembler_flush(); - meta_flush(); + assembler_flush(); + meta_flush(); } void segfaulthand(int i) { - exception(1, _("Signal received: segfault")); + exception(1, _("Signal received: segfault")); } int main(int argc, char **argv) { - invite(); + invite(); #ifndef DEBUG - signal(SIGSEGV, segfaulthand); + signal(SIGSEGV, segfaulthand); #endif - if (argc != 3) - usage(); + if (argc != 3) + usage(); - fprintf(stderr, _("\nPerforming initialisation...\n\n")); - init_all(); + fprintf(stderr, _("\nPerforming initialisation...\n\n")); + init_all(); - assemble_file(argv[1], argv[2]); + assemble_file(argv[1], argv[2]); - fprintf(stderr, _("\nPerforming shutdown...\n\n")); - flush_all(); + fprintf(stderr, _("\nPerforming shutdown...\n\n")); + flush_all(); - signal(SIGSEGV, NULL); + signal(SIGSEGV, NULL); - fprintf(stderr, _("Exitting, bye!\n")); - return 0; + fprintf(stderr, _("Exitting, bye!\n")); + return 0; } -- cgit v1.2.3