Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7403e28

Browse files
committed
Identation fixes
1 parent 26b3e09 commit 7403e28

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

contrib/shared_ispell/src/shared_ispell.c

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,33 @@
2020
* ===== shared segment init (postmaster startup) =====
2121
*
2222
* _PG_init
23-
* -> ispell_shmem_startup (registered as a hook)
23+
* -> ispell_shmem_startup (registered as a hook)
2424
*
2525
* ===== dictionary init (backend) =====
2626
*
2727
* dispell_init
28-
* -> init_shared_dict
29-
* -> get_shared_dict
30-
* -> NIStartBuild
31-
* -> NIImportDictionary
32-
* -> NIImportAffixes
33-
* -> NISortDictionary
34-
* -> NISortAffixes
35-
* -> NIFinishBuild
36-
* -> sizeIspellDict
37-
* -> copyIspellDict
38-
* -> copySPNode
39-
* -> get_shared_stop_list
40-
* -> readstoplist
41-
* -> copyStopList
28+
* -> init_shared_dict
29+
* -> get_shared_dict
30+
* -> NIStartBuild
31+
* -> NIImportDictionary
32+
* -> NIImportAffixes
33+
* -> NISortDictionary
34+
* -> NISortAffixes
35+
* -> NIFinishBuild
36+
* -> sizeIspellDict
37+
* -> copyIspellDict
38+
* -> copySPNode
39+
* -> get_shared_stop_list
40+
* -> readstoplist
41+
* -> copyStopList
4242
*
4343
* ===== dictionary reinit after reset (backend) =====
4444
*
4545
* dispell_lexize
46-
* -> timestamp of lookup < last reset
47-
* -> init_shared_dict
48-
* (see dispell_init above)
49-
* -> SharedNINormalizeWord
46+
* -> timestamp of lookup < last reset
47+
* -> init_shared_dict
48+
* (see dispell_init above)
49+
* -> SharedNINormalizeWord
5050
*/
5151

5252
#include "postgres.h"
@@ -592,7 +592,7 @@ dispell_lexize(PG_FUNCTION_ARGS)
592592
char *txt;
593593
TSLexeme *res;
594594
TSLexeme *ptr,
595-
*cptr;
595+
*cptr;
596596

597597
if (len <= 0)
598598
PG_RETURN_POINTER(NULL);
@@ -703,13 +703,13 @@ copySPNode(SPNode *node)
703703
SPNode *copy = NULL;
704704

705705
if (node == NULL)
706-
return NULL;
706+
return NULL;
707707

708708
copy = (SPNode *) shalloc(offsetof(SPNode, data) + sizeof(SPNodeData) * node->length);
709709
memcpy(copy, node, offsetof(SPNode, data) + sizeof(SPNodeData) * node->length);
710710

711711
for (i = 0; i < node->length; i++)
712-
copy->data[i].node = copySPNode(node->data[i].node);
712+
copy->data[i].node = copySPNode(node->data[i].node);
713713

714714
return copy;
715715
}
@@ -721,7 +721,7 @@ sizeSPNode(SPNode *node)
721721
int size = 0;
722722

723723
if (node == NULL)
724-
return 0;
724+
return 0;
725725

726726
size = MAXALIGN(offsetof(SPNode, data) + sizeof(SPNodeData) * node->length);
727727

@@ -821,7 +821,7 @@ sizeIspellDict(IspellDict *dict, char *dictFile, char *affixFile)
821821
/* copy affix data */
822822
size += MAXALIGN(sizeof(char *) * dict->nAffixData);
823823
for (i = 0; i < dict->nAffixData; i++)
824-
size += MAXALIGN(sizeof(char) * strlen(dict->AffixData[i]) + 1);
824+
size += MAXALIGN(sizeof(char) * strlen(dict->AffixData[i]) + 1);
825825

826826
return size;
827827
}
@@ -848,10 +848,10 @@ dispell_list_dicts(PG_FUNCTION_ARGS)
848848

849849
/* Build a tuple descriptor for our result type */
850850
if (get_call_result_type(fcinfo, NULL, &tupdesc) != TYPEFUNC_COMPOSITE)
851-
ereport(ERROR,
852-
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
853-
errmsg("function returning record called in context "
854-
"that cannot accept type record")));
851+
ereport(ERROR,
852+
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
853+
errmsg("function returning record called in context "
854+
"that cannot accept type record")));
855855

856856
/*
857857
* generate attribute metadata needed later to produce tuples from raw

0 commit comments

Comments
 (0)