Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1b70585

Browse files
committed
Someone remove a #define too much from pg_proc.h which breaks
compiling nbtsearch.c after configuring with --enable-cassert. Patch below. -- --------------------------------------------- Göran Thyni, sysadm, JMS Bildbasen, Kiruna
1 parent c312583 commit 1b70585

File tree

3 files changed

+105
-102
lines changed

3 files changed

+105
-102
lines changed

src/backend/parser/gram.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
*
219219
*
220220
* IDENTIFICATION
221-
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.10 1998/05/09 23:27:14 thomas Exp $
221+
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.11 1998/05/12 17:46:46 momjian Exp $
222222
*
223223
* HISTORY
224224
* AUTHOR DATE MAJOR EVENT
@@ -3978,7 +3978,7 @@ static const short yycheck[] = { 3,
39783978
-1, -1, 192
39793979
};
39803980
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
3981-
#line 3 "/usr/lib/bison.simple"
3981+
#line 3 "/usr/local/bison/bison.simple"
39823982

39833983
/* Skeleton output parser for bison,
39843984
Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
@@ -4171,7 +4171,7 @@ __yy_memcpy (char *to, char *from, int count)
41714171
#endif
41724172
#endif
41734173

4174-
#line 196 "/usr/lib/bison.simple"
4174+
#line 196 "/usr/local/bison/bison.simple"
41754175

41764176
/* The user can define YYPARSE_PARAM as the name of an argument to be passed
41774177
into yyparse. The argument should have type void *.
@@ -9517,7 +9517,7 @@ case 846:
95179517
break;}
95189518
}
95199519
/* the action file gets copied in in place of this dollarsign */
9520-
#line 498 "/usr/lib/bison.simple"
9520+
#line 498 "/usr/local/bison/bison.simple"
95219521

95229522
yyvsp -= yylen;
95239523
yyssp -= yylen;

src/backend/parser/parse.h

