/[public]/psiconv/trunk/lib/psiconv/list.h
ViewVC logotype

Diff of /psiconv/trunk/lib/psiconv/list.h

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

Revision 97 Revision 98
73 As the lists extends itself, it may be necessary to allocate new 73 As the lists extends itself, it may be necessary to allocate new
74 memory. If this fails, a negative error-code is returned. If everything, 74 memory. If this fails, a negative error-code is returned. If everything,
75 succeeds, 0 is returned. */ 75 succeeds, 0 is returned. */
76extern int psiconv_list_add(psiconv_list l, const void *el); 76extern int psiconv_list_add(psiconv_list l, const void *el);
77 77
78/* Remove the last element from the list, and copy it to el. Note that
79 this will not reduce the amount of space reserved for the list.
80 An error code is returned, which will be 0 zero if everything
81 succeeded. It is your own responsibility to make sure enough
82 space is allocated to el. */
83extern int psiconv_list_pop(psiconv_list l, void *el);
84
78/* Replace an element within the list. The element is copied from the 85/* Replace an element within the list. The element is copied from the
79 supplied element. Fails if you try to write at or after the end of 86 supplied element. Fails if you try to write at or after the end of
80 the list. */ 87 the list. */
81extern int psiconv_list_replace(psiconv_list l, psiconv_u32 indx, 88extern int psiconv_list_replace(psiconv_list l, psiconv_u32 indx,
82 const void *el); 89 const void *el);

Legend:
Removed from v.97  
changed lines
  Added in v.98

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26