From 83e8084d22ee40bd9e9c3b468d5233b36e738d46 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Fri, 22 Aug 2025 11:00:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20`ProgStore`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/framework/core.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/framework/core.c b/src/framework/core.c index ebe41a4..9b8a5f5 100644 --- a/src/framework/core.c +++ b/src/framework/core.c @@ -9,7 +9,7 @@ * | Yangmoooo * | * Created On : <2023-08-29> - * Last Modified : <2025-08-21> + * Last Modified : <2025-08-22> * * chsrc framework * ------------------------------------------------------------*/ @@ -139,6 +139,19 @@ ProgStatus = }; +/* Global Program Store */ +struct +{ + XySeq_t *pl; + XySeq_t *os; + XySeq_t *wr; +} +ProgStore = +{ + .pl = NULL, + .os = NULL, + .wr = NULL +}; @@ -216,6 +229,10 @@ chsrc_framework_init () xy_init (); ProgStatus.contributors = xy_map_new (); + + ProgStore.pl = xy_seq_new (); + ProgStore.os = xy_seq_new (); + ProgStore.wr = xy_seq_new (); }