[Groonga-mysql-commit] mroonga/mroonga at 3522c93 [master] Use define instead of typedef to reduce dependency

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Apr 29 15:04:50 JST 2018


Kouhei Sutou	2018-04-29 15:04:50 +0900 (Sun, 29 Apr 2018)

  New Revision: 3522c93bcfae25c2f7c7891c53318c0cb453cf07
  https://github.com/mroonga/mroonga/commit/3522c93bcfae25c2f7c7891c53318c0cb453cf07

  Message:
    Use define instead of typedef to reduce dependency

  Modified files:
    mrn_mysql_compat.h

  Modified: mrn_mysql_compat.h (+4 -4)
===================================================================
--- mrn_mysql_compat.h    2018-04-29 14:46:13 +0900 (31988144)
+++ mrn_mysql_compat.h    2018-04-29 15:04:50 +0900 (69a4c7fe)
@@ -611,14 +611,14 @@
 #endif
 
 #if defined(MRN_MARIADB_P) && MYSQL_VERSION_ID >= 100306
-typedef alter_table_operations mrn_alter_flags;
-typedef alter_table_operations mrn_alter_table_flags;
+#  define mrn_alter_flags alter_table_operations
+#  define mrn_alter_table_flags alter_table_operations
 #  define MRN_ALTER_INPLACE_INFO_FLAG(name) ALTER_ ## name
 #  define MRN_ALTER_INPLACE_INFO_ALTER_FLAG(name) ALTER_ ## name
 #  define MRN_ALTER_INFO_FLAG(name) ALTER_ ## name
 #else
-typedef Alter_inplace_info::HA_ALTER_FLAGS mrn_alter_flags;
-typedef uint mrn_alter_table_flags;
+#  define mrn_alter_flags Alter_inplace_info::HA_ALTER_FLAGS
+#  define mrn_alter_table_flags uint
 #  define MRN_ALTER_INPLACE_INFO_FLAG(name) Alter_inplace_info:: ## name
 #  define MRN_ALTER_INPLACE_INFO_ALTER_FLAG(name) \
   Alter_inplace_info::ALTER_ ## name
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-mysql-commit/attachments/20180429/0e28fe2a/attachment.htm 



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