summaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-07-09 19:58:37 +0200
committerJo-Philipp Wich <jo@mein.io>2021-07-11 15:49:14 +0200
commitff52440341bcb8c61105ff144bfcb210315207e4 (patch)
treeb7eb1c47cb8034e5188b86f480e3e61f44ee6ced /main.c
parent1d60418132460c23b216a2f8a9e0ea8897d32ea4 (diff)
treewide: consolidate typedef naming
Ensure that all custom typedef and vector declaration type names end with a "_t" suffix. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.c b/main.c
index a71e053..58ac2b3 100644
--- a/main.c
+++ b/main.c
@@ -74,13 +74,13 @@ register_variable(uc_value_t *scope, const char *key, uc_value_t *val)
static int
-parse(uc_parse_config *config, uc_source *src,
+parse(uc_parse_config_t *config, uc_source_t *src,
uc_value_t *env, uc_value_t *modules,
int argc, char **argv, int trace)
{
uc_value_t *globals = NULL, *res = NULL, *arr, *name, *mod;
uc_function_t *entry;
- uc_vm vm = { 0 };
+ uc_vm_t vm = { 0 };
int i, rc = 0;
size_t idx;
char *err;
@@ -154,7 +154,7 @@ out:
return rc;
}
-static uc_source *
+static uc_source_t *
read_stdin(char **ptr)
{
size_t rlen = 0, tlen = 0;
@@ -225,11 +225,11 @@ int
main(int argc, char **argv)
{
uc_value_t *env = NULL, *modules = NULL, *o, *p;
- uc_source *source = NULL, *envfile = NULL;
+ uc_source_t *source = NULL, *envfile = NULL;
int opt, rv = 0, trace = 0;
char *stdin = NULL, *c;
- uc_parse_config config = {
+ uc_parse_config_t config = {
.strict_declarations = false,
.lstrip_blocks = true,
.trim_blocks = true