Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct sPath_Paths_Paths_Path
- {
- idPath_Path id_path;
- char *t_path;
- uint32_t u4_len;
- };
- struct sPath_Paths_Paths
- {
- idPath_Paths id_paths;
- struct sPath_Paths_Paths_Path *as_paths;
- uint32_t u4_paths;
- };
- struct sPath_Paths
- {
- struct sPath_Paths_Paths *as_paths;
- uint32_t u4_paths;
- struct sBasic_Pack *ps_pack;
- };
- const uint32_t cu4_sPath_Paths = sizeof(struct sPath_Paths);
- #define SFENCEPATH_fromerror_paths (SFENCEPATH_fromerror+0)
- struct sPath_Paths * Path_Paths_Construct(struct sPath_Paths *ps_paths, struct sBasic_Pack *ps_pack)
- {
- //enum eSFENCE_Bool b_return=eSFENCE_Bool_False;
- if (ps_paths==NULL)
- {
- ps_paths=(struct sPath_Paths *)GetRAM(ps_pack, cu4_sPath_Paths);
- //b_return=eSFENCE_Bool_True;
- }
- if (ps_paths)
- {
- ps_paths->ps_pack=ps_pack;
- ps_paths->as_paths=NULL;
- ps_paths->u4_paths=0;
- }
- return ps_paths;
- }
- void Path_Paths_Destruct(struct sPath_Paths *ps_paths, enum eSFENCE_Bool b_return)
- {
- CHECKTHIS(ps_paths, 0, )
- {
- uint32_t u4_n, u4_k;
- for (u4_n=0;u4_n<ps_paths->u4_paths;u4_n++)
- {
- for (u4_k=0;u4_k<ps_paths->as_paths[u4_n].u4_paths;u4_k++)
- {
- if (ps_paths->as_paths[u4_n].as_paths[u4_k].t_path) ReturnRAM(ps_paths->ps_pack, ps_paths->as_paths[u4_n].as_paths[u4_k].t_path);
- }
- if (ps_paths->as_paths[u4_n].as_paths) ReturnRAM(ps_paths->ps_pack, ps_paths->as_paths[u4_n].as_paths);
- }
- }
- if (ps_paths->as_paths) ReturnRAM(ps_paths->ps_pack, ps_paths->as_paths);
- if (b_return==eSFENCE_Bool_True) ReturnRAM(ps_paths->ps_pack, ps_paths);
- }
Add Comment
Please, Sign In to add comment