/ Check-in [eea06617]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add SQLITE_API macros in front of interface routines in the test_intarray.c extension.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: eea0661798e10018615854c871f24be0f8bb2ff9
User & Date: drh 2014-08-20 13:25:06
Context
2014-08-20
13:35
Size reduction and performance improvements in btree.c and the allocateSpace() routine. Also fix an assert() in freeSpace(). check-in: 121308fa user: drh tags: trunk
13:25
Add SQLITE_API macros in front of interface routines in the test_intarray.c extension. check-in: eea06617 user: drh tags: trunk
10:42
Fix a typo in the showdb usage message. check-in: 6c66beae user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test_intarray.c.

   212    212   ** Each intarray object corresponds to a virtual table in the TEMP table
   213    213   ** with a name of zName.
   214    214   **
   215    215   ** Destroy the intarray object by dropping the virtual table.  If not done
   216    216   ** explicitly by the application, the virtual table will be dropped implicitly
   217    217   ** by the system when the database connection is closed.
   218    218   */
   219         -int sqlite3_intarray_create(
          219  +SQLITE_API int sqlite3_intarray_create(
   220    220     sqlite3 *db,
   221    221     const char *zName,
   222    222     sqlite3_intarray **ppReturn
   223    223   ){
   224    224     int rc = SQLITE_OK;
   225    225   #ifndef SQLITE_OMIT_VIRTUALTABLE
   226    226     sqlite3_intarray *p;
................................................................................
   246    246   /*
   247    247   ** Bind a new array array of integers to a specific intarray object.
   248    248   **
   249    249   ** The array of integers bound must be unchanged for the duration of
   250    250   ** any query against the corresponding virtual table.  If the integer
   251    251   ** array does change or is deallocated undefined behavior will result.
   252    252   */
   253         -int sqlite3_intarray_bind(
          253  +SQLITE_API int sqlite3_intarray_bind(
   254    254     sqlite3_intarray *pIntArray,   /* The intarray object to bind to */
   255    255     int nElements,                 /* Number of elements in the intarray */
   256    256     sqlite3_int64 *aElements,      /* Content of the intarray */
   257    257     void (*xFree)(void*)           /* How to dispose of the intarray when done */
   258    258   ){
   259    259     if( pIntArray->xFree ){
   260    260       pIntArray->xFree(pIntArray->a);

Changes to src/test_intarray.h.

    98     98   ** Each intarray object corresponds to a virtual table in the TEMP table
    99     99   ** with a name of zName.
   100    100   **
   101    101   ** Destroy the intarray object by dropping the virtual table.  If not done
   102    102   ** explicitly by the application, the virtual table will be dropped implicitly
   103    103   ** by the system when the database connection is closed.
   104    104   */
   105         -int sqlite3_intarray_create(
          105  +SQLITE_API int sqlite3_intarray_create(
   106    106     sqlite3 *db,
   107    107     const char *zName,
   108    108     sqlite3_intarray **ppReturn
   109    109   );
   110    110   
   111    111   /*
   112    112   ** Bind a new array array of integers to a specific intarray object.
   113    113   **
   114    114   ** The array of integers bound must be unchanged for the duration of
   115    115   ** any query against the corresponding virtual table.  If the integer
   116    116   ** array does change or is deallocated undefined behavior will result.
   117    117   */
   118         -int sqlite3_intarray_bind(
          118  +SQLITE_API int sqlite3_intarray_bind(
   119    119     sqlite3_intarray *pIntArray,   /* The intarray object to bind to */
   120    120     int nElements,                 /* Number of elements in the intarray */
   121    121     sqlite3_int64 *aElements,      /* Content of the intarray */
   122    122     void (*xFree)(void*)           /* How to dispose of the intarray when done */
   123    123   );
   124    124   
   125    125   #ifdef __cplusplus
   126    126   }  /* End of the 'extern "C"' block */
   127    127   #endif
   128    128   #endif /* _INTARRAY_H_ */