Changeset 3593 for XerialJ/trunk/sqlite-jdbc/sqlitejdbc
- Timestamp:
- 09/16/09 17:18:42 (3 years ago)
- Location:
- XerialJ/trunk/sqlite-jdbc/sqlitejdbc
- Files:
-
- 2 modified
-
Makefile.nested (modified) (4 diffs)
-
ext/extension-functions.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
XerialJ/trunk/sqlite-jdbc/sqlitejdbc/Makefile.nested
r3591 r3593 1 1 include Makefile.common 2 2 3 nestedvm_version := 200 7-06-303 nestedvm_version := 2009-08-09 4 4 nestedvm := nestedvm-$(nestedvm_version) 5 5 … … 32 32 @mkdir -p dl 33 33 cp ../archive/$(nestedvm).tgz $@ 34 # curl -odl/$(nestedvm).tgz http:// files.zentus.com/sqlitejdbc/$(nestedvm).tgz34 # curl -odl/$(nestedvm).tgz http://nestedvm.ibex.org/dist/$(nestedvm).tgz 35 35 36 36 dl/$(sqlite)-amal.zip: … … 50 50 perl -pi -e "s/sqlite3_api;/sqlite3_api = 0;/g" \ 51 51 build/$(sqlite)-nestedvm/sqlite3ext.h 52 53 52 # we need a dummy main 54 53 echo 'int main() { return 0; }' >> build/$(sqlite)-nestedvm/sqlite3.c … … 70 69 sqlite3.c; \ 71 70 $$CC -c $$CFLAGS -o NestedDB.o Nested*.c) 72 73 71 ./$(nestedvm)/upstream/install/bin/mips-unknown-elf-gcc \ 74 -march=mips1 --static -lc\72 -march=mips1 --static \ 75 73 -o $@ build/$(sqlite)-nestedvm/sqlite3.o \ 76 build/$(sqlite)-nestedvm/NestedDB.o 74 build/$(sqlite)-nestedvm/NestedDB.o -lm -lc 77 75 78 76 build/org/sqlite/SQLite.class: build/SQLite.mips -
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);


