From e29492f7f8d7d12cbe91a29ed81d69d48709dba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind?= Date: Sun, 13 Mar 2022 20:19:53 +0100 Subject: [PATCH] Cleaned up the ir.h --- exercises/04/vslc/include/ir.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/exercises/04/vslc/include/ir.h b/exercises/04/vslc/include/ir.h index aa8d1ef..32a7907 100644 --- a/exercises/04/vslc/include/ir.h +++ b/exercises/04/vslc/include/ir.h @@ -20,11 +20,18 @@ typedef struct n { * @return Pointer to the initialized node * */ node_t* node_init ( - node_t *nd, node_index_t type, void *data, uint64_t n_children, ... + node_t* nd, + node_index_t type, + void* data, + uint64_t n_children, + ... ); typedef enum { - SYM_GLOBAL_VAR, SYM_FUNCTION, SYM_PARAMETER, SYM_LOCAL_VAR + SYM_GLOBAL_VAR, + SYM_FUNCTION, + SYM_PARAMETER, + SYM_LOCAL_VAR } symtype_t; typedef struct s {