mirror of
https://github.com/postgres/postgres.git
synced 2025-06-22 02:52:08 +03:00
Pgindent run for 8.0.
This commit is contained in:
@ -326,10 +326,11 @@ unionkey(BITVECP sbase, GISTTYPE * add)
|
||||
Datum
|
||||
gtxtidx_union(PG_FUNCTION_ARGS)
|
||||
{
|
||||
GistEntryVector *entryvec = (GistEntryVector *) PG_GETARG_POINTER(0);
|
||||
GistEntryVector *entryvec = (GistEntryVector *) PG_GETARG_POINTER(0);
|
||||
int *size = (int *) PG_GETARG_POINTER(1);
|
||||
BITVEC base;
|
||||
int4 i,len;
|
||||
int4 i,
|
||||
len;
|
||||
int4 flag = 0;
|
||||
GISTTYPE *result;
|
||||
|
||||
@ -512,7 +513,7 @@ comparecost(const void *a, const void *b)
|
||||
Datum
|
||||
gtxtidx_picksplit(PG_FUNCTION_ARGS)
|
||||
{
|
||||
GistEntryVector *entryvec = (GistEntryVector *) PG_GETARG_POINTER(0);
|
||||
GistEntryVector *entryvec = (GistEntryVector *) PG_GETARG_POINTER(0);
|
||||
GIST_SPLITVEC *v = (GIST_SPLITVEC *) PG_GETARG_POINTER(1);
|
||||
OffsetNumber k,
|
||||
j;
|
||||
|
@ -241,16 +241,20 @@ pushval_morph(QPRS_STATE * state, int typeval, char *strval, int lenval)
|
||||
lemm = lemmatize(token, &lenlemm, type);
|
||||
if (lemm)
|
||||
{
|
||||
if ( lemm==token ) {
|
||||
char *ptrs=token,*ptrd;
|
||||
ptrd = lemm = palloc(lenlemm+1);
|
||||
while(ptrs-token<lenlemm) {
|
||||
if (lemm == token)
|
||||
{
|
||||
char *ptrs = token,
|
||||
*ptrd;
|
||||
|
||||
ptrd = lemm = palloc(lenlemm + 1);
|
||||
while (ptrs - token < lenlemm)
|
||||
{
|
||||
*ptrd = tolower((unsigned char) *ptrs);
|
||||
ptrs++;
|
||||
ptrd++;
|
||||
}
|
||||
*ptrd='\0';
|
||||
}
|
||||
*ptrd = '\0';
|
||||
}
|
||||
pushval_asis(state, VAL, lemm, lenlemm);
|
||||
pfree(lemm);
|
||||
}
|
||||
|
Reference in New Issue
Block a user