Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit52c9d25

Browse files
committed
Be careful to include postgres.h *before* any system headers, to ensure
that the right flavors of largefile-related definitions are seen.Most of these changes are probably unnecessary, but better safe thansorry.
1 parent3f63787 commit52c9d25

File tree

21 files changed

+68
-65
lines changed

21 files changed

+68
-65
lines changed

‎contrib/cube/cubeparse.y

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
#defineYYSTYPEchar *
88
#defineYYDEBUG1
99

10-
#include<string.h>
10+
#include"postgres.h"
11+
1112
#include"cubedata.h"
1213
#include"buffer.h"
1314

14-
#include"postgres.h"
1515
#include"utils/palloc.h"
1616
#include"utils/elog.h"
1717

‎contrib/cube/cubescan.l

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
#defineYYSTYPEchar *
77
#defineyylval cube_yylval
88

9-
#include<stdio.h>
9+
#include"postgres.h"
10+
1011
#include"cubeparse.h"
1112
#include"buffer.h"
1213

‎contrib/dblink/dblink.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
2727
*
2828
*/
29-
30-
#include<string.h>
3129
#include"postgres.h"
30+
3231
#include"libpq-fe.h"
3332
#include"libpq-int.h"
3433
#include"fmgr.h"

‎contrib/dbmirror/pending.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/****************************************************************************
22
* pending.c
3-
* $Id: pending.c,v 1.3 2002/09/04 22:49:22 petere Exp $
3+
* $Id: pending.c,v 1.4 2002/09/05 00:43:06 tgl Exp $
44
*
55
* This file contains a trigger for Postgresql-7.x to record changes to tables
66
* to a pending table for mirroring.
@@ -18,9 +18,10 @@
1818
*
1919
*
2020
***************************************************************************/
21+
#include<postgres.h>
22+
2123
#include<executor/spi.h>
2224
#include<commands/trigger.h>
23-
#include<postgres.h>
2425

2526
enumFieldUsage
2627
{

‎contrib/fuzzystrmatch/fuzzystrmatch.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@
4242
#ifndefFUZZYSTRMATCH_H
4343
#defineFUZZYSTRMATCH_H
4444

45-
#include<stdio.h>
46-
#include<string.h>
45+
#include"postgres.h"
46+
4747
#include<ctype.h>
4848

49-
#include"postgres.h"
5049
#include"fmgr.h"
5150
#include"utils/builtins.h"
5251

‎contrib/seg/segscan.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
** A scanner for EMP-style numeric ranges
44
*/
55

6-
#include<string.h>
7-
#include<stdio.h>
6+
#include"postgres.h"
7+
88
#include"segparse.h"
99
#include"buffer.h"
1010

‎contrib/tablefunc/tablefunc.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@
2525
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
2626
*
2727
*/
28-
#include<stdlib.h>
29-
#include<math.h>
30-
3128
#include"postgres.h"
3229

30+
#include<math.h>
31+
3332
#include"fmgr.h"
3433
#include"funcapi.h"
3534
#include"executor/spi.h"

‎contrib/tsearch/parser.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
%{
2-
#include<string.h>
2+
#include"postgres.h"
3+
34
#include"deflex.h"
45
#include"parser.h"
56

67
/* postgres allocation function*/
7-
#include"postgres.h"
88
#definefree pfree
99
#definemalloc palloc
1010
#definerealloc repalloc

‎src/backend/optimizer/geqo/geqo_selection.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: geqo_selection.c,v 1.13 2002/06/20 20:29:29 momjian Exp $
9+
* $Id: geqo_selection.c,v 1.14 2002/09/05 00:43:06 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -34,9 +34,10 @@
3434
/* */
3535
/*************************************************************/
3636

37+
#include"postgres.h"
38+
3739
#include<math.h>
3840

39-
#include"postgres.h"
4041
#include"optimizer/geqo_copy.h"
4142
#include"optimizer/geqo_random.h"
4243
#include"optimizer/geqo_selection.h"

‎src/backend/optimizer/path/tidpath.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/tidpath.c,v 1.10 2002/06/20 20:29:30 momjian Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/tidpath.c,v 1.11 2002/09/05 00:43:06 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
16-
#include<math.h>
17-
1816
#include"postgres.h"
1917

18+
#include<math.h>
19+
2020
#include"catalog/pg_operator.h"
2121
#include"optimizer/clauses.h"
2222
#include"optimizer/cost.h"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp