ssh $(MAC_SERVER) "source .zprofile && cd $(MAC_WORK) && $(TEST_CMD)"\r
ssh $(LINUX_SERVER) "source .zprofile && source /etc/profile.d/java.sh && cd $(LINUX_WORK) && $(TEST_CMD)"\r
ssh $(AMD_SERVER) "source .zprofile && cd $(AMD_WORK) && $(TEST_CMD)"\r
- ssh $(WIN_SERVER) "source .zprofile && cd $(WIN_WORK) && $(TEST_CMD) -DargLine='-Dsqlite.purejava=true'"\r
+ ssh $(MAC_SERVER) "source .zprofile && cd $(MAC_WORK) && $(TEST_CMD) -DargLine='-Dsqlite.purejava=true'"\r
\r
\r
release:\r
include Makefile.common
-nestedvm_version := 2007-06-30
+nestedvm_version := 2009-08-09
nestedvm := nestedvm-$(nestedvm_version)
default: test
dl/$(nestedvm).tgz:
@mkdir -p dl
cp ../archive/$(nestedvm).tgz $@
-# curl -odl/$(nestedvm).tgz http://files.zentus.com/sqlitejdbc/$(nestedvm).tgz
+# curl -odl/$(nestedvm).tgz http://nestedvm.ibex.org/dist/$(nestedvm).tgz
dl/$(sqlite)-amal.zip:
@mkdir -p dl
cp ../src/main/java/org/sqlite/Nested*.c build/$(sqlite)-nestedvm
perl -pi -e "s/sqlite3_api;/sqlite3_api = 0;/g" \
build/$(sqlite)-nestedvm/sqlite3ext.h
-
# we need a dummy main
echo 'int main() { return 0; }' >> build/$(sqlite)-nestedvm/sqlite3.c
# remove utimes
-DSQLITE_OMIT_LOAD_EXTENSION \
sqlite3.c; \
$$CC -c $$CFLAGS -o NestedDB.o Nested*.c)
-
./$(nestedvm)/upstream/install/bin/mips-unknown-elf-gcc \
- -march=mips1 --static -lc \
+ -march=mips1 --static \
-o $@ build/$(sqlite)-nestedvm/sqlite3.o \
- build/$(sqlite)-nestedvm/NestedDB.o
+ build/$(sqlite)-nestedvm/NestedDB.o -lm -lc
build/org/sqlite/SQLite.class: build/SQLite.mips
java -cp $(nestedvm)/build$(sep)$(nestedvm)/upstream/build/classgen/build \
//#include "config.h"
-#define COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE 1
+//#define COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE 1
#define HAVE_ACOSH 1
#define HAVE_ASINH 1
#define HAVE_ATANH 1
#ifndef _MAP_H_
#define _MAP_H_
-#include <stdint.h>
+//#include <stdint.h>
/*
** Simple binary tree implementation to use in median, mode and quartile calculations
*/
typedef int(*cmp_func)(const void *, const void *);
-typedef void(*map_iterator)(void*, int64_t, void*);
+typedef void(*map_iterator)(void*, sqlite_int64, void*);
typedef struct node{
struct node *l;
struct node *r;
void* data;
- int64_t count;
+ sqlite_int64 count;
} node;
typedef struct map{
}
int int_cmp(const void *a, const void *b){
- int64_t aa = *(int64_t *)(a);
- int64_t bb = *(int64_t *)(b);
+ sqlite_int64 aa = *(sqlite_int64 *)(a);
+ sqlite_int64 bb = *(sqlite_int64 *)(b);
/* printf("cmp %d <=> %d\n",aa,bb); */
if(aa==bb)
return 0;
return 1;
}
-void print_elem(void *e, int64_t c, void* p){
+void print_elem(void *e, sqlite_int64 c, void* p){
int ee = *(int*)(e);
printf("%d => %lld\n", ee,c);
}