deduplicate common parts of viz row building

This commit is contained in:
Ryan Fleury
2024-02-02 11:03:14 -08:00
parent 410a340a09
commit 9d8efa3a44
3 changed files with 94 additions and 120 deletions
+14
View File
@@ -5583,6 +5583,20 @@ df_parent_key_from_viz_block_list_row_num(DF_EvalVizBlockList *blocks, S64 row_n
return key;
}
//- rjf: viz row list building
internal DF_EvalVizRow *
df_eval_viz_row_list_push_new(Arena *arena, DF_EvalVizWindowedRowList *rows, DF_EvalVizBlock *block, DF_ExpandKey key)
{
DF_EvalVizRow *row = push_array(arena, DF_EvalVizRow, 1);
SLLQueuePush(rows->first, rows->last, row);
rows->count += 1;
row->depth = block->depth;
row->parent_key = block->parent_key;
row->key = key;
return row;
}
////////////////////////////////
//~ rjf: Main State Accessors/Mutators