Changeset 7e66a5ec in mainline
- Timestamp:
- 2010-10-23T09:02:58Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 472020fc
- Parents:
- 38b3baf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/adt/dynamic_fifo.c
r38b3baf r7e66a5ec 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.