[anjuta] symbol-db: using GNUC_INLINE instead of plain 'inline'.



commit 64b059b2e3a0347e20d861348dceb62200f48bf6
Author: Massimo Corà <mcora src gnome org>
Date:   Thu Mar 25 22:30:02 2010 +0100

    symbol-db: using GNUC_INLINE instead of plain 'inline'.

 plugins/symbol-db/symbol-db-engine-priv.h |    6 ------
 plugins/symbol-db/symbol-db-engine.h      |    7 +++++++
 plugins/symbol-db/symbol-db-model.c       |    3 +--
 plugins/symbol-db/symbol-db-system.c      |    4 ++--
 4 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-engine-priv.h b/plugins/symbol-db/symbol-db-engine-priv.h
index 48d6b35..af29ace 100644
--- a/plugins/symbol-db/symbol-db-engine-priv.h
+++ b/plugins/symbol-db/symbol-db-engine-priv.h
@@ -31,12 +31,6 @@
 #include <libgda/libgda.h>
 #include <sql-parser/gda-sql-parser.h>
 
-#ifdef __GNUC__
-#define GNUC_INLINE inline
-#else
-#define GNUC_INLINE 
-#endif
-
 /* file should be specified without the ".db" extension. */
 #define ANJUTA_DB_FILE	".anjuta_sym_db"
 
diff --git a/plugins/symbol-db/symbol-db-engine.h b/plugins/symbol-db/symbol-db-engine.h
index 56085cc..1a8d87a 100644
--- a/plugins/symbol-db/symbol-db-engine.h
+++ b/plugins/symbol-db/symbol-db-engine.h
@@ -25,6 +25,13 @@
 #ifndef _SYMBOL_DB_ENGINE_H_
 #define _SYMBOL_DB_ENGINE_H_
 
+#ifdef __GNUC__
+#define GNUC_INLINE inline
+#else
+#define GNUC_INLINE 
+#endif
+
+
 /* if you need to use symbo-db-engine in your program, just include this
  * header file. It'll automatically include all the things needed
  */
diff --git a/plugins/symbol-db/symbol-db-model.c b/plugins/symbol-db/symbol-db-model.c
index 58fa57d..736183c 100644
--- a/plugins/symbol-db/symbol-db-model.c
+++ b/plugins/symbol-db/symbol-db-model.c
@@ -100,7 +100,6 @@ static void symbol_db_model_tree_model_init (GtkTreeModelIface *iface);
 static gboolean symbol_db_model_get_query_value_at (SymbolDBModel *model,
                                                     GdaDataModel *data_model,
                                                     gint position, gint column,
-
                                                     GValue *value);
 
 static gboolean symbol_db_model_get_query_value (SymbolDBModel *model,
@@ -131,7 +130,7 @@ G_DEFINE_TYPE_WITH_CODE (SymbolDBModel, symbol_db_model, G_TYPE_OBJECT,
                                                 symbol_db_model_tree_model_init))
 /* Node */
 
-static inline SymbolDBModelNode*
+static GNUC_INLINE SymbolDBModelNode*
 symbol_db_model_node_get_child (SymbolDBModelNode *node, gint child_offset)
 {
 	g_return_val_if_fail (node != NULL, NULL);
diff --git a/plugins/symbol-db/symbol-db-system.c b/plugins/symbol-db/symbol-db-system.c
index df094d9..bc2089c 100644
--- a/plugins/symbol-db/symbol-db-system.c
+++ b/plugins/symbol-db/symbol-db-system.c
@@ -436,7 +436,7 @@ prepare_files_to_be_scanned (SymbolDBSystem *sdbs,
 	} while ((node = node->next) != NULL);
 }
 
-static inline void 
+static GNUC_INLINE void 
 sdb_system_do_scan_package_1 (SymbolDBSystem *sdbs,							
 							SingleScanData *ss_data)
 {
@@ -477,7 +477,7 @@ sdb_system_do_scan_next_package (SymbolDBSystem *sdbs)
 	}
 }
 
-static inline void
+static GNUC_INLINE void
 sdb_system_do_engine_scan (SymbolDBSystem *sdbs, EngineScanData *es_data)
 {
 	SymbolDBSystemPriv *priv;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]