rename types

This commit is contained in:
2024-12-22 22:31:16 +02:00
parent 228b215259
commit db35aa7722
10 changed files with 112 additions and 127 deletions

6
zig1.c
View File

@@ -6,7 +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 zig1_run(const char* program, char** msg)
int zig1Run(const char* program, char** msg)
{
(void)program;
(void)msg;
@@ -15,7 +15,7 @@ int zig1_run(const char* program, char** msg)
// API: run and:
// code = 3: abnormal error, expect something in stderr.
int zig1_run_file(const char* fname, char** msg)
int zig1RunFile(const char* fname, char** msg)
{
FILE* f = fopen(fname, "r");
if (f == NULL) {
@@ -53,7 +53,7 @@ int zig1_run_file(const char* fname, char** msg)
fclose(f);
program[fsize] = 0;
int code = zig1_run(program, msg);
int code = zig1Run(program, msg);
free(program);
return code;
}