Skip to content
Snippets Groups Projects
Commit d9c2c921 authored by Sven M. Hallberg's avatar Sven M. Hallberg
Browse files

use H_MAKE_SEQN in base64_sem1

parent 662357cc
No related branches found
No related tags found
No related merge requests found
...@@ -56,9 +56,7 @@ H_ACT_APPLY(act_index0, h_act_index, 0); ...@@ -56,9 +56,7 @@ H_ACT_APPLY(act_index0, h_act_index, 0);
// General-form action to turn a block of base64 digits into bytes. // General-form action to turn a block of base64 digits into bytes.
const HParsedToken *act_base64_n(int n, const HParseResult *p) const HParsedToken *act_base64_n(int n, const HParseResult *p)
{ {
HParsedToken *res = h_arena_malloc(p->arena, sizeof(HParsedToken)); HParsedToken *res = H_MAKE_SEQN(n);
res->token_type = TT_SEQUENCE;
res->seq = h_carray_new_sized(p->arena, n);
HParsedToken **digits = h_seq_elements(p->ast); HParsedToken **digits = h_seq_elements(p->ast);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment