summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/datatype.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/datatype.c b/src/datatype.c
index 12e876cf..c4fc131d 100644
--- a/src/datatype.c
+++ b/src/datatype.c
@@ -632,6 +632,17 @@ static struct error_record *mark_type_parse(const struct expr *sym,
struct expr **res)
{
struct error_record *erec;
+ const struct symbolic_constant *s;
+
+ for (s = mark_tbl->symbols; s->identifier != NULL; s++) {
+ if (!strcmp(sym->identifier, s->identifier)) {
+ *res = constant_expr_alloc(&sym->location, sym->dtype,
+ sym->dtype->byteorder,
+ sym->dtype->size,
+ &s->value);
+ return NULL;
+ }
+ }
erec = sym->dtype->basetype->parse(sym, res);
if (erec != NULL)