commit 167f24900885329f9e5305496ba8917ec1b643c4
parent 67caaf3025f80fef4af72cba3dac2dfb0dcf13af
Author: Mario Rosell R. Martinez <mario@mariorosell.es>
Date: Sat, 4 Apr 2026 11:32:29 +0200
stat: record input file
Added an i_infile field to stat, and made cli store src there.
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/cli.c b/cli.c
@@ -84,6 +84,6 @@ cli(int argc, char** argv)
exit(2);
}
- /* TODO: store src */
+ snprintf(stat.i_infile, sizeof(stat.i_infile), "%s", src);
}
diff --git a/stat.h b/stat.h
@@ -10,6 +10,7 @@
struct stat {
char s_outf[512]; /* output file */
char s_asmf[512]; /* ASM output file */
+ char i_infile[512]; /* src file */
bool mod_pipe; /* if using pipes for communication over tempfiles */
};