Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c4c194f1
Commit
c4c194f1
authored
Jul 31, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unportable coding for FRONTEND case.
parent
267a8f82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
src/backend/lib/dllist.c
src/backend/lib/dllist.c
+9
-10
No files found.
src/backend/lib/dllist.c
View file @
c4c194f1
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.2
3 2001/06/02 15:16:55 wieck
Exp $
* $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.2
4 2001/07/31 02:02:45 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
/* can be used in frontend or backend */
/* can be used in frontend or backend */
#ifdef FRONTEND
#ifdef FRONTEND
#include "postgres_fe.h"
#include "postgres_fe.h"
#include <sysexits.h>
/* No assert checks in frontend ... */
/* No assert checks in frontend ... */
#define Assert(condition)
#define Assert(condition)
#else
#else
...
@@ -34,14 +33,14 @@ DLNewList(void)
...
@@ -34,14 +33,14 @@ DLNewList(void)
l
=
(
Dllist
*
)
malloc
(
sizeof
(
Dllist
));
l
=
(
Dllist
*
)
malloc
(
sizeof
(
Dllist
));
if
(
l
==
NULL
)
if
(
l
==
NULL
)
#ifdef FRONTEND
{
{
fprintf
(
stderr
,
"Memory exhausted in DLNewList"
);
#ifdef FRONTEND
exit
(
EX_UNAVAILABLE
);
fprintf
(
stderr
,
"Memory exhausted in DLNewList
\n
"
);
}
exit
(
1
);
#else
#else
elog
(
ERROR
,
"Memory exhausted in DLNewList"
);
elog
(
ERROR
,
"Memory exhausted in DLNewList"
);
#endif
#endif
}
l
->
dll_head
=
0
;
l
->
dll_head
=
0
;
l
->
dll_tail
=
0
;
l
->
dll_tail
=
0
;
...
@@ -77,14 +76,14 @@ DLNewElem(void *val)
...
@@ -77,14 +76,14 @@ DLNewElem(void *val)
e
=
(
Dlelem
*
)
malloc
(
sizeof
(
Dlelem
));
e
=
(
Dlelem
*
)
malloc
(
sizeof
(
Dlelem
));
if
(
e
==
NULL
)
if
(
e
==
NULL
)
#ifdef FRONTEND
{
{
fprintf
(
stderr
,
"Memory exhausted in DLNewList"
);
#ifdef FRONTEND
exit
(
EX_UNAVAILABLE
);
fprintf
(
stderr
,
"Memory exhausted in DLNewElem
\n
"
);
}
exit
(
1
);
#else
#else
elog
(
ERROR
,
"Memory exhausted in DLNewElem"
);
elog
(
ERROR
,
"Memory exhausted in DLNewElem"
);
#endif
#endif
}
e
->
dle_next
=
0
;
e
->
dle_next
=
0
;
e
->
dle_prev
=
0
;
e
->
dle_prev
=
0
;
e
->
dle_val
=
val
;
e
->
dle_val
=
val
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment