Skip to content

Commit 83e8084

Browse files
committed
添加 ProgStore
1 parent 4d70428 commit 83e8084

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/framework/core.c

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* | Yangmoooo <[email protected]>
1010
* |
1111
* Created On : <2023-08-29>
12-
* Last Modified : <2025-08-21>
12+
* Last Modified : <2025-08-22>
1313
*
1414
* chsrc framework
1515
* ------------------------------------------------------------*/
@@ -139,6 +139,19 @@ ProgStatus =
139139
};
140140

141141

142+
/* Global Program Store */
143+
struct
144+
{
145+
XySeq_t *pl;
146+
XySeq_t *os;
147+
XySeq_t *wr;
148+
}
149+
ProgStore =
150+
{
151+
.pl = NULL,
152+
.os = NULL,
153+
.wr = NULL
154+
};
142155

143156

144157

@@ -216,6 +229,10 @@ chsrc_framework_init ()
216229
xy_init ();
217230

218231
ProgStatus.contributors = xy_map_new ();
232+
233+
ProgStore.pl = xy_seq_new ();
234+
ProgStore.os = xy_seq_new ();
235+
ProgStore.wr = xy_seq_new ();
219236
}
220237

221238

0 commit comments

Comments
 (0)