このページを編集する際は、編集に関する方針に従ってください。

概要

postgresql-8.1.4/src/backend/port/ipc_test.c

postgresql-8.1.4/src/backend/utils/error/elog.c

引数

実装

postgresql-8.1.4/src/backend/port/ipc_test.c

int errmsg_internal(const char *fmt,...) {

	fprintf(stderr, "ERROR: %s\n", fmt);
	return 0;					/* return value does not matter */

}

postgresql-8.1.4/src/backend/utils/error/elog.c

int errmsg_internal(const char *fmt,...) {

	ErrorData  *edata = &errordata[errordata_stack_depth];
	MemoryContext oldcontext;
	recursion_depth++;
	CHECK_STACK_DEPTH();
	oldcontext = MemoryContextSwitchTo(ErrorContext);
	EVALUATE_MESSAGE(message, false);
	MemoryContextSwitchTo(oldcontext);
	recursion_depth--;
	return 0;					/* return value does not matter */

}

呼出元

備考

/*
* errmsg_internal --- add a primary error message text to the current error
*
* This is exactly like errmsg() except that strings passed to errmsg_internal
* are customarily left out of the internationalization message dictionary.
* This should be used for "can't happen" cases that are probably not worth
* spending translation effort on.
*/

履歴

コメント



トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS