Skip to content

Commit 06066de

Browse files
ashutosh-bapathackorum
authored andcommitted
Fix PGShmemType and HugePagesType typedefs
The automatic process for collecting typedefs in the buildfarm only picks up typedef names that are used to declare objects (variables, struct fields, function parameters or results). The typedef names mentioned in the subject are not referenced at all, anywhere. Hence they are not picked up by the buildfarm process causing their declarations to be wrongly indented. This commit changes them to plain enums thus avoiding the wrong indentation. Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com> Fix suggested by: Tom Lane <tgl@sss.pgh.pa.us>
1 parent 19733fa commit 06066de

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/include/storage/pg_shmem.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,21 @@ extern PGDLLIMPORT int huge_page_size;
4848
extern PGDLLIMPORT int huge_pages_status;
4949

5050
/* Possible values for huge_pages and huge_pages_status */
51-
typedef enum
51+
enum HugePagesType
5252
{
5353
HUGE_PAGES_OFF,
5454
HUGE_PAGES_ON,
5555
HUGE_PAGES_TRY, /* only for huge_pages */
5656
HUGE_PAGES_UNKNOWN, /* only for huge_pages_status */
57-
} HugePagesType;
57+
};
5858

5959
/* Possible values for shared_memory_type */
60-
typedef enum
60+
enum PGShmemType
6161
{
6262
SHMEM_TYPE_WINDOWS,
6363
SHMEM_TYPE_SYSV,
6464
SHMEM_TYPE_MMAP,
65-
} PGShmemType;
65+
};
6666

6767
#ifndef WIN32
6868
extern PGDLLIMPORT unsigned long UsedShmemSegID;

0 commit comments

Comments
 (0)