Files
2026-03-12 16:04:38 +02:00

29 lines
582 B
C

#ifndef LABEL_H
#define LABEL_H
#include <stddef.h>
typedef enum {
LABEL_CONST,
LABEL_TAG
} label_t;
struct label {
label_t kind;
char *name;
int value;
};
struct label * label_create(label_t kind, char* name, int value);
int label_to_string(char* buffer, const size_t size, struct label *l);
int label_print_intel_asm(struct label *l);
int label_print(struct label *l);
struct label * label_create_const(char* name);
struct label * label_create_const_sys(char* name);
struct label * label_create_tag(char* name);
void label_free(struct label *l);
#endif