Ziemowit Laski wrote: > Visual C++ Which one?
> correctly catches this. Oh? What exactly is illegal about this? > struct IcuScalar { > const char *zName; /* Function name */ > int nArg; /* Number of arguments */ > int enc; /* Optimal text encoding */ > void *pContext; /* sqlite3_user_data() context > */ > void (*xFunc)(sqlite3_context*,int,sqlite3_value**); > } scalars[] = { > ... > {"icu_load_collation", 2, SQLITE_UTF8, (void*)db, icuLoadCollation}, > }; > > should read > > } scalars[] = { > ... > { "icu_load_collation", 2, SQLITE_UTF8, 0, icuLoadCollation } > }; > > scalars[11].pContext = (void*)db; Regards, Clemens _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users