diff options
| author | czjstmax <jstmaxlol@disroot.org> | 2026-05-14 18:33:34 +0200 |
|---|---|---|
| committer | czjstmax <jstmaxlol@disroot.org> | 2026-05-14 18:33:34 +0200 |
| commit | b1cf9ca888c3df3b20382f6daea35c6a58d06ec4 (patch) | |
| tree | a3125425911e84f6271e034366fb77d995e8cd1b /rf.c | |
| parent | 2452d534e5a3f4cebd28f89d0606a5f61f8d4b37 (diff) | |
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
Diffstat (limited to 'rf.c')
| -rw-r--r-- | rf.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -15,8 +15,8 @@ #define _POSIX_C_SOURCE 200809L #define RUNFILE_VER_MAJ 1 -#define RUNFILE_VER_MIN 2 -#define RUNFILE_VER_FIX 5 +#define RUNFILE_VER_MIN 3 +#define RUNFILE_VER_FIX 0 /* *> rfile version system @@ -89,6 +89,12 @@ int main(int argc, char **argv) else if (cmd[0] == '#') /* TODO: strchr() up to # and trim cmd to only skip the commented-out part to allow in-line comments */ continue; + #if defined(RF_EXTRAS) || defined(RF_EXTRA_MORE_COMMENTS) + else if (strncmp(cmd, "// ", 3) == 0) + continue; + else if (strncmp(cmd, "-- ", 3) == 0) + continue; + #endif else if (strcmp(cmd, "}") == 0 || strcmp(line, "}") == 0) { in_section = false; @@ -148,7 +154,9 @@ int main(int argc, char **argv) char *expanded = expand_vars(cmd); + #if !defined(RF_HIDDEN_CMD) printf("$ %s\n", expanded); + #endif if (wordexp(expanded, &p, 0) != 0) { fprintf(stderr, "wordexp failed\n"); |