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

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Feb 15 14:53:32 JST 2015


Kouhei Sutou	2015-02-15 14:53:32 +0900 (Sun, 15 Feb 2015)

  New Revision: c15dd38155455143ab608ffd2329214f5f9f60b8
  https://github.com/pgroonga/pgroonga/commit/c15dd38155455143ab608ffd2329214f5f9f60b8

  Message:
    Use meaningful name

  Modified files:
    pgroonga.c

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



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