tinycc-devel
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Tinycc-devel] exit code when using -run
From
:
Scott Graham
Subject
:
[Tinycc-devel] exit code when using -run
Date
:
Thu, 12 Dec 2024 11:07:12 -0800
Hi,
On origin/mob, beforeĀ
https://repo.or.cz/tinycc.git/commit/dd2e5f8b06bc6ada943291fa4c67c8397038310f
the exit code of a script executed with `tcc -run` was the return code of its main(), which I found useful for getting return codes from scripts.
After, though, it's been forced to be always 1 if non-zero:
https://repo.or.cz/tinycc.git/blobdiff/3eb6352c52b92143bd0590ea3015ad0342890edb..dd2e5f8b06bc6ada943291fa4c67c8397038310f:/tcc.c
(rather than using s->nb_errors).
It looks like that was intentional (maybe to do with running tests?). But would it make sense to restore the behaviour for normal `tcc -run` uses?
scott
reply via email to
[
Prev in Thread
]
Current Thread
[Next in Thread]
[Tinycc-devel] exit code when using -run
,
Scott Graham
,
2024/12/12
Re: [Tinycc-devel] exit code when using -run
,
grischka
,
2024/12/13
Re: [Tinycc-devel] exit code when using -run
,
Scott Graham
,
2024/12/13
[Tinycc-devel] exit code when using -run
,
Scott Graham
<=
Prev by Date:
[Tinycc-devel] exit code when using -run
Next by Date:
[Tinycc-devel] bug: tcc does not recognize _Pragma keyword
Previous by thread:
Re: [Tinycc-devel] exit code when using -run
Next by thread:
[Tinycc-devel] bug: tcc does not recognize _Pragma keyword
Index(es):
Date
Thread