summaryrefslogtreecommitdiff
path: root/src/compilo.c
diff options
context:
space:
mode:
authorPixel <>2001-04-17 04:05:52 +0000
committerPixel <>2001-04-17 04:05:52 +0000
commit5aed7634c8993e3366817c4b20fca1aa18eacf21 (patch)
treecfb6c00a13b8f213255ea231a3d814f61ab2964b /src/compilo.c
parent55f981c9fca048fba18d0538be4ed5dc1cc3fe11 (diff)
Indentation plus faible
Diffstat (limited to 'src/compilo.c')
-rw-r--r--src/compilo.c62
1 files changed, 31 insertions, 31 deletions
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;
}