summaryrefslogtreecommitdiff
path: root/identifiers.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-04-26 18:06:04 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-04-26 18:06:04 -0400
commitb3b39e6c33a0bbb7d5e47221e902700a5cf5b685 (patch)
tree7578ece653334fbe84995369b1e6a1ea77c61913 /identifiers.c
parent1cceedc5ca053b018bc98e96a7dd77d17dde1ada (diff)
use struct member!!!
Diffstat (limited to 'identifiers.c')
-rw-r--r--identifiers.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/identifiers.c b/identifiers.c
index 828bed6..cb4de6f 100644
--- a/identifiers.c
+++ b/identifiers.c
@@ -96,6 +96,12 @@ static char *ident_to_str(Identifier i) {
return str;
}
+static String ident_to_string(Identifier i) {
+ String ret;
+ ret.str = i->str;
+ ret.len = i->len;
+ return ret;
+}
static inline void fprint_ident_str(FILE *out, char *s) {
fwrite(s, 1, ident_str_len(s), out);