[anjuta] symbol-db: Revert the 'no / in relative path' fix. It doesn't work.
- From: Naba Kumar <naba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] symbol-db: Revert the 'no / in relative path' fix. It doesn't work.
- Date: Fri, 18 Jun 2010 21:10:52 +0000 (UTC)
commit 2e2e27488f7e89bb25ed02a9616fae216bd4fcbf
Author: Naba Kumar <naba gnome org>
Date: Sat Jun 19 00:10:43 2010 +0300
symbol-db: Revert the 'no / in relative path' fix. It doesn't work.
plugins/symbol-db/symbol-db-engine-core.c | 6 +++---
plugins/symbol-db/symbol-db-engine-priv.h | 2 +-
plugins/symbol-db/symbol-db-engine-utils.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-engine-core.c b/plugins/symbol-db/symbol-db-engine-core.c
index 9515e2b..9f912d9 100644
--- a/plugins/symbol-db/symbol-db-engine-core.c
+++ b/plugins/symbol-db/symbol-db-engine-core.c
@@ -1511,7 +1511,7 @@ sdb_engine_get_file_defined_id (SymbolDBEngine* dbe,
/* we expect here an absolute path */
g_value_set_static_string (value,
- tag_entry->file + strlen (base_prj_path) + 1);
+ tag_entry->file + strlen (base_prj_path));
}
else
{
@@ -6544,10 +6544,10 @@ on_scan_update_files_symbols_end (SymbolDBEngine * dbe,
/* clean the db from old un-updated with the last update step () */
if (sdb_engine_update_file (dbe, node +
- strlen (priv->project_directory) + 1) == FALSE)
+ strlen (priv->project_directory)) == FALSE)
{
g_warning ("Error processing file %s", node +
- strlen (priv->project_directory) + 1);
+ strlen (priv->project_directory));
return;
}
g_free (node);
diff --git a/plugins/symbol-db/symbol-db-engine-priv.h b/plugins/symbol-db/symbol-db-engine-priv.h
index 242e7d1..f66cc7c 100644
--- a/plugins/symbol-db/symbol-db-engine-priv.h
+++ b/plugins/symbol-db/symbol-db-engine-priv.h
@@ -38,7 +38,7 @@
#define ANJUTA_DB_FILE ".anjuta_sym_db"
/* if tables.sql changes or general db structure changes modify also the value here */
-#define SYMBOL_DB_VERSION "300.3"
+#define SYMBOL_DB_VERSION "300.4"
#define TABLES_SQL PACKAGE_DATA_DIR"/tables.sql"
diff --git a/plugins/symbol-db/symbol-db-engine-utils.c b/plugins/symbol-db/symbol-db-engine-utils.c
index 88fc10a..d9e6dbf 100644
--- a/plugins/symbol-db/symbol-db-engine-utils.c
+++ b/plugins/symbol-db/symbol-db-engine-utils.c
@@ -87,7 +87,7 @@ symbol_db_util_get_file_db_path (SymbolDBEngine *dbe, const gchar* full_local_fi
strlen (priv->project_directory) >= strlen (full_local_file_path))
return NULL;
- return full_local_file_path + strlen (priv->project_directory) + 1;
+ return full_local_file_path + strlen (priv->project_directory);
}
GPtrArray *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]