+99-97
Original file line numberDiff line numberDiff line change
@@ -128,103 +128,105 @@ typedef union
128128
#define TABLE 355
129129
#define TIME 356
130130
#define TIMESTAMP 357
131-
#define TO 358
132-
#define TRAILING 359
133-
#define TRANSACTION 360
134-
#define TRIM 361
135-
#define UNION 362
136-
#define UNIQUE 363
137-
#define UPDATE 364
138-
#define USING 365
139-
#define VALUES 366
140-
#define VARCHAR 367
141-
#define VARYING 368
142-
#define VIEW 369
143-
#define WHERE 370
144-
#define WITH 371
145-
#define WORK 372
146-
#define YEAR_P 373
147-
#define ZONE 374
148-
#define FALSE_P 375
149-
#define TRIGGER 376
150-
#define TRUE_P 377
151-
#define TYPE_P 378
152-
#define ABORT_TRANS 379
153-
#define AFTER 380
154-
#define AGGREGATE 381
155-
#define ANALYZE 382
156-
#define BACKWARD 383
157-
#define BEFORE 384
158-
#define BINARY 385
159-
#define CACHE 386
160-
#define CLUSTER 387
161-
#define COPY 388
162-
#define CYCLE 389
163-
#define DATABASE 390
164-
#define DELIMITERS 391
165-
#define DO 392
166-
#define EACH 393
167-
#define EXPLAIN 394
168-
#define EXTEND 395
169-
#define FORWARD 396
170-
#define FUNCTION 397
171-
#define HANDLER 398
172-
#define INCREMENT 399
173-
#define INDEX 400
174-
#define INHERITS 401
175-
#define INSTEAD 402
176-
#define ISNULL 403
177-
#define LANCOMPILER 404
178-
#define LISTEN 405
179-
#define LOAD 406
180-
#define LOCK_P 407
181-
#define LOCATION 408
182-
#define MAXVALUE 409
183-
#define MINVALUE 410
184-
#define MOVE 411
185-
#define NEW 412
186-
#define NONE 413
187-
#define NOTHING 414
188-
#define NOTNULL 415
189-
#define OIDS 416
190-
#define OPERATOR 417
191-
#define PROCEDURAL 418
192-
#define RECIPE 419
193-
#define RENAME 420
194-
#define RESET 421
195-
#define RETURNS 422
196-
#define ROW 423
197-
#define RULE 424
198-
#define SEQUENCE 425
199-
#define SETOF 426
200-
#define SHOW 427
201-
#define START 428
202-
#define STATEMENT 429
203-
#define STDIN 430
204-
#define STDOUT 431
205-
#define TRUSTED 432
206-
#define VACUUM 433
207-
#define VERBOSE 434
208-
#define VERSION 435
209-
#define ARCHIVE 436
210-
#define USER 437
211-
#define PASSWORD 438
212-
#define CREATEDB 439
213-
#define NOCREATEDB 440
214-
#define CREATEUSER 441
215-
#define NOCREATEUSER 442
216-
#define VALID 443
217-
#define UNTIL 444
218-
#define IDENT 445
219-
#define SCONST 446
220-
#define Op 447
221-
#define ICONST 448
222-
#define PARAM 449
223-
#define FCONST 450
224-
#define OP 451
225-
#define UMINUS 452
226-
#define TYPECAST 453
227-
#define REDUCE 454
131+
#define TIMEZONE_HOUR 358
132+
#define TIMEZONE_MINUTE 359
133+
#define TO 360
134+
#define TRAILING 361
135+
#define TRANSACTION 362
136+
#define TRIM 363
137+
#define UNION 364
138+
#define UNIQUE 365
139+
#define UPDATE 366
140+
#define USER 367
141+
#define USING 368
142+
#define VALUES 369
143+
#define VARCHAR 370
144+
#define VARYING 371
145+
#define VIEW 372
146+
#define WHERE 373
147+
#define WITH 374
148+
#define WORK 375
149+
#define YEAR_P 376
150+
#define ZONE 377
151+
#define FALSE_P 378
152+
#define TRIGGER 379
153+
#define TRUE_P 380
154+
#define TYPE_P 381
155+
#define ABORT_TRANS 382
156+
#define AFTER 383
157+
#define AGGREGATE 384
158+
#define ANALYZE 385
159+
#define BACKWARD 386
160+
#define BEFORE 387
161+
#define BINARY 388
162+
#define CACHE 389
163+
#define CLUSTER 390
164+
#define COPY 391
165+
#define CYCLE 392
166+
#define DATABASE 393
167+
#define DELIMITERS 394
168+
#define DO 395
169+
#define EACH 396
170+
#define EXPLAIN 397
171+
#define EXTEND 398
172+
#define FORWARD 399
173+
#define FUNCTION 400
174+
#define HANDLER 401
175+
#define INCREMENT 402
176+
#define INDEX 403
177+
#define INHERITS 404
178+
#define INSTEAD 405
179+
#define ISNULL 406
180+
#define LANCOMPILER 407
181+
#define LISTEN 408
182+
#define LOAD 409
183+
#define LOCK_P 410
184+
#define LOCATION 411
185+
#define MAXVALUE 412
186+
#define MINVALUE 413
187+
#define MOVE 414
188+
#define NEW 415
189+
#define NONE 416
190+
#define NOTHING 417
191+
#define NOTNULL 418
192+
#define OIDS 419
193+
#define OPERATOR 420
194+
#define PROCEDURAL 421
195+
#define RECIPE 422
196+
#define RENAME 423
197+
#define RESET 424
198+
#define RETURNS 425
199+
#define ROW 426
200+
#define RULE 427
201+
#define SEQUENCE 428
202+
#define SETOF 429
203+
#define SHOW 430
204+
#define START 431
205+
#define STATEMENT 432
206+
#define STDIN 433
207+
#define STDOUT 434
208+
#define TRUSTED 435
209+
#define VACUUM 436
210+
#define VERBOSE 437
211+
#define VERSION 438
212+
#define ARCHIVE 439
213+
#define PASSWORD 440
214+
#define CREATEDB 441
215+
#define NOCREATEDB 442
216+
#define CREATEUSER 443
217+
#define NOCREATEUSER 444
218+
#define VALID 445
219+
#define UNTIL 446
220+
#define IDENT 447
221+
#define SCONST 448
222+
#define Op 449
223+
#define ICONST 450
224+
#define PARAM 451
225+
#define FCONST 452
226+
#define OP 453
227+
#define UMINUS 454
228+
#define TYPECAST 455
229+
#define REDUCE 456
228230

229231

230232
extern YYSTYPE yylval;

src/include/catalog/pg_proc.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: pg_proc.h,v 1.56 1998/05/09 22:48:36 thomas Exp $
9+
* $Id: pg_proc.h,v 1.57 1998/05/12 17:46:48 momjian Exp $
1010
*
1111
* NOTES
1212
* The script catalog/genbki.sh reads this file and generates .bki
@@ -1225,6 +1225,7 @@ DESCR("equals");
12251225

12261226
DATA(insert OID = 1029 ( nullvalue PGUID 11 f t f 1 f 16 "0" 100 0 0 100 foo bar ));
12271227
DESCR("(internal)");
1228+
#define NullValueRegProcedure 1029
12281229
DATA(insert OID = 1030 ( nonnullvalue PGUID 11 f t f 1 f 16 "0" 100 0 0 100 foo bar ));
12291230
DESCR("(internal)");
12301231
DATA(insert OID = 1031 ( aclitemin PGUID 11 f t f 1 f 1033 "0" 100 0 0 100 foo bar ));

0 commit comments

Comments
 (0)