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

Commit0cf60fb

Browse files
committed
More cleaned out #include files
Makefile fixed for fmgr.h
1 parentd1e9a76 commit0cf60fb

File tree

5 files changed

+39
-52
lines changed

5 files changed

+39
-52
lines changed

‎src/backend/access/gist/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
# Makefile for access/gist
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/access/gist/Makefile,v 1.2 1996/11/03 09:06:47 scrappy Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/access/gist/Makefile,v 1.3 1996/11/05 08:18:42 scrappy Exp $
88
#
99
#-------------------------------------------------------------------------
1010

1111
SRCDIR = ../../..
1212
include ../../../Makefile.global
1313

14-
INCLUDE_OPT = -I../../port/$(PORTNAME)\
14+
INCLUDE_OPT = -I../..\
15+
-I../../port/$(PORTNAME)\
1516
-I../../../include
1617

1718
CFLAGS+=$(INCLUDE_OPT)

‎src/backend/access/gist/gist.c

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,24 @@
1111
*-------------------------------------------------------------------------
1212
*/
1313

14-
#include"postgres.h"
15-
16-
#include"fmgr.h"
17-
#include"access/genam.h"
18-
#include"access/gist.h"
19-
#include"access/gistscan.h"
20-
#include"access/heapam.h"
21-
#include"catalog/index.h"
22-
#include"executor/executor.h"
23-
#include"storage/bufmgr.h"
24-
#include"storage/bufpage.h"
25-
#include"storage/lmgr.h"
26-
#include"utils/palloc.h"
27-
#include"utils/syscache.h"
14+
#include<postgres.h>
15+
16+
#include<fmgr.h>
17+
#include<access/genam.h>
18+
#include<access/gist.h>
19+
#include<access/gistscan.h>
20+
#include<access/heapam.h>
21+
#include<catalog/index.h>
22+
#include<executor/executor.h>
23+
#include<storage/bufmgr.h>
24+
#include<storage/bufpage.h>
25+
#include<storage/lmgr.h>
26+
#include<utils/syscache.h>
2827

2928
#ifndefHAVE_MEMMOVE
30-
# include"regex/utils.h"
29+
# include<regex/utils.h>
30+
#else
31+
# include<string.h>
3132
#endif
3233

3334
/* non-export function prototypes */

‎src/backend/access/gist/gistget.c

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,18 @@
1111
*-------------------------------------------------------------------------
1212
*/
1313

14-
#include<stdio.h>
15-
#include<time.h>
14+
#include<postgres.h>
1615

17-
#include"postgres.h"
18-
19-
#include"access/relscan.h"
20-
#include"storage/bufpage.h"
21-
#include"access/sdir.h"
22-
#include"access/itup.h"
23-
#include"access/gist.h"
24-
#include"executor/execdebug.h"
25-
#include"utils/palloc.h"
26-
#include"storage/bufmgr.h"
16+
#include<access/relscan.h>
17+
#include<storage/bufpage.h>
18+
#include<access/sdir.h>
19+
#include<access/itup.h>
20+
#include<access/gist.h>
21+
#include<executor/execdebug.h>
22+
#include<storage/bufmgr.h>
2723

2824
#ifndefHAVE_MEMMOVE
29-
# include"regex/utils.h"
25+
# include<regex/utils.h>
3026
#else
3127
# include<string.h>
3228
#endif

‎src/backend/access/gist/gistscan.c

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,21 @@
1010
*-------------------------------------------------------------------------
1111
*/
1212

13-
#include<stdio.h>
14-
#include<time.h>
13+
#include<postgres.h>
1514

16-
#include"postgres.h"
17-
18-
#include"access/relscan.h"
19-
#include"access/gist.h"
20-
#include"access/genam.h"
21-
#include"storage/lmgr.h"
15+
#include<access/gist.h>
16+
#include<access/genam.h>
17+
#include<access/rtree.h>
18+
#include<storage/bufmgr.h>
19+
#include<access/giststrat.h>
20+
#include<storage/lmgr.h>
2221

2322
#ifndefHAVE_MEMMOVE
24-
# include"regex/utils.h"
23+
# include<regex/utils.h>
2524
#else
2625
# include<string.h>
2726
#endif
2827

29-
#include"utils/palloc.h"
30-
31-
#include"storage/block.h"
32-
#include"storage/off.h"
33-
#include"access/rtree.h"
34-
35-
#include"storage/bufmgr.h"
36-
37-
#include"access/giststrat.h"
38-
3928
/* routines defined and used here */
4029
staticvoidgistregscan(IndexScanDescs);
4130
staticvoidgistdropscan(IndexScanDescs);

‎src/backend/access/gist/giststrat.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
*-------------------------------------------------------------------------
1313
*/
1414

15-
#include"postgres.h"
15+
#include<postgres.h>
1616

17-
#include"access/gist.h"
18-
#include"access/istrat.h"
17+
#include<access/gist.h>
18+
#include<access/istrat.h>
1919

2020
/*
2121
* Note: negate, commute, and negatecommute all assume that operators are

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp