Re: [PATCHES] minor ts_type.h comment fix

2008-06-10 Thread Heikki Linnakangas

Jan Urbański wrote:

These should read TSQuery, not TSVector, no?


Yep. Applied.

--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

--
Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches


[PATCHES] minor ts_type.h comment fix

2008-06-09 Thread Jan Urbański

These should read TSQuery, not TSVector, no?
--
Jan Urbanski
GPG key ID: E583D7D2

ouden estin
*** src/include/tsearch/ts_type.h
--- src/include/tsearch/ts_type.h   2008-06-09 23:41:26.0 +0200
***
*** 239,248 
   */
  #define COMPUTESIZE(size, lenofoperand) ( HDRSIZETQ + (size) * 
sizeof(QueryItem) + (lenofoperand) )
  
! /* Returns a pointer to the first QueryItem in a TSVector */
  #define GETQUERY(x)  ((QueryItem*)( (char*)(x)+HDRSIZETQ ))
  
! /* Returns a pointer to the beginning of operands in a TSVector */
  #define GETOPERAND(x) ( (char*)GETQUERY(x) + ((TSQuery)(x))->size * 
sizeof(QueryItem) )
  
  /*
--- 239,248 
   */
  #define COMPUTESIZE(size, lenofoperand) ( HDRSIZETQ + (size) * 
sizeof(QueryItem) + (lenofoperand) )
  
! /* Returns a pointer to the first QueryItem in a TSQuery */
  #define GETQUERY(x)  ((QueryItem*)( (char*)(x)+HDRSIZETQ ))
  
! /* Returns a pointer to the beginning of operands in a TSQuery */
  #define GETOPERAND(x) ( (char*)GETQUERY(x) + ((TSQuery)(x))->size * 
sizeof(QueryItem) )
  
  /*

-- 
Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches