parser+backend: Add support for public symbols
Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user