42
42
*
43
43
* ===== dictionary reinit after reset (backend) =====
44
44
*
45
- * contrib_dispell_lexize
45
+ * dispell_lexize
46
46
* -> timestamp of lookup < last reset
47
47
* -> init_shared_dict
48
- * (see contrib_dispell_init above)
48
+ * (see dispell_init above)
49
49
* -> SharedNINormalizeWord
50
50
*/
51
51
@@ -210,8 +210,8 @@ ispell_shmem_startup()
210
210
* This is called from backends that are looking up for a shared dictionary
211
211
* definition using a filename with dictionary / affixes.
212
212
*
213
- * This is called through contrib_dispell_init () which is responsible
214
- * for proper locking of the shared memory (using SegmentInfo->lock).
213
+ * This is called through dispell_init () which is responsible for proper locking
214
+ * of the shared memory (using SegmentInfo->lock).
215
215
*/
216
216
static SharedIspellDict *
217
217
get_shared_dict (char * words , char * affixes )
@@ -233,8 +233,8 @@ get_shared_dict(char *words, char *affixes)
233
233
* This is called from backends that are looking up for a list of stop words
234
234
* using a filename of the list.
235
235
*
236
- * This is called through dispell_init() which is responsible
237
- * for proper locking of the shared memory (using SegmentInfo->lock).
236
+ * This is called through dispell_init() which is responsible for proper locking
237
+ * of the shared memory (using SegmentInfo->lock).
238
238
*/
239
239
static SharedStopList *
240
240
get_shared_stop_list (char * stop )
@@ -285,8 +285,8 @@ clean_dict_affix(IspellDict *dict)
285
285
* shared segment. If not then loads the dictionary (word list).
286
286
* Affix list is loaded to a current backend process.
287
287
*
288
- * This is called through dispell_init() which is responsible
289
- * for proper locking of the shared memory (using SegmentInfo->lock).
288
+ * This is called through dispell_init() which is responsible for proper locking
289
+ * of the shared memory (using SegmentInfo->lock).
290
290
*/
291
291
static void
292
292
init_shared_dict (DictInfo * info , MemoryContext infoCntx ,
@@ -429,8 +429,8 @@ init_shared_dict(DictInfo *info, MemoryContext infoCntx,
429
429
info -> infoCntx = infoCntx ;
430
430
}
431
431
432
- PG_FUNCTION_INFO_V1 (contrib_dispell_init );
433
- PG_FUNCTION_INFO_V1 (contrib_dispell_lexize );
432
+ PG_FUNCTION_INFO_V1 (dispell_init );
433
+ PG_FUNCTION_INFO_V1 (dispell_lexize );
434
434
PG_FUNCTION_INFO_V1 (dispell_reset );
435
435
PG_FUNCTION_INFO_V1 (dispell_mem_available );
436
436
PG_FUNCTION_INFO_V1 (dispell_mem_used );
@@ -513,7 +513,7 @@ dispell_mem_used(PG_FUNCTION_ARGS)
513
513
* context.
514
514
*/
515
515
Datum
516
- contrib_dispell_init (PG_FUNCTION_ARGS )
516
+ dispell_init (PG_FUNCTION_ARGS )
517
517
{
518
518
List * dictoptions = (List * ) PG_GETARG_POINTER (0 );
519
519
char * dictFile = NULL ,
@@ -524,7 +524,7 @@ contrib_dispell_init(PG_FUNCTION_ARGS)
524
524
stoploaded = false;
525
525
ListCell * l ;
526
526
527
- /* this is the result passed to contrib_dispell_lexize */
527
+ /* this is the result passed to dispell_lexize */
528
528
DictInfo * info = (DictInfo * ) palloc0 (sizeof (DictInfo ));
529
529
530
530
foreach (l , dictoptions )
@@ -599,7 +599,7 @@ contrib_dispell_init(PG_FUNCTION_ARGS)
599
599
}
600
600
601
601
Datum
602
- contrib_dispell_lexize (PG_FUNCTION_ARGS )
602
+ dispell_lexize (PG_FUNCTION_ARGS )
603
603
{
604
604
DictInfo * info = (DictInfo * ) PG_GETARG_POINTER (0 );
605
605
char * in = (char * ) PG_GETARG_POINTER (1 );
0 commit comments