|
libmya 0.1.0
Library to parse Mya language.
|


Go to the source code of this file.
Macros | |
| #define | QUEUE_LENGTH_INCREMENT 32 |
Functions | |
| void | tkqueue_init (tkqueue_t *queue, unsigned int initial_size) |
| Initializes the token queue. | |
| void | tkqueue_close (tkqueue_t *queue) |
| Close the given queue. | |
| void | tkqueue_add (tkqueue_t *queue, token_t *token) |
| Add a value to the token queue. | |
| token_t * | tkqueue_get (tkqueue_t *queue) |
| Get the current value from the queue and increment the position for the next value. | |
| token_t * | tkqueue_peek (const tkqueue_t *queue) |
| Get the current value from the queue without increment the queue position. | |
| int | tkqueue_isempty (const tkqueue_t *queue) |
| Check if the given queue is empty. | |
Add a value to the token queue.
| queue | The queue where to add the item. |
| item | The value to add. |
Definition at line 25 of file tkqueue.c.
| void tkqueue_close | ( | tkqueue_t * | queue | ) |
Get the current value from the queue and increment the position for the next value.
| queue | The queue where to get the value. |
Definition at line 32 of file tkqueue.c.
| void tkqueue_init | ( | tkqueue_t * | queue, |
| unsigned int | initial_size ) |
Initializes the token queue.
| queue | The queue to be initialized. |
| initial_size | The initial number of items that fit the queue's memory data. |
Definition at line 9 of file tkqueue.c.
| int tkqueue_isempty | ( | const tkqueue_t * | queue | ) |