Changeset 1b11576d in mainline for uspace/lib/c/generic/adt/dynamic_fifo.c
- Timestamp:
- 2010-10-23T16:04:12Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- c77b4d6
- Parents:
- 84c20da (diff), 58b833c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/adt/dynamic_fifo.c
r84c20da r1b11576d 28 28 29 29 /** @addtogroup libc 30 * 30 * @{ 31 31 */ 32 32 … … 34 34 * Dynamic first in first out positive integer queue implementation. 35 35 */ 36 37 #include <adt/dynamic_fifo.h> 36 38 37 39 #include <errno.h> 38 40 #include <malloc.h> 39 41 #include <mem.h> 40 41 #include <adt/dynamic_fifo.h>42 42 43 43 /** Internal magic value for a consistency check. */ … … 106 106 int dyn_fifo_push(dyn_fifo_ref fifo, int value, int max_size) 107 107 { 108 int * 108 int *new_items; 109 109 110 110 if (!dyn_fifo_is_valid(fifo)) … … 149 149 /** Returns and excludes the first item in the queue. 150 150 * 151 * @param[in,out] fifo iThe dynamic queue.151 * @param[in,out] fifo The dynamic queue. 152 152 * @returns Value of the first item in the queue. 153 153 * @returns EINVAL if the queue is not valid. … … 189 189 /** Clears and destroys the queue. 190 190 * 191 * @param[in,out] fifoThe dynamic queue.192 * @returnsEOK on success.193 * @returnsEINVAL if the queue is not valid.191 * @param[in,out] fifo The dynamic queue. 192 * @returns EOK on success. 193 * @returns EINVAL if the queue is not valid. 194 194 */ 195 195 int dyn_fifo_destroy(dyn_fifo_ref fifo)
Note:
See TracChangeset
for help on using the changeset viewer.