mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
26 lines
635 B
C
26 lines
635 B
C
/*
|
|
* utils.h
|
|
*
|
|
* Created on: 10 ago. 2023
|
|
* Original Author: Emiliano Augusto Gonzalez (egonzalez . hiperion @ gmail . com)
|
|
*
|
|
* Further modified by Kayne Ruse, and added to the Toy Programming Language tool repository.
|
|
*/
|
|
|
|
#ifndef UTILS_H_
|
|
#define UTILS_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct queue_node_s {
|
|
void *data;
|
|
struct queue_node_s *next;
|
|
} queue_node_t;
|
|
|
|
void dis_enqueue(void *x, queue_node_t **queue_front, queue_node_t **queue_rear, uint32_t *len);
|
|
void dis_dequeue(queue_node_t **queue_front, queue_node_t **queue_rear, uint32_t *len);
|
|
|
|
void str_append(char **str, const char *app);
|
|
|
|
#endif /* UTILS_H_ */
|