mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-21 00:53:23 +02:00
This improves on commit bbfd7edae5
by
making two simple changes:
* pg_attribute_noreturn now takes parentheses, ie pg_attribute_noreturn().
Likewise pg_attribute_unused(), pg_attribute_packed(). This reduces
pgindent's tendency to misformat declarations involving them.
* attributes are now always attached to function declarations, not
definitions. Previously some places were taking creative shortcuts,
which were not merely candidates for bad misformatting by pgindent
but often were outright wrong anyway. (It does little good to put a
noreturn annotation where callers can't see it.) In any case, if
we would like to believe that these macros can be used with non-gcc
compilers, we should avoid gratuitous variance in usage patterns.
I also went through and manually improved the formatting of a lot of
declarations, and got rid of excessively repetitive (and now obsolete
anyway) comments informing the reader what pg_attribute_printf is for.
18 lines
457 B
C
18 lines
457 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* help_config.h
|
|
* Interface to the --help-config option of main.c
|
|
*
|
|
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
|
|
*
|
|
* src/include/utils/help_config.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef HELP_CONFIG_H
|
|
#define HELP_CONFIG_H 1
|
|
|
|
extern void GucInfoMain(void) pg_attribute_noreturn();
|
|
|
|
#endif
|