summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPixel <>2001-04-17 03:58:16 +0000
committerPixel <>2001-04-17 03:58:16 +0000
commita19da7ded119713b955816f1de69d71eef191ab0 (patch)
treeab5d3c8f41dda31834bb98f513d36f9d9e8166e1 /src
parent2a4ea1660a5a4ef6168940176f2f81fa1be93632 (diff)
Indentation
Diffstat (limited to 'src')
-rw-r--r--src/compilo.c2
-rw-r--r--src/linker.c2
-rw-r--r--src/simul.c22
3 files changed, 14 insertions, 12 deletions
diff --git a/src/compilo.c b/src/compilo.c
index 12a6f05..f2c4c98 100644
--- a/src/compilo.c
+++ b/src/compilo.c
@@ -73,7 +73,7 @@ int main(int argc, char **argv)
fprintf(stderr, _("\nPerforming shutdown...\n\n"));
flush_all();
-
+
signal(SIGSEGV, NULL);
fprintf(stderr, _("Exitting, bye!\n"));
diff --git a/src/linker.c b/src/linker.c
index 5016703..727f76f 100644
--- a/src/linker.c
+++ b/src/linker.c
@@ -62,7 +62,7 @@ int main(int argc, char **argv)
fprintf(stderr, _("\nPerforming shutdown...\n\n"));
flush_all();
-
+
signal(SIGSEGV, NULL);
fprintf(stderr, _("Exitting, bye!\n"));
diff --git a/src/simul.c b/src/simul.c
index e531150..19de608 100644
--- a/src/simul.c
+++ b/src/simul.c
@@ -40,16 +40,18 @@ void segfaulthand(int i)
exception(1, _("Signal received: segfault"));
}
-void ctrlbreakhand(int i) {
+void ctrlbreakhand(int i)
+{
debug = 1;
}
-char * readargs(int argc, char ** argv) {
- char * r = NULL;
-
+char *readargs(int argc, char **argv)
+{
+ char *r = NULL;
+
argc--;
argv++;
-
+
Rapide = 1;
while (argc) {
@@ -73,7 +75,7 @@ char * readargs(int argc, char ** argv) {
argv++;
argc--;
}
-
+
if (!r) {
usage();
}
@@ -83,7 +85,7 @@ char * readargs(int argc, char ** argv) {
int main(int argc, char **argv)
{
int i;
- char * nom;
+ char *nom;
invite();
@@ -91,7 +93,7 @@ int main(int argc, char **argv)
signal(SIGSEGV, segfaulthand);
signal(SIGINT, ctrlbreakhand);
-
+
fprintf(stderr, _("\nPerforming initialisation...\n\n"));
init_all();
@@ -102,12 +104,12 @@ int main(int argc, char **argv)
clearterm();
ChargeBinaire(nom);
clearterm();
-
+
popcontext();
fprintf(stderr, _("\nPerforming shutdown...\n\n"));
flush_all();
-
+
signal(SIGSEGV, NULL);
signal(SIGINT, NULL);