mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 15:26:23 -05:00
Use standard exit code as parameter to exit() in bindable.
This commit is contained in:
parent
639d912c88
commit
ebe4b9b2cc
13
bindable.c
13
bindable.c
@ -14,15 +14,6 @@
|
|||||||
#include "lock.h"
|
#include "lock.h"
|
||||||
#include "terminal.h"
|
#include "terminal.h"
|
||||||
|
|
||||||
#if VMS
|
|
||||||
#include <ssdef.h>
|
|
||||||
#define GOOD (SS$_NORMAL)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef GOOD
|
|
||||||
#define GOOD 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fancy quit command, as implemented by Norm. If the any buffer has
|
* Fancy quit command, as implemented by Norm. If the any buffer has
|
||||||
* changed do a write on that buffer and exit emacs, otherwise simply exit.
|
* changed do a write on that buffer and exit emacs, otherwise simply exit.
|
||||||
@ -76,14 +67,14 @@ int quit(int f, int n)
|
|||||||
TTputc('\r');
|
TTputc('\r');
|
||||||
TTclose();
|
TTclose();
|
||||||
TTkclose();
|
TTkclose();
|
||||||
exit(1);
|
exit( EXIT_FAILURE) ;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
vttidy();
|
vttidy();
|
||||||
if (f)
|
if (f)
|
||||||
exit(n);
|
exit(n);
|
||||||
else
|
else
|
||||||
exit(GOOD);
|
exit( EXIT_SUCCESS) ;
|
||||||
}
|
}
|
||||||
mlwrite("");
|
mlwrite("");
|
||||||
return s;
|
return s;
|
||||||
|
Loading…
Reference in New Issue
Block a user