annotate sqlite/experimental.c @ 1695:3cf80d8a6d8d trunk

[svn] - Removed .cpp.o target since we don't have any .cpp files anymore. - A test build then revealed that we still had two .cpp files in Plugins/Input/musepack, fixed that. - Moved nenolod's fix from init.mk to objective.mk. - Removed call to ldconfig in Makefile and replaced it with a hint to call ldconfig manually, since ldconfig without parameters breaks some systems (mainly OpenBSD). - I hope I did not forget to list a change I did ;)
author js
date Fri, 15 Sep 2006 06:36:26 -0700
parents b6b61becdf4e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1434
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
1 /*
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
2 ** 2005 January 20
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
3 **
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
4 ** The author disclaims copyright to this source code. In place of
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
5 ** a legal notice, here is a blessing:
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
6 **
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
7 ** May you do good and not evil.
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
8 ** May you find forgiveness for yourself and forgive others.
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
9 ** May you share freely, never taking more than you give.
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
10 **
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
11 *************************************************************************
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
12 ** This file contains C code routines that are not a part of the official
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
13 ** SQLite API. These routines are unsupported.
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
14 **
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
15 ** $Id: experimental.c,v 1.4 2006/01/31 20:49:13 drh Exp $
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
16 */
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
17 #include "sqliteInt.h"
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
18 #include "os.h"
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
19
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
20 /*
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
21 ** Set all the parameters in the compiled SQL statement to NULL.
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
22 */
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
23 int sqlite3_clear_bindings(sqlite3_stmt *pStmt){
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
24 int i;
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
25 int rc = SQLITE_OK;
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
26 for(i=1; rc==SQLITE_OK && i<=sqlite3_bind_parameter_count(pStmt); i++){
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
27 rc = sqlite3_bind_null(pStmt, i);
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
28 }
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
29 return rc;
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
30 }
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
31
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
32 /*
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
33 ** Sleep for a little while. Return the amount of time slept.
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
34 */
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
35 int sqlite3_sleep(int ms){
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
36 return sqlite3OsSleep(ms);
b6b61becdf4e [svn] - add sqlite/ directory
nenolod
parents:
diff changeset
37 }