diff options
| author | Robert Haas | 2016-05-03 14:52:25 +0000 |
|---|---|---|
| committer | Robert Haas | 2016-05-03 14:52:25 +0000 |
| commit | 8826d850781cb328482c8f92af2a3d93385cd63b (patch) | |
| tree | 4fe1529d761610370259c5c8e3eab74b869c956b /src/backend/tsearch | |
| parent | 1e77949e67b94af4d2a350c6dac9109419932608 (diff) | |
Tweak a few more things in preparation for upcoming pgindent run.
These adjustments adjust code and comments in minor ways to prevent
pgindent from mangling them. Among other things, I tried to avoid
situations where pgindent would emit "a +b" instead of "a + b", and I
tried to avoid having it break up inline comments across multiple
lines.
Diffstat (limited to 'src/backend/tsearch')
| -rw-r--r-- | src/backend/tsearch/spell.c | 8 | ||||
| -rw-r--r-- | src/backend/tsearch/to_tsany.c | 9 |
2 files changed, 12 insertions, 5 deletions
diff --git a/src/backend/tsearch/spell.c b/src/backend/tsearch/spell.c index 5f1a97ea02c..f48664b09f9 100644 --- a/src/backend/tsearch/spell.c +++ b/src/backend/tsearch/spell.c @@ -1338,9 +1338,10 @@ NIImportOOAffixes(IspellDict *Conf, const char *filename) || (sflaglen > 2 && Conf->flagMode == FM_LONG)) goto nextline; - /* + /*-------- * Affix header. For example: * SFX \ N 1 + *-------- */ if (fields_read == 4) { @@ -1350,9 +1351,10 @@ NIImportOOAffixes(IspellDict *Conf, const char *filename) else flagflags = 0; } - /* + /*-------- * Affix fields. For example: - * SFX \ 0 Y/L [^Y] + * SFX \ 0 Y/L [^Y] + *-------- */ else { diff --git a/src/backend/tsearch/to_tsany.c b/src/backend/tsearch/to_tsany.c index 3f69d747028..d41f82c479a 100644 --- a/src/backend/tsearch/to_tsany.c +++ b/src/backend/tsearch/to_tsany.c @@ -311,7 +311,8 @@ pushval_morph(Datum opaque, TSQueryParserState state, char *strval, int lenval, } } - pos = prs.words[count].pos.pos; /* save current word's position */ + /* save current word's position */ + pos = prs.words[count].pos.pos; /* Go through all variants obtained from this token */ cntvar = 0; @@ -343,7 +344,11 @@ pushval_morph(Datum opaque, TSQueryParserState state, char *strval, int lenval, } if (cntpos) - pushOperator(state, data->qoperator, 1); /* distance may be useful */ + { + /* distance may be useful */ + pushOperator(state, data->qoperator, 1); + } + cntpos++; } |
