File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1156,12 +1156,13 @@ getinternalerrposition(void)
11561156 * elog_start --- startup for old-style API
11571157 *
11581158 * All that we do here is stash the hidden filename/lineno/funcname
1159- * arguments into a stack entry.
1159+ * arguments into a stack entry, along with the current value of errno .
11601160 *
11611161 * We need this to be separate from elog_finish because there's no other
1162- * portable way to deal with inserting extra arguments into the elog call.
1163- * (If macros with variable numbers of arguments were portable, it'd be
1164- * easy, but they aren't.)
1162+ * C89-compliant way to deal with inserting extra arguments into the elog
1163+ * call. (When using C99's __VA_ARGS__, we could possibly merge this with
1164+ * elog_finish, but there doesn't seem to be a good way to save errno before
1165+ * evaluating the format arguments if we do that.)
11651166 */
11661167void
11671168elog_start (const char * filename , int lineno , const char * funcname )
You can’t perform that action at this time.
0 commit comments