Changeset 3593 for XerialJ/trunk/sqlite-jdbc/sqlitejdbc/ext
- Timestamp:
- 09/16/09 17:18:42 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
XerialJ/trunk/sqlite-jdbc/sqlitejdbc/ext/extension-functions.c
r3588 r3593 99 99 //#include "config.h" 100 100 101 #define COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE 1101 //#define COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE 1 102 102 #define HAVE_ACOSH 1 103 103 #define HAVE_ASINH 1 … … 131 131 #define _MAP_H_ 132 132 133 #include <stdint.h>133 //#include <stdint.h> 134 134 135 135 /* … … 139 139 140 140 typedef int(*cmp_func)(const void *, const void *); 141 typedef void(*map_iterator)(void*, int64_t, void*);141 typedef void(*map_iterator)(void*, sqlite_int64, void*); 142 142 143 143 typedef struct node{ … … 145 145 struct node *r; 146 146 void* data; 147 int64_tcount;147 sqlite_int64 count; 148 148 } node; 149 149 … … 1883 1883 1884 1884 int int_cmp(const void *a, const void *b){ 1885 int64_t aa = *(int64_t*)(a);1886 int64_t bb = *(int64_t*)(b);1885 sqlite_int64 aa = *(sqlite_int64 *)(a); 1886 sqlite_int64 bb = *(sqlite_int64 *)(b); 1887 1887 /* printf("cmp %d <=> %d\n",aa,bb); */ 1888 1888 if(aa==bb) … … 1906 1906 } 1907 1907 1908 void print_elem(void *e, int64_tc, void* p){1908 void print_elem(void *e, sqlite_int64 c, void* p){ 1909 1909 int ee = *(int*)(e); 1910 1910 printf("%d => %lld\n", ee,c);


