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
32924c1c
Commit
32924c1c
authored
Mar 23, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark exception and assert global variables as DLLIMPORT, so that plpgsql
can be compiled with asserts enabled on Windoze.
parent
aba61c52
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
18 deletions
+18
-18
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+3
-3
src/include/postgres.h
src/include/postgres.h
+5
-5
src/include/utils/excid.h
src/include/utils/excid.h
+10
-10
No files found.
src/backend/tcop/postgres.c
View file @
32924c1c
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.21
4 2001/03/22 06:16:17 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.21
5 2001/03/23 18:26:01 tgl
Exp $
*
*
* NOTES
* NOTES
* this is the "main" module of the postgres backend and
* this is the "main" module of the postgres backend and
...
@@ -87,7 +87,7 @@ CommandDest whereToSendOutput = Debug;
...
@@ -87,7 +87,7 @@ CommandDest whereToSendOutput = Debug;
static
bool
dontExecute
=
false
;
static
bool
dontExecute
=
false
;
/* note: these declarations had better match tcopprot.h */
/* note: these declarations had better match tcopprot.h */
DLLIMPORT
sigjmp_buf
Warn_restart
;
sigjmp_buf
Warn_restart
;
bool
Warn_restart_ready
=
false
;
bool
Warn_restart_ready
=
false
;
bool
InError
=
false
;
bool
InError
=
false
;
...
@@ -1703,7 +1703,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
...
@@ -1703,7 +1703,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
if
(
!
IsUnderPostmaster
)
if
(
!
IsUnderPostmaster
)
{
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.21
4 $ $Date: 2001/03/22 06:16:17
$
\n
"
);
puts
(
"$Revision: 1.21
5 $ $Date: 2001/03/23 18:26:01
$
\n
"
);
}
}
/*
/*
...
...
src/include/postgres.h
View file @
32924c1c
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1995, Regents of the University of California
* Portions Copyright (c) 1995, Regents of the University of California
*
*
* $Id: postgres.h,v 1.4
7 2001/03/22 04:00:25 momjian
Exp $
* $Id: postgres.h,v 1.4
8 2001/03/23 18:26:01 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -453,11 +453,11 @@ typedef struct Exception
...
@@ -453,11 +453,11 @@ typedef struct Exception
ExcMessage
message
;
ExcMessage
message
;
}
Exception
;
}
Exception
;
extern
Exception
FailedAssertion
;
extern
DLLIMPORT
Exception
FailedAssertion
;
extern
Exception
BadArg
;
extern
DLLIMPORT
Exception
BadArg
;
extern
Exception
BadState
;
extern
DLLIMPORT
Exception
BadState
;
extern
bool
assert_enabled
;
extern
DLLIMPORT
bool
assert_enabled
;
/*
/*
* USE_ASSERT_CHECKING, if defined, turns on all the assertions.
* USE_ASSERT_CHECKING, if defined, turns on all the assertions.
...
...
src/include/utils/excid.h
View file @
32924c1c
...
@@ -7,22 +7,22 @@
...
@@ -7,22 +7,22 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: excid.h,v 1.
9 2001/02/06 01:53:52
tgl Exp $
* $Id: excid.h,v 1.
10 2001/03/23 18:26:01
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
#ifndef EXCID_H
#ifndef EXCID_H
#define EXCID_H
#define EXCID_H
/* note: these first three are also declared in postgres.h */
extern
DLLIMPORT
Exception
FailedAssertion
;
extern
DLLIMPORT
Exception
BadState
;
extern
DLLIMPORT
Exception
BadArg
;
extern
DLLIMPORT
Exception
Unimplemented
;
extern
Exception
FailedAssertion
;
extern
DLLIMPORT
Exception
CatalogFailure
;
/* XXX inconsistent naming style */
extern
Exception
BadState
;
extern
DLLIMPORT
Exception
InternalError
;
/* XXX inconsistent naming style */
extern
Exception
BadArg
;
extern
DLLIMPORT
Exception
SemanticError
;
/* XXX inconsistent naming style */
extern
Exception
Unimplemented
;
extern
DLLIMPORT
Exception
SystemError
;
/* XXX inconsistent naming style */
extern
Exception
CatalogFailure
;
/* XXX inconsistent naming style */
extern
Exception
InternalError
;
/* XXX inconsistent naming style */
extern
Exception
SemanticError
;
/* XXX inconsistent naming style */
extern
Exception
SystemError
;
/* XXX inconsistent naming style */
#endif
/* EXCID_H */
#endif
/* EXCID_H */
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