comparison queue.h @ 1459:06d52bcb8094

Pointer parameter could be declared as pointing to const
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Aug 2017 17:16:13 +0200
parents deed0571cacc
children
comparison
equal deleted inserted replaced
1458:bdd3802c8ac6 1459:06d52bcb8094
39 unsigned int count; 39 unsigned int count;
40 40
41 }; 41 };
42 42
43 void initqueue(struct Queue* queue); 43 void initqueue(struct Queue* queue);
44 int isempty(struct Queue* queue); 44 int isempty(const struct Queue* queue);
45 void* dequeue(struct Queue* queue); 45 void* dequeue(struct Queue* queue);
46 void *examine(struct Queue* queue); 46 void *examine(const struct Queue* queue);
47 void enqueue(struct Queue* queue, void* item); 47 void enqueue(struct Queue* queue, void* item);
48 48
49 #endif 49 #endif