Skip to content

Commit abc6944

Browse files
author
Artur Zakirov
committed
shared_ispell.c fixes
1 parent d1b5495 commit abc6944

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy