124
124
errmsg(const char *fmt,...)
125
125
/* This extension allows gcc to check the format string for consistency with
126
126
the supplied arguments. */
127
__attribute__((format(printf, 1, 2)));
127
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
130
130
errmsg_internal(const char *fmt,...)
131
131
/* This extension allows gcc to check the format string for consistency with
132
132
the supplied arguments. */
133
__attribute__((format(printf, 1, 2)));
133
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
136
136
errmsg_plural(const char *fmt_singular, const char *fmt_plural,
137
137
unsigned long n,...)
138
138
/* This extension allows gcc to check the format string for consistency with
139
139
the supplied arguments. */
140
__attribute__((format(printf, 1, 4)))
141
__attribute__((format(printf, 2, 4)));
140
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 4)))
141
__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 4)));
144
144
errdetail(const char *fmt,...)
145
145
/* This extension allows gcc to check the format string for consistency with
146
146
the supplied arguments. */
147
__attribute__((format(printf, 1, 2)));
147
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
150
150
errdetail_log(const char *fmt,...)
151
151
/* This extension allows gcc to check the format string for consistency with
152
152
the supplied arguments. */
153
__attribute__((format(printf, 1, 2)));
153
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
156
156
errdetail_plural(const char *fmt_singular, const char *fmt_plural,
157
157
unsigned long n,...)
158
158
/* This extension allows gcc to check the format string for consistency with
159
159
the supplied arguments. */
160
__attribute__((format(printf, 1, 4)))
161
__attribute__((format(printf, 2, 4)));
160
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 4)))
161
__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 4)));
164
164
errhint(const char *fmt,...)
165
165
/* This extension allows gcc to check the format string for consistency with
166
166
the supplied arguments. */
167
__attribute__((format(printf, 1, 2)));
167
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
170
170
errcontext(const char *fmt,...)
171
171
/* This extension allows gcc to check the format string for consistency with
172
172
the supplied arguments. */
173
__attribute__((format(printf, 1, 2)));
173
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
175
175
extern int errhidestmt(bool hide_stmt);