/[eliot]/eliot/dic/alist.c
ViewVC logotype

Diff of /eliot/dic/alist.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by ipkiss, Sun Oct 23 14:53:43 2005 UTC revision 1.3 by ipkiss, Fri Nov 4 20:00:06 2005 UTC
# Line 17  Line 17 
17  /* along with this program; if not, write to the Free Software               */  /* along with this program; if not, write to the Free Software               */
18  /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */  /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
19    
 /*  
  * $Id$  
  */  
   
20  /**  /**
21   *  \file   alist.c   *  \file   alist.c
22   *  \brief  List type used by automaton   *  \brief  List type used by automaton
23   *  \author Antoine Fraboulet   *  \author Antoine Fraboulet
24   *  \date   2005   *  \date   2005
25   */   */
# Line 44  struct alist_t { Line 40  struct alist_t {
40  };  };
41    
42    
43  void*  void*
44  alist_elt_get_value(alist_elt e)  alist_elt_get_value(alist_elt e)
45  {  {
46    return e->info;    return e->info;
47  }  }
48        
49  alist_elt  alist_elt
50  alist_elt_create(void* info)  alist_elt_create(void* info)
51  {  {
# Line 107  alist_delete_rec(alist_elt e, void (*del Line 103  alist_delete_rec(alist_elt e, void (*del
103      }      }
104  }  }
105    
106  void        void
107  alist_delete(alist l)  alist_delete(alist l)
108  {  {
109    alist_delete_rec(l->start,l->delete_function);    alist_delete_rec(l->start,l->delete_function);
# Line 163  alist_insert(alist dst, alist src) Line 159  alist_insert(alist dst, alist src)
159      }      }
160  }  }
161    
162  alist_elt  alist_elt
163  alist_get_first(alist l)  alist_get_first(alist l)
164  {  {
165    return l->start;    return l->start;
166  }  }
167    
168  alist_elt  alist_elt
169  alist_get_next(alist l, alist_elt e)  alist_get_next(alist l, alist_elt e)
170  {  {
171    return e->next;    return e->next;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26