Subversion Repositories HelenOS

Rev

Rev 2089 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2089 Rev 2106
Line 104... Line 104...
104
 * @param name FIFO name.
104
 * @param name FIFO name.
105
 * @param value Value to be appended to FIFO.
105
 * @param value Value to be appended to FIFO.
106
 *
106
 *
107
 */
107
 */
108
#define fifo_push(name, value) \
108
#define fifo_push(name, value) \
-
 
109
    name.fifo[name.tail = \
109
    name.fifo[name.tail = (name.tail + 1) < name.items ? (name.tail + 1) : 0] = (value) 
110
        (name.tail + 1) < name.items ? (name.tail + 1) : 0] = (value)
110
 
111
 
111
/** Allocate memory for dynamic FIFO.
112
/** Allocate memory for dynamic FIFO.
112
 *
113
 *
113
 * @param name FIFO name.
114
 * @param name FIFO name.
114
 */
115
 */