mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
18 lines
449 B
C
18 lines
449 B
C
#pragma once
|
|
|
|
#include "literal.h"
|
|
|
|
typedef struct LiteralArray {
|
|
int capacity;
|
|
int count;
|
|
Literal* literals;
|
|
} LiteralArray;
|
|
|
|
void initLiteralArray(LiteralArray* array);
|
|
int pushLiteralArray(LiteralArray* array, Literal literal);
|
|
Literal popLiteralArray(LiteralArray* array);
|
|
void freeLiteralArray(LiteralArray* array);
|
|
|
|
int findLiteralIndex(LiteralArray* array, Literal literal);
|
|
|
|
void printLiteralArray(LiteralArray* array, const char* delim); |