parser+backend: Add support for public symbols

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-02-15 22:58:06 -05:00
parent 022770df16
commit e2c729a0f9
5 changed files with 25 additions and 3 deletions

View File

@@ -2,12 +2,20 @@
#include "rifle/mu.h"
int
mu_gen_label(struct rifle_state *state, const char *name)
mu_gen_label(struct rifle_state *state, const char *name, bool global)
{
if (state == NULL || name == NULL) {
return -1;
}
if (global) {
fprintf(
state->out_fp,
"[global %s]\n",
name
);
}
fprintf(
state->out_fp,
"%s:\n",