making tcc happier

This commit is contained in:
2024-12-27 12:34:08 +02:00
parent 6ae7d7320d
commit 6006a802e1
10 changed files with 416 additions and 274 deletions

6
zig1.c
View File

@@ -6,8 +6,7 @@
// - code = 0: program successfully terminated.
// - code = 1: panicked, panic message in msg. Caller should free msg.
// - code = 2: interpreter error, error in msg. Caller should free msg.
int zig1Run(const char* program, char** msg)
{
int zig1Run(const char* program, char** msg) {
(void)program;
(void)msg;
return 0;
@@ -15,8 +14,7 @@ int zig1Run(const char* program, char** msg)
// API: run and:
// code = 3: abnormal error, expect something in stderr.
int zig1RunFile(const char* fname, char** msg)
{
int zig1RunFile(const char* fname, char** msg) {
FILE* f = fopen(fname, "r");
if (f == NULL) {
perror("fopen");