starting subt implementation

This commit is contained in:
Ellen Arvidsson 2025-06-25 13:10:05 +02:00
parent 7d23372846
commit 0344ec69b0
8 changed files with 231 additions and 17 deletions

View file

@ -31,11 +31,6 @@ struct spho_prebind {
struct spho_prebind_pair *binds;
};
struct spho_bind {
struct spho_prebind *local;
struct spho_bind *parent;
};
struct spho_prebind *spho_prebind_create(struct spho_scope *);
int spho_prebind_undef(struct spho_prebind *, const struct spho_nom *);
@ -48,6 +43,12 @@ int spho_prebind_member_tp(struct spho_prebind *, const struct spho_nom *,
struct spho_prebind *spho_prebind_dupl(const struct spho_prebind *);
void spho_prebind_destroy(struct spho_prebind *);
void spho_prebind_free(struct spho_prebind *);
struct spho_bind {
struct spho_prebind *loc;
struct spho_bind *parent;
};
#endif

View file

@ -122,7 +122,7 @@ struct spho_scope {
struct spho_nom_l noms;
struct spho_tp_alloc_l tps;
struct spho_prebind *bind;
struct spho_prebind *bind_loc;
SLIST_ENTRY(spho_scope) next;
};

6
include/spho/subt.h Normal file
View file

@ -0,0 +1,6 @@
#ifndef _SPHO_SUBT_H
#define _SPHO_SUBT_H
#include "spho/bind.h"
#endif /* ifndef _SPHO_SUBT_H */