[Groonga-commit] groonga/groonga at 2a30745 [master] Move internal macros to .c from .h

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Jan 10 18:47:55 JST 2015


Kouhei Sutou	2015-01-10 18:47:55 +0900 (Sat, 10 Jan 2015)

  New Revision: 2a307455e967293884be00109792c57edd8488cb
  https://github.com/groonga/groonga/commit/2a307455e967293884be00109792c57edd8488cb

  Message:
    Move internal macros to .c from .h

  Modified files:
    lib/grn_io.h
    lib/io.c

  Modified: lib/grn_io.h (+0 -10)
===================================================================
--- lib/grn_io.h    2015-01-10 18:46:19 +0900 (ea5e4fe)
+++ lib/grn_io.h    2015-01-10 18:47:55 +0900 (8766777)
@@ -25,16 +25,6 @@ extern "C" {
 #endif
 
 #ifdef WIN32
-# ifdef WIN32_FMO_EACH
-#  define GRN_IO_FILE_SIZE  1073741824UL
-# else /* FMO_EACH */
-#  define GRN_IO_FILE_SIZE  134217728L
-# endif /* FMO_EACH */
-#else /* WIN32 */
-# define GRN_IO_FILE_SIZE  1073741824UL
-#endif /* WIN32 */
-
-#ifdef WIN32
 # define GRN_IO_FILE_CREATE_MODE (GENERIC_READ | GENERIC_WRITE)
 #else /* WIN32 */
 # define GRN_IO_FILE_CREATE_MODE 0644

  Modified: lib/io.c (+10 -0)
===================================================================
--- lib/io.c    2015-01-10 18:46:19 +0900 (7402bf0)
+++ lib/io.c    2015-01-10 18:47:55 +0900 (f1061fd)
@@ -30,6 +30,16 @@
 
 #define GRN_IO_IDSTR "GROONGA:IO:00001"
 
+#ifdef WIN32
+# ifdef WIN32_FMO_EACH
+#  define GRN_IO_FILE_SIZE  1073741824UL
+# else /* FMO_EACH */
+#  define GRN_IO_FILE_SIZE  134217728L
+# endif /* FMO_EACH */
+#else /* WIN32 */
+# define GRN_IO_FILE_SIZE  1073741824UL
+#endif /* WIN32 */
+
 #ifndef O_BINARY
 # ifdef _O_BINARY
 #  define O_BINARY _O_BINARY
-------------- next part --------------
HTML����������������������������...
Download 



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