[Groonga-commit] groonga/groonga at a7a6c61 [master] grn_pat: add comments to _grn_pat_cursor

Back to archive index

susumu.yata null+****@clear*****
Thu Oct 15 10:39:08 JST 2015


susumu.yata	2015-10-15 10:39:08 +0900 (Thu, 15 Oct 2015)

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

  Message:
    grn_pat: add comments to _grn_pat_cursor

  Modified files:
    lib/grn_pat.h

  Modified: lib/grn_pat.h (+6 -6)
===================================================================
--- lib/grn_pat.h    2015-10-14 13:56:01 +0900 (763c684)
+++ lib/grn_pat.h    2015-10-15 10:39:08 +0900 (c965c22)
@@ -78,14 +78,14 @@ typedef struct _grn_pat_cursor_entry grn_pat_cursor_entry;
 
 struct _grn_pat_cursor {
   grn_db_obj obj;
-  grn_id curr_rec;
+  grn_id curr_rec;   /* ID of the latest record */
   grn_pat *pat;
   grn_ctx *ctx;
-  unsigned int size;
-  unsigned int sp;
-  grn_id tail;
-  unsigned int rest;
-  grn_pat_cursor_entry *ss;
+  unsigned int size; /* stack size (the maximum number of entries) */
+  unsigned int sp;   /* stack pointer (the number of entries) */
+  grn_id tail;       /* sentinel (the end of the traversal) */
+  unsigned int rest; /* limit rest (the number of remaining records) */
+  grn_pat_cursor_entry *ss; /* stack buffer (pointer to entries) */
   uint8_t curr_key[GRN_TABLE_MAX_KEY_SIZE];
 };
 
-------------- next part --------------
HTML����������������������������...
Download 



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