~rabbits/public-inbox

uxn: (uxnasm.c) Add check for missing output file v2 APPLIED

Capital: 1
 (uxnasm.c) Add check for missing output file

 1 files changed, 3 insertions(+), 3 deletions(-)
#1087953 .build.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~rabbits/public-inbox/patches/46394/mbox | git am -3
Learn more about email & git

[PATCH uxn v2] (uxnasm.c) Add check for missing output file Export this patch

---
 src/uxnasm.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/uxnasm.c b/src/uxnasm.c
index f80d63b..441dc07 100644
--- a/src/uxnasm.c
+++ b/src/uxnasm.c
@@ -498,10 +498,10 @@ int
main(int argc, char *argv[])
{
	FILE *src, *dst;
	if(argc == 1)
		return error("usage", "uxnasm [-v] input.tal output.rom");
	if(argv[1][0] == '-' && argv[1][1] == 'v')
	if(argc == 2 && argv[1][0] == '-' && argv[1][1] == 'v')
		return !fprintf(stdout, "Uxnasm - Uxntal Assembler, 27 Oct 2023.\n");
	if (argc != 3)
		return error("usage", "uxnasm [-v] input.tal output.rom");
	if(!(src = fopen(argv[1], "r")))
		return !error("Invalid input", argv[1]);
	if(!assemble(src))
-- 
2.42.0
uxn/patches/.build.yml: SUCCESS in 59s

[(uxnasm.c) Add check for missing output file][0] v2 from [Capital][1]

[0]: https://lists.sr.ht/~rabbits/public-inbox/patches/46394
[1]: mailto:xcapt98@gmail.com

✓ #1087953 SUCCESS uxn/patches/.build.yml https://builds.sr.ht/~rabbits/job/1087953
Thanks :)