[512] in BarnOwl Developers
[D-O-H] r632 - in trunk: . owl
daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:06:57 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Wed, 28 Feb 2007 21:07:28 -0500 (EST)
Author: nelhage
Date: 2007-02-28 21:07:28 -0500 (Wed, 28 Feb 2007)
New Revision: 632
Modified:
trunk/
trunk/owl/global.c
trunk/owl/owl.h
Log:
r19147@phanatique: nelhage | 2007-02-27 23:58:01 -0500
Adding owl_global_intern for interning strings in a global obarray.
Property changes on: trunk
___________________________________________________________________
Name: svk:merge
- bb873fd7-8e23-0410-944a-99ec44c633eb:/branches/owl/filter-rewrite:15925
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/d-o-h/trunk:19146
+ bb873fd7-8e23-0410-944a-99ec44c633eb:/branches/owl/filter-rewrite:15925
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/d-o-h/trunk:19147
Modified: trunk/owl/global.c
===================================================================
--- trunk/owl/global.c 2007-03-01 02:07:22 UTC (rev 631)
+++ trunk/owl/global.c 2007-03-01 02:07:28 UTC (rev 632)
@@ -105,6 +105,8 @@
owl_zbuddylist_create(&(g->zbuddies));
owl_timer_create_countdown(&(g->zephyr_buddycheck_timer), 60*3);
+
+ owl_obarray_init(&(g->obarray));
}
void _owl_global_setup_windows(owl_global *g) {
@@ -883,3 +885,8 @@
{
return(&(g->startup_tio));
}
+
+char * owl_global_intern(owl_global *g, char * string)
+{
+ return owl_obarray_insert(&(g->obarray), string);
+}
Modified: trunk/owl/owl.h
===================================================================
--- trunk/owl/owl.h 2007-03-01 02:07:22 UTC (rev 631)
+++ trunk/owl/owl.h 2007-03-01 02:07:28 UTC (rev 632)
@@ -582,6 +582,7 @@
owl_zbuddylist zbuddies;
owl_timer zephyr_buddycheck_timer;
struct termios startup_tio;
+ owl_obarray obarray;
} owl_global;
/* globals */