mirror of
https://git.sr.ht/~lattis/muon
synced 2026-01-27 18:04:58 +00:00
30 lines
447 B
C
30 lines
447 B
C
#ifndef MUON_LANG_SOURCE_H
|
|
/*
|
|
* SPDX-FileCopyrightText: Stone Tickle <lattis@mochiro.moe>
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
*/
|
|
|
|
#define MUON_LANG_SOURCE_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
enum source_type {
|
|
source_type_unknown,
|
|
source_type_file,
|
|
source_type_embedded,
|
|
};
|
|
|
|
struct source {
|
|
const char *label;
|
|
const char *src;
|
|
uint64_t len;
|
|
enum source_type type;
|
|
};
|
|
|
|
struct source_location {
|
|
uint32_t off, len;
|
|
};
|
|
|
|
#endif
|