Deleted Added
full compact
sqlite3ext.h (342292) sqlite3ext.h (347347)
1/*
2** 2006 June 7
3**
4** The author disclaims copyright to this source code. In place of
5** a legal notice, here is a blessing:
6**
7** May you do good and not evil.
8** May you find forgiveness for yourself and forgive others.

--- 305 unchanged lines hidden (view full) ---

314 int (*create_window_function)(sqlite3*,const char*,int,int,void*,
315 void (*xStep)(sqlite3_context*,int,sqlite3_value**),
316 void (*xFinal)(sqlite3_context*),
317 void (*xValue)(sqlite3_context*),
318 void (*xInv)(sqlite3_context*,int,sqlite3_value**),
319 void(*xDestroy)(void*));
320 /* Version 3.26.0 and later */
321 const char *(*normalized_sql)(sqlite3_stmt*);
1/*
2** 2006 June 7
3**
4** The author disclaims copyright to this source code. In place of
5** a legal notice, here is a blessing:
6**
7** May you do good and not evil.
8** May you find forgiveness for yourself and forgive others.

--- 305 unchanged lines hidden (view full) ---

314 int (*create_window_function)(sqlite3*,const char*,int,int,void*,
315 void (*xStep)(sqlite3_context*,int,sqlite3_value**),
316 void (*xFinal)(sqlite3_context*),
317 void (*xValue)(sqlite3_context*),
318 void (*xInv)(sqlite3_context*,int,sqlite3_value**),
319 void(*xDestroy)(void*));
320 /* Version 3.26.0 and later */
321 const char *(*normalized_sql)(sqlite3_stmt*);
322 /* Version 3.28.0 and later */
323 int (*stmt_isexplain)(sqlite3_stmt*);
324 int (*value_frombind)(sqlite3_value*);
322};
323
324/*
325** This is the function signature used for all extension entry points. It
326** is also defined in the file "loadext.c".
327*/
328typedef int (*sqlite3_loadext_entry)(
329 sqlite3 *db, /* Handle to the database. */

--- 273 unchanged lines hidden (view full) ---

603#define sqlite3_str_reset sqlite3_api->str_reset
604#define sqlite3_str_errcode sqlite3_api->str_errcode
605#define sqlite3_str_length sqlite3_api->str_length
606#define sqlite3_str_value sqlite3_api->str_value
607/* Version 3.25.0 and later */
608#define sqlite3_create_window_function sqlite3_api->create_window_function
609/* Version 3.26.0 and later */
610#define sqlite3_normalized_sql sqlite3_api->normalized_sql
325};
326
327/*
328** This is the function signature used for all extension entry points. It
329** is also defined in the file "loadext.c".
330*/
331typedef int (*sqlite3_loadext_entry)(
332 sqlite3 *db, /* Handle to the database. */

--- 273 unchanged lines hidden (view full) ---

606#define sqlite3_str_reset sqlite3_api->str_reset
607#define sqlite3_str_errcode sqlite3_api->str_errcode
608#define sqlite3_str_length sqlite3_api->str_length
609#define sqlite3_str_value sqlite3_api->str_value
610/* Version 3.25.0 and later */
611#define sqlite3_create_window_function sqlite3_api->create_window_function
612/* Version 3.26.0 and later */
613#define sqlite3_normalized_sql sqlite3_api->normalized_sql
614/* Version 3.28.0 and later */
615#define sqlite3_stmt_isexplain sqlite3_api->isexplain
616#define sqlite3_value_frombind sqlite3_api->frombind
611#endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */
612
613#if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)
614 /* This case when the file really is being compiled as a loadable
615 ** extension */
616# define SQLITE_EXTENSION_INIT1 const sqlite3_api_routines *sqlite3_api=0;
617# define SQLITE_EXTENSION_INIT2(v) sqlite3_api=v;
618# define SQLITE_EXTENSION_INIT3 \
619 extern const sqlite3_api_routines *sqlite3_api;
620#else
621 /* This case when the file is being statically linked into the
622 ** application */
623# define SQLITE_EXTENSION_INIT1 /*no-op*/
624# define SQLITE_EXTENSION_INIT2(v) (void)v; /* unused parameter */
625# define SQLITE_EXTENSION_INIT3 /*no-op*/
626#endif
627
628#endif /* SQLITE3EXT_H */
617#endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */
618
619#if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)
620 /* This case when the file really is being compiled as a loadable
621 ** extension */
622# define SQLITE_EXTENSION_INIT1 const sqlite3_api_routines *sqlite3_api=0;
623# define SQLITE_EXTENSION_INIT2(v) sqlite3_api=v;
624# define SQLITE_EXTENSION_INIT3 \
625 extern const sqlite3_api_routines *sqlite3_api;
626#else
627 /* This case when the file is being statically linked into the
628 ** application */
629# define SQLITE_EXTENSION_INIT1 /*no-op*/
630# define SQLITE_EXTENSION_INIT2(v) (void)v; /* unused parameter */
631# define SQLITE_EXTENSION_INIT3 /*no-op*/
632#endif
633
634#endif /* SQLITE3EXT_H */