1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Improved comments. No logical changes to code.

FossilOrigin-Name: a6b6c6c466f3feb257b4fc08ef6b9a27a68ca073
This commit is contained in:
drh
2016-03-21 11:57:13 +00:00
parent 8d2f41ccd2
commit 80fbee092e
3 changed files with 16 additions and 8 deletions

View File

@@ -118,12 +118,20 @@ const char *sqlite3StrNext(const char *z){
}
/*
** Set the current error code to err_code and clear any prior error message.
** Helper function for sqlite3Error() - called rarely. Broken out into
** a separate routine to avoid unnecessary register saves on entry to
** sqlite3Error().
*/
static SQLITE_NOINLINE void sqlite3ErrorFinish(sqlite3 *db, int err_code){
if( db->pErr ) sqlite3ValueSetNull(db->pErr);
sqlite3SystemError(db, err_code);
}
/*
** Set the current error code to err_code and clear any prior error message.
** Also set iSysErrno (by calling sqlite3System) if the err_code indicates
** that would be appropriate.
*/
void sqlite3Error(sqlite3 *db, int err_code){
assert( db!=0 );
db->errCode = err_code;