/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to src/DynamicArray.h

  • Committer: Gustav Hartvigsson
  • Date: 2015-03-26 11:42:01 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150326114201-7mr8g8db9apotwts
* cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 */
51
51
typedef struct DynamicArray DynamicArray;
52
52
 
53
 
#if 0
54
 
#ifndef __H_DEFS__
55
 
/**
56
 
 * Represents a for each function.
57
 
 * 
58
 
 * @param self the dynamic array.
59
 
 * @param data the data to be passed to the each iteration.
60
 
 * @returns data to be put in a new \c DynamicArray, if used with
61
 
 *          <tt>dynamic_array_for_each_with_return</tt>.
62
 
 */
63
 
typedef _pointer (* ForEachFunc)(DynamicArray * self, _pointer item, _pointer data);
64
 
 
65
 
/**
66
 
 * Represents a function to be used when freeing some item in a dynamic array.
67
 
 *
68
 
 * @param obj The object to be freed.
69
 
 */
70
 
typedef _pointer (* FreeFunc)(_pointer obj);
71
 
 
72
 
#endif /* __H_DEFS__ */
73
 
#endif /* #if 0*/
74
 
 
75
53
/**
76
54
 * Create a new dynamic array.
77
55
 *