[Groonga-commit] groonga/groonga [master] Use meaningful name

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Mon Feb 18 23:56:55 JST 2013


Kouhei Sutou	2013-02-18 23:56:55 +0900 (Mon, 18 Feb 2013)

  New Revision: effd947509dd83e48b20f741b3248d7baad0772a
  https://github.com/groonga/groonga/commit/effd947509dd83e48b20f741b3248d7baad0772a

  Log:
    Use meaningful name
    
    v ->
    sorted_id

  Modified files:
    lib/geo.c

  Modified: lib/geo.c (+3 -3)
===================================================================
--- lib/geo.c    2013-02-18 23:56:17 +0900 (aba276b)
+++ lib/geo.c    2013-02-18 23:56:55 +0900 (c6dbb78)
@@ -634,8 +634,8 @@ grn_geo_table_sort_by_distance(grn_ctx *ctx,
     for (ep = entries + offset;
          n_entries < limit && ep < entries + n;
          n_entries++, ep++) {
-      grn_id *v;
-      if (!grn_array_add(ctx, (grn_array *)result, (void **)&v)) {
+      grn_id *sorted_id;
+      if (!grn_array_add(ctx, (grn_array *)result, (void **)&sorted_id)) {
         if (indexed_entries) {
           grn_hash_close(ctx, indexed_entries);
           indexed_entries = NULL;
@@ -643,7 +643,7 @@ grn_geo_table_sort_by_distance(grn_ctx *ctx,
         need_non_indexed_entries = GRN_FALSE;
         break;
       }
-      *v = ep->id;
+      *sorted_id = ep->id;
       if (indexed_entries) {
         grn_hash_add(ctx, indexed_entries, &(ep->id), sizeof(grn_id),
                      NULL, NULL);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index