/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 libssts/DynamicArray.h

  • Committer: Gustav Hartvigsson
  • Date: 2016-09-07 20:42:04 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20160907204204-s97ifo5zh3csfrlc
* Added Better comments to SRingBuffer
* Fixed indentation
* Added skeleton for a basic console/terminal manipulation... Nothing fancy like ncurs..

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
S_EXPORTED
114
114
void
115
115
s_dynamic_array_free (SDynamicArray * self,
116
 
                      sboolean free_data);
 
116
                      sboolean free_data);
117
117
 
118
118
 
119
119
/**
133
133
S_EXPORTED
134
134
void
135
135
s_dynamic_array_set (SDynamicArray * self,
136
 
                     size_t index,
137
 
                     spointer item);
 
136
                     size_t index,
 
137
                     spointer item);
138
138
/**
139
139
 * Append an item to a dynamic array.
140
140
 * @note The item will not be added to the first free slot in the array, but
146
146
S_EXPORTED
147
147
void
148
148
s_dynamic_array_append (SDynamicArray * self,
149
 
                        spointer item);
 
149
                        spointer item);
150
150
 
151
151
/**
152
152
 * Get the size of the array, this is not the same as the length of the array.
191
191
 
192
192
#if 0
193
193
This function is removed, it would have been a pain in the arse to implement.
194
 
/** TODO
 
194
/**
195
195
 * same as s_dynamic_array_for_each (), with the difference that it returns a new
196
196
 * SDynamicArray.
197
197
 */