File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1156,12 +1156,13 @@ getinternalerrposition(void)
1156
1156
* elog_start --- startup for old-style API
1157
1157
*
1158
1158
* 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 .
1160
1160
*
1161
1161
* 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.)
1165
1166
*/
1166
1167
void
1167
1168
elog_start (const char * filename , int lineno , const char * funcname )
You can’t perform that action at this time.
0 commit comments