[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: branch: master updated (1.3.1-20080110-15-g915463b)
The branch, master has been updated
via 915463b5f3fe41419307e5dee4d227f3c9a9bb5e (commit)
from e4e95f7798f1cd0f721f1364c5b0348144226f74 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
gschem/src/o_misc.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
=================
Commit Messages
=================
commit 915463b5f3fe41419307e5dee4d227f3c9a9bb5e
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date: Sat Jan 26 22:06:06 2008 +0000
Invalidate component cache when updating symbols. [#1880211]
Temporary fix for Bug #1880211, "symbol update reads the symbol from
the cache". Ensure that when refreshing symbols, the symbol is read
from the component source, not from the cache. (Suggested by Peter
Brett).
A more complete fix will be to add API which invalidates a single symbol
name, rather than the entire cache.
:100644 100644 81a13e1... 1f370af... M gschem/src/o_misc.c
=========
Changes
=========
commit 915463b5f3fe41419307e5dee4d227f3c9a9bb5e
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date: Sat Jan 26 22:06:06 2008 +0000
Invalidate component cache when updating symbols. [#1880211]
Temporary fix for Bug #1880211, "symbol update reads the symbol from
the cache". Ensure that when refreshing symbols, the symbol is read
from the component source, not from the cache. (Suggested by Peter
Brett).
A more complete fix will be to add API which invalidates a single symbol
name, rather than the entire cache.
diff --git a/gschem/src/o_misc.c b/gschem/src/o_misc.c
index 81a13e1..1f370af 100644
--- a/gschem/src/o_misc.c
+++ b/gschem/src/o_misc.c
@@ -769,6 +769,10 @@ void o_update_component(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
is_embedded = o_complex_is_embedded (o_current);
g_assert (o_current->complex_basename != NULL);
+
+ /* This shuold be replaced with API to invalidate only the specific
+ * symbol name we want to update */
+ s_clib_flush_symbol_cache ();
clib = s_clib_get_symbol_by_name (o_current->complex_basename);
if (clib == NULL) {
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs