[Groonga-commit] pgroonga/pgroonga at 29b6df5 [master] Use meaningful name

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Feb 15 14:54:09 JST 2015


Kouhei Sutou	2015-02-15 14:54:09 +0900 (Sun, 15 Feb 2015)

  New Revision: 29b6df551781513c99ce7845cb445029c3e4b328
  https://github.com/pgroonga/pgroonga/commit/29b6df551781513c99ce7845cb445029c3e4b328

  Message:
    Use meaningful name

  Modified files:
    pgroonga.c

  Modified: pgroonga.c (+7 -7)
===================================================================
--- pgroonga.c    2015-02-15 14:53:32 +0900 (1d99bf5)
+++ pgroonga.c    2015-02-15 14:54:09 +0900 (aa063ef)
@@ -938,19 +938,19 @@ exit:
 }
 
 /**
- * pgroonga.contain(target text, key text) : bool
+ * pgroonga.contain(target text, query text) : bool
  */
 Datum
 pgroonga_contain_text(PG_FUNCTION_ARGS)
 {
 	text *target = PG_GETARG_TEXT_PP(0);
-	text *key = PG_GETARG_TEXT_PP(1);
+	text *query = PG_GETARG_TEXT_PP(1);
 	grn_bool contained;
 
 	contained = pgroonga_contain_raw(VARDATA_ANY(target),
 									 VARSIZE_ANY_EXHDR(target),
-									 VARDATA_ANY(key),
-									 VARSIZE_ANY_EXHDR(key));
+									 VARDATA_ANY(query),
+									 VARSIZE_ANY_EXHDR(query));
 	PG_RETURN_BOOL(contained);
 }
 
@@ -1001,18 +1001,18 @@ pgroonga_contain_text_array(PG_FUNCTION_ARGS)
 }
 
 /**
- * pgroonga.contain(target varchar, key varchar) : bool
+ * pgroonga.contain(target varchar, query varchar) : bool
  */
 Datum
 pgroonga_contain_varchar(PG_FUNCTION_ARGS)
 {
 	VarChar *target = PG_GETARG_VARCHAR_PP(0);
-	VarChar *key = PG_GETARG_VARCHAR_PP(1);
+	VarChar *query = PG_GETARG_VARCHAR_PP(1);
 	grn_bool contained;
 
 	contained =
 		pgroonga_contain_raw(VARDATA_ANY(target), VARSIZE_ANY_EXHDR(target),
-							 VARDATA_ANY(key), VARSIZE_ANY_EXHDR(key));
+							 VARDATA_ANY(query), VARSIZE_ANY_EXHDR(query));
 	PG_RETURN_BOOL(contained);
 }
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index