libmya 0.1.0
Library to parse Mya language.
Loading...
Searching...
No Matches
queue.h
Go to the documentation of this file.
1#pragma once
2
6typedef struct cqueue
7{
8 unsigned int length;
9 unsigned int _max_length;
11 int _last;
12 int* data;
Circular queue of integers.
Definition queue.h:7
int _current
The index for the current item.
Definition queue.h:10
unsigned int _max_length
The maximum number of items that fits on the queue.
Definition queue.h:9
int _last
The index of the last item.
Definition queue.h:11
int * data
Pointer to queue data with allocated space to fit max_size items.
Definition queue.h:12
unsigned int length
The current number of items on the queue.
Definition queue.h:8
struct cqueue cqueue_t
Circular queue of integers.