Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitabc6944

Browse files
author
Artur Zakirov
committed
shared_ispell.c fixes
1 parentd1b5495 commitabc6944

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

‎README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ the config file (or update the current values)
4040
# libraries to load
4141
shared_preload_libraries = 'shared_ispell'
4242

43-
# known GUC prefixes
44-
custom_variable_classes = 'shared_ispell'
45-
4643
# config of the shared memory
4744
shared_ispell.max_size = 32MB
4845

‎src/shared_ispell.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -870,12 +870,6 @@ dispell_list_dicts(PG_FUNCTION_ARGS)
870870
dictname=cstring_to_text(dict->dictFile);
871871
affname=cstring_to_text(dict->affixFile);
872872

873-
// SET_VARSIZE(dictname, strlen(dict->dictFile) + VARHDRSZ);
874-
// SET_VARSIZE(affname, strlen(dict->affixFile) + VARHDRSZ);
875-
876-
// strcpy(dictname, dict->dictFile);
877-
// strcpy(affname, dict->affixFile);
878-
879873
values[0]=PointerGetDatum(dictname);
880874
values[1]=PointerGetDatum(affname);
881875
values[2]=UInt32GetDatum(dict->nwords);
@@ -959,10 +953,6 @@ dispell_list_stoplists(PG_FUNCTION_ARGS)
959953

960954
stopname=cstring_to_text(stoplist->stopFile);
961955

962-
// SET_VARSIZE(stopname, strlen(stoplist->stopFile) + VARHDRSZ);
963-
964-
// strcpy(VARDATA(stopname), stoplist->stopFile);
965-
966956
values[0]=PointerGetDatum(stopname);
967957
values[1]=UInt32GetDatum(stoplist->stop.len);
968958
values[2]=UInt32GetDatum(stoplist->nbytes);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp