Skip to content

Commit 5cbbdd2

Browse files
author
Michael Meskes
committed
Applied yet another patch by Christof. Thanks Cristof!
Synced parser.
1 parent b0299c5 commit 5cbbdd2

File tree

5 files changed

+147
-66
lines changed

5 files changed

+147
-66
lines changed

src/interfaces/ecpg/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,5 +1013,11 @@ Fri Nov 3 11:34:43 CET 2000
10131013
Sat Nov 4 17:42:43 CET 2000
10141014

10151015
- Added patch by Christof Petig to fix several small bugs.
1016+
1017+
Thu Nov 9 14:40:18 CET 2000
1018+
1019+
- Synced gram.y and preproc.y.
1020+
- Synced keyword.c.
1021+
- Added just another patch by Christof Petig.
10161022
- Set ecpg version to 2.8.0.
10171023
- Set library version to 3.2.0.

src/interfaces/ecpg/include/ecpglib.h

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
1-
#include "postgres.h"
2-
#include "libpq-fe.h"
1+
/*
2+
* this is a small part of c.h since we don't want to leak all postgres
3+
* definitions into ecpg programs
4+
*/
5+
6+
#ifndef __BEOS__
7+
#ifndef __cplusplus
8+
#ifndef bool
9+
#define bool char
10+
#endif /* ndef bool */
11+
#endif /* not C++ */
12+
13+
#ifndef true
14+
#define true ((bool) 1)
15+
#endif
16+
#ifndef false
17+
#define bool char
18+
#endif /* ndef bool */
19+
#endif /* __BEOS__ */
20+
21+
#ifndef TRUE
22+
#define TRUE 1
23+
#endif /* TRUE */
24+
25+
#ifndef FALSE
26+
#define FALSE 0
27+
#endif /* FALSE */
328

429
#ifdef __cplusplus
530
extern "C"

src/interfaces/ecpg/preproc/ecpg_keywords.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
static ScanKeyword ScanKeywords[] = {
2121
/* name value */
2222
{"allocate", SQL_ALLOCATE},
23-
{"at", SQL_AT},
2423
{"autocommit", SQL_AUTOCOMMIT},
2524
{"bool", SQL_BOOL},
2625
{"break", SQL_BREAK},

src/interfaces/ecpg/preproc/keywords.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.31 2000/11/07 08:46:27 meskes Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.32 2000/11/09 14:06:57 meskes Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -38,11 +38,13 @@ static ScanKeyword ScanKeywords[] = {
3838
{"aggregate", AGGREGATE},
3939
{"all", ALL},
4040
{"alter", ALTER},
41+
{"analyse", ANALYSE},
4142
{"analyze", ANALYZE},
4243
{"and", AND},
4344
{"any", ANY},
4445
{"as", AS},
4546
{"asc", ASC},
47+
{"at", AT},
4648
{"backward", BACKWARD},
4749
{"before", BEFORE},
4850
{"begin", BEGIN_TRANS},
@@ -60,6 +62,7 @@ static ScanKeyword ScanKeywords[] = {
6062
{"character", CHARACTER},
6163
{"characteristics", CHARACTERISTICS},
6264
{"check", CHECK},
65+
{"checkpoint", CHECKPOINT},
6366
{"close", CLOSE},
6467
{"cluster", CLUSTER},
6568
{"coalesce", COALESCE},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy