[anjuta] symbol-db: bgo #721783 - inline is a C99 keyword, not a GCC extension



commit 858ff9c4573af596641ed20cacb1708ba5193f4f
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Wed Jan 15 22:10:10 2014 +0100

    symbol-db: bgo #721783 - inline is a C99 keyword, not a GCC extension

 plugins/symbol-db/symbol-db-engine-core.c  |   16 ++++------------
 plugins/symbol-db/symbol-db-engine-utils.c |    5 +----
 2 files changed, 5 insertions(+), 16 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-engine-core.c b/plugins/symbol-db/symbol-db-engine-core.c
index 1f56908..f008820 100644
--- a/plugins/symbol-db/symbol-db-engine-core.c
+++ b/plugins/symbol-db/symbol-db-engine-core.c
@@ -179,17 +179,9 @@ static gint
 sdb_engine_add_new_symbol (SymbolDBEngine * dbe, const tagEntry * tag_entry,
                                                   int file_defined_id, gboolean sym_update);
 
-GNUC_INLINE const GdaStatement *
+const GdaStatement *
 sdb_engine_get_statement_by_query_id (SymbolDBEngine * dbe, static_query_type query_id);
 
-GNUC_INLINE const GdaSet *
-sdb_engine_get_query_parameters_list (SymbolDBEngine *dbe, static_query_type query_id);
-
-GNUC_INLINE gint
-sdb_engine_get_tuple_id_by_unique_name (SymbolDBEngine * dbe, static_query_type qtype,
-                                                                               gchar * param_key,
-                                                                               GValue * param_value);
-
 /*
  * implementation starts here 
  */
@@ -419,7 +411,7 @@ sdb_engine_execute_non_select_sql (SymbolDBEngine * dbe, const gchar *sql)
  * these queries are time-critical.
  * A GdaSet will also be populated once, avoiding so to create again later on.
  */
-GNUC_INLINE const GdaStatement *
+const GdaStatement *
 sdb_engine_get_statement_by_query_id (SymbolDBEngine * dbe, static_query_type query_id)
 {
        static_query_node *node;
@@ -466,7 +458,7 @@ sdb_engine_get_statement_by_query_id (SymbolDBEngine * dbe, static_query_type qu
  * Return a GdaSet of parameters calculated from the statement. It does not check
  * if it's null. You *must* be sure to have called sdb_engine_get_statement_by_query_id () first.
  */
-GNUC_INLINE const GdaSet *
+static GNUC_INLINE const GdaSet *
 sdb_engine_get_query_parameters_list (SymbolDBEngine *dbe, static_query_type query_id)
 {
        SymbolDBEnginePriv *priv;
@@ -546,7 +538,7 @@ sdb_engine_disconnect_from_db (SymbolDBEngine * dbe)
  *
  * @return -1 on error. Otherwise the id of tuple.
  */
-GNUC_INLINE gint
+static GNUC_INLINE gint
 sdb_engine_get_tuple_id_by_unique_name (SymbolDBEngine * dbe, static_query_type qtype,
                                                                                gchar * param_key,
                                                                                GValue * param_value)
diff --git a/plugins/symbol-db/symbol-db-engine-utils.c b/plugins/symbol-db/symbol-db-engine-utils.c
index 999dd5d..68b3c85 100644
--- a/plugins/symbol-db/symbol-db-engine-utils.c
+++ b/plugins/symbol-db/symbol-db-engine-utils.c
@@ -33,12 +33,9 @@ static GHashTable *pixbufs_hash = NULL;
 /*
  * extern declarations 
  */
-extern GNUC_INLINE const GdaStatement *
+extern const GdaStatement *
 sdb_engine_get_statement_by_query_id (SymbolDBEngine * dbe, static_query_type query_id);
 
-extern GNUC_INLINE const GdaSet *
-sdb_engine_get_query_parameters_list (SymbolDBEngine *dbe, static_query_type query_id);
-
 /*
  * implementation starts here 
  */


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