view src/ploki/mars.h @ 12500:e48c08805365 draft default tip

<b_jonas> ` learn \'The password of the month is Cthulhuquagdonic Mothraquagdonic Narwhalicorn.\' # https://logs.esolangs.org/libera-esolangs/2024-04.html#lKE Infinite craft
author HackEso <hackeso@esolangs.org>
date Wed, 01 May 2024 06:39:10 +0000
parents ac0403686959
children
line wrap: on
line source

#ifndef MARS_H_
#define MARS_H_

#include "Str.h"
#include "op.h"

#include <stddef.h>

struct mars {
	size_t size, length;
	struct mars **table;
	struct op *data;
};

void ma_init(struct mars *);
void ma_end(struct mars *);
int ma_enter(struct mars *, const String *, struct op *);
int ma_exists(const struct mars *, const String *);
struct op *ma_find(const struct mars *, String *);

#endif /* MARS_H_ */