Skip to content

Commit aa457cf

Browse files
committed
trim spaces
1 parent 65e95c8 commit aa457cf

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

src/backend/tsearch/to_tsany.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ pushval_morph(Datum opaque, TSQueryParserState state, char *strval, int lenval,
279279
cntvar = 0,
280280
cntpos = 0,
281281
cnt = 0;
282-
MorphOpaque *data = (MorphOpaque*) DatumGetPointer(opaque);
282+
MorphOpaque *data = (MorphOpaque *) DatumGetPointer(opaque);
283283

284284
prs.lenwords = 4;
285285
prs.curwords = 0;

src/backend/utils/adt/tsquery_cleanup.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,9 +586,9 @@ cleanup_fakeval_and_phrase(TSQuery in)
586586
ptr = GETOPERAND(out);
587587
for (i = 0; i < out->size; i++)
588588
{
589-
QueryOperand *op = (QueryOperand*) (items + i);
589+
QueryOperand *op = (QueryOperand *) (items + i);
590590

591-
if (op->type != QI_VAL)
591+
if (op->type != QI_VAL)
592592
continue;
593593

594594
memcpy(ptr, GETOPERAND(in) + op->distance, op->length);
@@ -599,4 +599,3 @@ cleanup_fakeval_and_phrase(TSQuery in)
599599

600600
return out;
601601
}
602-

src/backend/utils/adt/tsquery_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ QTNTernary(QTNode *in)
195195
QTNode *cc = in->child[i];
196196

197197
/* OP_Phrase isn't associative */
198-
if (cc->valnode->type == QI_OPR &&
198+
if (cc->valnode->type == QI_OPR &&
199199
in->valnode->qoperator.oper == cc->valnode->qoperator.oper &&
200200
in->valnode->qoperator.oper != OP_PHRASE)
201201
{

src/backend/utils/adt/tsrank.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ compareDocR(const void *va, const void *vb)
527527
return (a->data.map.entry > b->data.map.entry) ? 1 : -1;
528528
}
529529

530-
return (WEP_GETWEIGHT(a->pos) > WEP_GETWEIGHT(b->pos)) ? 1 : -1;
530+
return (WEP_GETWEIGHT(a->pos) > WEP_GETWEIGHT(b->pos)) ? 1 : -1;
531531
}
532532

533533
return (WEP_GETPOS(a->pos) > WEP_GETPOS(b->pos)) ? 1 : -1;
@@ -682,7 +682,7 @@ Cover(DocRepresentation *doc, int len, QueryRepresentation *qr, CoverExt *ext)
682682
/* find lower bound of cover from found upper bound, move down */
683683
while (ptr >= doc + ext->pos)
684684
{
685-
/*
685+
/*
686686
* we scan doc from right to left, so pos info in reverse order!
687687
*/
688688
fillQueryRepresentationData(qr, ptr);
@@ -731,7 +731,7 @@ get_docrep(TSVector txt, QueryRepresentation *qr, int *doclen)
731731
doc = (DocRepresentation *) palloc(sizeof(DocRepresentation) * len);
732732

733733
/*
734-
* Iterate through query to make DocRepresentaion for words and it's entries
734+
* Iterate through query to make DocRepresentaion for words and it's entries
735735
* satisfied by query
736736
*/
737737
for (i = 0; i < qr->query->size; i++)

src/include/tsearch/ts_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ extern text *generateHeadline(HeadlineParsedText *prs);
104104
/*
105105
* Common check function for tsvector @@ tsquery
106106
*/
107-
typedef struct ExecPhraseData
107+
typedef struct ExecPhraseData
108108
{
109109
int npos;
110110
bool allocated;

0 commit comments

Comments
 (0)