File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 9
9
*
10
10
*
11
11
* IDENTIFICATION
12
- * $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.23 2001/06/02 15:16:55 wieck Exp $
12
+ * $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.24 2001/07/31 02:02:45 tgl Exp $
13
13
*
14
14
*-------------------------------------------------------------------------
15
15
*/
16
16
17
17
/* can be used in frontend or backend */
18
18
#ifdef FRONTEND
19
19
#include "postgres_fe.h"
20
- #include <sysexits.h>
21
20
/* No assert checks in frontend ... */
22
21
#define Assert (condition )
23
22
#else
@@ -34,14 +33,14 @@ DLNewList(void)
34
33
35
34
l = (Dllist * ) malloc (sizeof (Dllist ));
36
35
if (l == NULL )
37
- #ifdef FRONTEND
38
36
{
39
- fprintf ( stderr , "Memory exhausted in DLNewList" );
40
- exit ( EX_UNAVAILABLE );
41
- }
37
+ #ifdef FRONTEND
38
+ fprintf ( stderr , "Memory exhausted in DLNewList\n" );
39
+ exit ( 1 );
42
40
#else
43
41
elog (ERROR , "Memory exhausted in DLNewList" );
44
42
#endif
43
+ }
45
44
l -> dll_head = 0 ;
46
45
l -> dll_tail = 0 ;
47
46
@@ -77,14 +76,14 @@ DLNewElem(void *val)
77
76
78
77
e = (Dlelem * ) malloc (sizeof (Dlelem ));
79
78
if (e == NULL )
80
- #ifdef FRONTEND
81
79
{
82
- fprintf ( stderr , "Memory exhausted in DLNewList" );
83
- exit ( EX_UNAVAILABLE );
84
- }
80
+ #ifdef FRONTEND
81
+ fprintf ( stderr , "Memory exhausted in DLNewElem\n" );
82
+ exit ( 1 );
85
83
#else
86
84
elog (ERROR , "Memory exhausted in DLNewElem" );
87
85
#endif
86
+ }
88
87
e -> dle_next = 0 ;
89
88
e -> dle_prev = 0 ;
90
89
e -> dle_val = val ;
You can’t perform that action at this time.
0 commit comments