Skip to content

Commit 94b84a6

Browse files
committed
Don't use double-quotes in #include's of system headers, redux.
This cleans up some loose ends left by commit e8ca9ed. I hadn't looked closely enough at these places before, but now I have. The use of double-quoted #includes for Perl headers in plperl_system.h seems to be simply a mistake introduced in 6c944bf and faithfully copied forward since then. (I had thought possibly it was required by some weird Windows build setup, but there's no evidence of that in our history.) The occurrences in SectionMemoryManager.h and SectionMemoryManager.cpp evidently stem from those files' origin as LLVM code. It's understandable that LLVM would treat their own files as needing double-quoted #includes; but they're still system headers to us. I also applied the same check to *.c files, and found a few other random incorrect usages in both directions. Our ECPG headers and test files routinely use angle brackets to refer to ECPG headers. I left those usages alone, since it seems reasonable for an ECPG user to regard those headers as system headers.
1 parent 2311f19 commit 94b84a6

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

src/backend/jit/llvm/SectionMemoryManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
#ifdef USE_LLVM_BACKPORT_SECTION_MEMORY_MANAGER
4141

4242
#include "jit/SectionMemoryManager.h"
43-
#include "llvm/Support/MathExtras.h"
44-
#include "llvm/Support/Process.h"
43+
#include <llvm/Support/MathExtras.h>
44+
#include <llvm/Support/Process.h>
4545

4646
namespace llvm {
4747
namespace backport {

src/backend/storage/buffer/bufmgr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3333,7 +3333,7 @@ UnpinBufferNoOwner(BufferDesc *buf)
33333333
#define ST_COMPARE(a, b) ckpt_buforder_comparator(a, b)
33343334
#define ST_SCOPE static
33353335
#define ST_DEFINE
3336-
#include <lib/sort_template.h>
3336+
#include "lib/sort_template.h"
33373337

33383338
/*
33393339
* BufferSync -- Write out all dirty buffers in the pool.
@@ -6450,7 +6450,7 @@ ScheduleBufferTagForWriteback(WritebackContext *wb_context, IOContext io_context
64506450
#define ST_COMPARE(a, b) buffertag_comparator(&a->tag, &b->tag)
64516451
#define ST_SCOPE static
64526452
#define ST_DEFINE
6453-
#include <lib/sort_template.h>
6453+
#include "lib/sort_template.h"
64546454

64556455
/*
64566456
* Issue all pending writeback requests, previously scheduled with

src/bin/initdb/initdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#include <time.h>
6262

6363
#ifdef HAVE_SHM_OPEN
64-
#include "sys/mman.h"
64+
#include <sys/mman.h>
6565
#endif
6666

6767
#include "access/xlog_internal.h"

src/bin/pg_dump/compress_gzip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "pg_backup_utils.h"
1919

2020
#ifdef HAVE_LIBZ
21-
#include "zlib.h"
21+
#include <zlib.h>
2222

2323
/*----------------------
2424
* Compressor API

src/bin/pg_verifybackup/pg_verifybackup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#include <dirent.h>
1717
#include <fcntl.h>
18+
#include <limits.h>
1819
#include <sys/stat.h>
1920
#include <time.h>
2021

@@ -23,7 +24,6 @@
2324
#include "common/parse_manifest.h"
2425
#include "fe_utils/simple_list.h"
2526
#include "getopt_long.h"
26-
#include "limits.h"
2727
#include "pg_verifybackup.h"
2828
#include "pgtime.h"
2929

src/include/jit/SectionMemoryManager.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
#ifndef LLVM_EXECUTIONENGINE_BACKPORT_SECTIONMEMORYMANAGER_H
2020
#define LLVM_EXECUTIONENGINE_BACKPORT_SECTIONMEMORYMANAGER_H
2121

22-
#include "llvm/ADT/SmallVector.h"
23-
#include "llvm/ExecutionEngine/RTDyldMemoryManager.h"
24-
#include "llvm/Support/Alignment.h"
25-
#include "llvm/Support/Memory.h"
22+
#include <llvm/ADT/SmallVector.h>
23+
#include <llvm/ExecutionEngine/RTDyldMemoryManager.h>
24+
#include <llvm/Support/Alignment.h>
25+
#include <llvm/Support/Memory.h>
2626
#include <cstdint>
2727
#include <string>
2828
#include <system_error>

src/pl/plperl/plperl_system.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
* can compile against MULTIPLICITY Perl builds without including XSUB.h.
8383
*/
8484
#define PERL_NO_GET_CONTEXT
85-
#include "EXTERN.h"
86-
#include "perl.h"
85+
#include <EXTERN.h>
86+
#include <perl.h>
8787

8888
/*
8989
* We want to include XSUB.h only within .xs files, because on some platforms
@@ -117,7 +117,7 @@
117117
#undef unlink
118118
#endif
119119

120-
#include "XSUB.h"
120+
#include <XSUB.h>
121121
#endif
122122

123123
/* put back our *printf macros ... this must match src/include/port.h */

0 commit comments

Comments
 (0)