X-Git-Url: http://sigaev.ru/git/gitweb.cgi?p=smlar.git;a=blobdiff_plain;f=smlar_guc.c;h=8ff0ad3d675ca0c29f6967a05df8c63f58f71de8;hp=d1cae326d9c16d3d6af42b5073b15cd8205718a3;hb=8d02df18c0bbfd6ccba94a9582499ec8746047e5;hpb=5cb298d7226344342759d54fe32d72665315d372;ds=sidebyside diff --git a/smlar_guc.c b/smlar_guc.c index d1cae32..8ff0ad3 100644 --- a/smlar_guc.c +++ b/smlar_guc.c @@ -39,7 +39,7 @@ SmlarLogAssign(bool newval, void *extra) static int smlar_smltype = ST_COSINE; static const struct config_enum_entry SmlarTypeOptions[] = { - {"cosine", ST_COSINE, false}, + {"cosine", ST_COSINE, false}, {"tfidf", ST_TFIDF, false}, {"overlap", ST_OVERLAP, false}, {NULL, 0, false} @@ -47,7 +47,7 @@ static const struct config_enum_entry SmlarTypeOptions[] = { static int smlar_tf_method = TF_N; static const struct config_enum_entry SmlarTFOptions[] = { - {"n", TF_N, false}, + {"n", TF_N, false}, {"log", TF_LOG, false}, {"const", TF_CONST, false}, {NULL, 0, false} @@ -199,12 +199,12 @@ GetSmlarUsePersistent(void) } PG_FUNCTION_INFO_V1(set_smlar_limit); -Datum set_smlar_limit(PG_FUNCTION_ARGS); +Datum set_smlar_limit(PG_FUNCTION_ARGS); Datum set_smlar_limit(PG_FUNCTION_ARGS) { - float4 nlimit = PG_GETARG_FLOAT4(0); - char buf[32]; + float4 nlimit = PG_GETARG_FLOAT4(0); + char buf[32]; /* init smlar guc */ initSmlarGUC(); @@ -220,7 +220,7 @@ set_smlar_limit(PG_FUNCTION_ARGS) } PG_FUNCTION_INFO_V1(show_smlar_limit); -Datum show_smlar_limit(PG_FUNCTION_ARGS); +Datum show_smlar_limit(PG_FUNCTION_ARGS); Datum show_smlar_limit(PG_FUNCTION_ARGS) {