1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-25 21:42:33 +03:00

Update comments for elog_start().

Forgot I was going to do this as part of the previous patch ...
This commit is contained in:
Tom Lane 2013-01-13 18:50:48 -05:00
parent b853eb9718
commit 24dd0502a1

View File

@ -1156,12 +1156,13 @@ getinternalerrposition(void)
* elog_start --- startup for old-style API * elog_start --- startup for old-style API
* *
* All that we do here is stash the hidden filename/lineno/funcname * All that we do here is stash the hidden filename/lineno/funcname
* arguments into a stack entry. * arguments into a stack entry, along with the current value of errno.
* *
* We need this to be separate from elog_finish because there's no other * We need this to be separate from elog_finish because there's no other
* portable way to deal with inserting extra arguments into the elog call. * C89-compliant way to deal with inserting extra arguments into the elog
* (If macros with variable numbers of arguments were portable, it'd be * call. (When using C99's __VA_ARGS__, we could possibly merge this with
* easy, but they aren't.) * elog_finish, but there doesn't seem to be a good way to save errno before
* evaluating the format arguments if we do that.)
*/ */
void void
elog_start(const char *filename, int lineno, const char *funcname) elog_start(const char *filename, int lineno, const char *funcname)