summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--src/codegen/codegen_stmt.c8
-rw-r--r--src/repl/repl.c2
3 files changed, 6 insertions, 8 deletions
diff --git a/README.md b/README.md
index 0c5bd0a..d59c3ad 100644
--- a/README.md
+++ b/README.md
@@ -1267,10 +1267,8 @@ make test
## Attributions
-This project uses the following third-party libraries:
-
+This project uses third-party libraries. Full license texts can be found in the `LICENSES/` directory.
* **[cJSON](https://github.com/DaveGamble/cJSON)** (MIT License): Used for JSON parsing and generation in the Language Server.
- * Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
* **[zc-ape](https://github.com/OEvgeny/zc-ape)** (MIT License): The original Actually Portable Executable port of Zen-C by [Eugene Olonov](https://github.com/OEvgeny).
* **[Cosmopolitan Libc](https://github.com/jart/cosmopolitan)** (ISC License): The foundational library that makes APE possible.
diff --git a/src/codegen/codegen_stmt.c b/src/codegen/codegen_stmt.c
index bd0c816..70fb297 100644
--- a/src/codegen/codegen_stmt.c
+++ b/src/codegen/codegen_stmt.c
@@ -884,7 +884,7 @@ void codegen_node_single(ParserContext *ctx, ASTNode *node, FILE *out)
}
else
{
- fprintf(out, " __auto_type %s = _tmp_%d.%s;\n", node->destruct.names[0], id,
+ fprintf(out, " ZC_AUTO %s = _tmp_%d.%s;\n", node->destruct.names[0], id,
check);
}
}
@@ -903,7 +903,7 @@ void codegen_node_single(ParserContext *ctx, ASTNode *node, FILE *out)
}
else
{
- fprintf(out, " __auto_type %s = _tmp_%d.%s;\n", node->destruct.names[i],
+ fprintf(out, " ZC_AUTO %s = _tmp_%d.%s;\n", node->destruct.names[i],
id, field);
}
}
@@ -916,7 +916,7 @@ void codegen_node_single(ParserContext *ctx, ASTNode *node, FILE *out)
}
else
{
- fprintf(out, " __auto_type %s = _tmp_%d.v%d;\n", node->destruct.names[i],
+ fprintf(out, " ZC_AUTO %s = _tmp_%d.v%d;\n", node->destruct.names[i],
id, i);
}
}
@@ -1528,7 +1528,7 @@ void codegen_node_single(ParserContext *ctx, ASTNode *node, FILE *out)
}
else
{
- fprintf(out, "__auto_type");
+ fprintf(out, "ZC_AUTO");
}
fprintf(out, " _z_ret_mv = ");
codegen_expression(ctx, node->ret.value, out);
diff --git a/src/repl/repl.c b/src/repl/repl.c
index cb63293..99d7b43 100644
--- a/src/repl/repl.c
+++ b/src/repl/repl.c
@@ -17,7 +17,7 @@ static int is_header_line(const char *line)
void run_repl(const char *self_path)
{
- printf("\033[1;36mZen C REPL (v0.1)\033[0m\n");
+ printf("\033[1;36mZen C REPL (%s)\033[0m\n", ZEN_VERSION);
printf("Type 'exit' or 'quit' to leave.\n");
printf("Type :help for commands.\n");