replaced returns from main by exits (bloody SUN)

This commit is contained in:
ceriel 1987-03-09 13:07:42 +00:00
parent 717baa8bd8
commit 1fdc5a5fe6

View file

@ -96,7 +96,7 @@ main(argc,argv) register string argv[]; {
continue; continue;
default: default:
fprintf(stderr,"illegal option : %c\n",*arg); fprintf(stderr,"illegal option : %c\n",*arg);
return 1; exit(1);
} }
# ifndef NDEBUG # ifndef NDEBUG
break; break;
@ -126,7 +126,7 @@ main(argc,argv) register string argv[]; {
# endif # endif
if ((fact = fopen(f_temp,"w")) == NULL) { if ((fact = fopen(f_temp,"w")) == NULL) {
fputs("Cannot create temporary\n",stderr); fputs("Cannot create temporary\n",stderr);
return 1; exit(1);
} }
a_init(); a_init();
readgrammar(argc,argv); readgrammar(argc,argv);
@ -149,7 +149,7 @@ main(argc,argv) register string argv[]; {
else gencode(argc); else gencode(argc);
UNLINK(f_temp); UNLINK(f_temp);
UNLINK(f_pars); UNLINK(f_pars);
return 0; exit(0);
} }
STATIC STATIC