Show
Ignore:
Timestamp:
09/16/09 17:18:42 (3 years ago)
Author:
leo
Message:

built-in extension-functions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • XerialJ/trunk/sqlite-jdbc/sqlitejdbc/ext/extension-functions.c

    r3588 r3593  
    9999//#include "config.h" 
    100100 
    101 #define COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE 1 
     101//#define COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE 1 
    102102#define HAVE_ACOSH 1 
    103103#define HAVE_ASINH 1 
     
    131131#define _MAP_H_ 
    132132 
    133 #include <stdint.h> 
     133//#include <stdint.h> 
    134134 
    135135/* 
     
    139139 
    140140typedef int(*cmp_func)(const void *, const void *); 
    141 typedef void(*map_iterator)(void*, int64_t, void*); 
     141typedef void(*map_iterator)(void*, sqlite_int64, void*); 
    142142 
    143143typedef struct node{ 
     
    145145  struct node *r; 
    146146  void* data; 
    147   int64_t count; 
     147  sqlite_int64 count; 
    148148} node; 
    149149 
     
    18831883 
    18841884int 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); 
    18871887  /* printf("cmp %d <=> %d\n",aa,bb); */ 
    18881888  if(aa==bb) 
     
    19061906} 
    19071907 
    1908 void print_elem(void *e, int64_t c, void* p){ 
     1908void print_elem(void *e, sqlite_int64 c, void* p){ 
    19091909  int ee = *(int*)(e); 
    19101910  printf("%d => %lld\n", ee,c);