[983] in BarnOwl Developers
[D-O-H] r969 - branches/barnowl_sqlite/owl
daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:11:50 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@nelhage.com
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Mon, 25 Feb 2008 14:19:05 -0500 (EST)
Author: nelhage
Date: 2008-02-25 14:19:05 -0500 (Mon, 25 Feb 2008)
New Revision: 969
Modified:
branches/barnowl_sqlite/owl/global.c
Log:
Add a comment explaining the last change
Modified: branches/barnowl_sqlite/owl/global.c
===================================================================
--- branches/barnowl_sqlite/owl/global.c 2008-02-25 17:47:22 UTC (rev 968)
+++ branches/barnowl_sqlite/owl/global.c 2008-02-25 19:19:05 UTC (rev 969)
@@ -946,6 +946,13 @@
return &(g->dispatchlist);
}
+/*
+ * The fmtext_seq is used to manage the fmtext cache for
+ * messages. Whenever we initialize a cache, we save the global seq in
+ * the cache. Whenever we change styles, we increment the global
+ * seq. Caches are checked to ensure that their sequence number
+ * matches the global sequence whenever they are used.
+ */
int owl_global_get_fmtext_seq(owl_global *g)
{
return g->fmtext_seq;