1 /* @source embexit ************************************************************
2 **
3 ** General routines for exiting on success or failure
4 **
5 ** @author Copyright (c) 1999 Peter Rice
6 ** @version $Revision: 1.26 $
7 ** @modified $Date: 2012/09/03 14:44:01 $ by $Author: rice $
8 ** @@
9 **
10 ** This library is free software; you can redistribute it and/or
11 ** modify it under the terms of the GNU Lesser General Public
12 ** License as published by the Free Software Foundation; either
13 ** version 2.1 of the License, or (at your option) any later version.
14 **
15 ** This library is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ** Lesser General Public License for more details.
19 **
20 ** You should have received a copy of the GNU Lesser General Public
21 ** License along with this library; if not, write to the Free Software
22 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23 ** MA 02110-1301, USA.
24 **
25 ******************************************************************************/
26
27 #include "embexit.h"
28
29 /* any include with an Exit function */
30
31 #include "ajutil.h"
32 #include "embsig.h"
33 #include "embdbi.h"
34 #include "embgroup.h"
35 #include "embindex.h"
36 #include "embword.h"
37 #include "embpatlist.h"
38
39 #include "ajtextdb.h"
40 #include "ajseqdb.h"
41 #include "ajfeatdb.h"
42 #include "ajobodb.h"
43 #include "ajassemdb.h"
44 #include "ajrefseqdb.h"
45 #include "ajtaxdb.h"
46 #include "ajurldb.h"
47 #include "ajvardb.h"
48 #include "ajxmldb.h"
49 #include "ajresourcedb.h"
50
51 #include "ajgraph.h"
52 #include "ajacd.h"
53
54
55
56
57 /* @func embExit **************************************************************
58 **
59 ** Cleans up as necessary, and calls ajExit
60 **
61 ** @return [void]
62 **
63 ** @release 1.0.0
64 ** @@
65 ******************************************************************************/
66
embExit(void)67 __noreturn void embExit (void)
68 {
69 ajUtilLoginfo();
70 embSigExit();
71 embDbiExit();
72 embGrpExit();
73 embIndexExit();
74 embWordExit();
75 embPatlistExit();
76
77 ajAssemdbExit();
78 ajFeatdbExit();
79 ajObodbExit();
80 ajRefseqdbExit();
81 ajResourcedbExit();
82 ajSeqDbExit();
83 ajTaxdbExit();
84 ajTextdbExit();
85 ajUrldbExit();
86 ajVardbExit();
87 ajXmldbExit();
88
89 ajGraphicsExit();
90 ajAcdExit(ajFalse);
91
92 ajExit();
93 }
94
95
96
97
98 /* @func embExitBad ***********************************************************
99 **
100 ** Cleans up as necessary, and calls ajExitBad
101 **
102 ** @return [void]
103 **
104 ** @release 4.0.0
105 ** @@
106 ******************************************************************************/
107
embExitBad(void)108 __noreturn void embExitBad (void)
109 {
110 ajExitBad();
111 }
112