gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/libbase container.h


From: Vitaly Alexeev
Subject: [Gnash-commit] gnash/libbase container.h
Date: Sun, 29 Oct 2006 17:13:40 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Vitaly Alexeev <alexeev>        06/10/29 17:13:40

Modified files:
        libbase        : container.h 

Log message:
        added audio streamer for video

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/container.h?cvsroot=gnash&r1=1.44&r2=1.45

Patches:
Index: container.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/container.h,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -b -r1.44 -r1.45
--- container.h 13 Oct 2006 23:56:52 -0000      1.44
+++ container.h 29 Oct 2006 17:13:39 -0000      1.45
@@ -35,7 +35,7 @@
 // 
 //
 
-/* $Id: container.h,v 1.44 2006/10/13 23:56:52 nihilus Exp $ */
+/* $Id: container.h,v 1.45 2006/10/29 17:13:39 alexeev Exp $ */
 
 #ifndef __CONTAINER_H__
 #define __CONTAINER_H__
@@ -189,6 +189,21 @@
                add(key, value);
        }
 
+       int erase(const T& key) //vv
+       {
+               int     i = find_index(key);
+               if (i >= 0)
+               {
+                       entry*  e = &E(i);
+                       if (e->is_empty() == false)
+                       {
+                               e->clear();
+                       }
+                       return 1;
+               }       
+               return 0;
+       }
+
        void    add(const T& key, const U& value)
        // Add a new value to the hash table, under the specified key.
        {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]