feat: implement functions

This commit is contained in:
samsonium
2026-10-15 02:23:43 +03:00
parent cc3087296f
commit 2c206822ca
15 changed files with 391 additions and 36 deletions
+3 -1
View File
@@ -4,6 +4,7 @@
#include <common/fzl_types.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
typedef enum
{
@@ -17,6 +18,7 @@ typedef struct
{
char *name;
fzl_type_t type;
size_t ip;
} fzl_sym_t;
// Symbols table descriptor
@@ -33,7 +35,7 @@ fzl_symtable_t *fzl_mksymt();
// Put new entry into symtable
fzl_symtable_res_t fzl_symt_put(fzl_symtable_t *symt, char *name,
fzl_type_t type);
fzl_type_t type, uint64_t ip);
// Get entry from specified symtable
bool fzl_symt_get(fzl_symtable_t *symt, char *name, fzl_sym_t *res);