[Groonga-commit] groonga/groonga at d1b568d [master] Reduce macro available scope

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Mar 9 15:01:14 JST 2016


Kouhei Sutou	2016-03-09 15:01:14 +0900 (Wed, 09 Mar 2016)

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

  Message:
    Reduce macro available scope

  Modified files:
    lib/proc.c

  Modified: lib/proc.c (+2 -1)
===================================================================
--- lib/proc.c    2016-03-09 15:00:58 +0900 (88358c8)
+++ lib/proc.c    2016-03-09 15:01:14 +0900 (3e3c756)
@@ -227,11 +227,12 @@ grn_parse_column_create_flags(grn_ctx *ctx, const char *nptr, const char *end)
     CHECK_FLAG(WITH_POSITION);
     CHECK_FLAG(RING_BUFFER);
 
+#undef CHECK_FLAG
+
     ERR(GRN_INVALID_ARGUMENT,
         "[column][create] invalid flag: <%.*s>",
         (int)(end - nptr), nptr);
     return 0;
-#undef CHECK_FLAG
   }
   return flags;
 }
-------------- next part --------------
HTML����������������������������...
下载 



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