Mercurial > hg > Papers > 2023 > matac-sigos
view Paper/src/cd.cbc @ 17:1144bfb40db4
comments
author | matac42 <matac@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 17 Apr 2023 10:37:01 +0900 |
parents | 466b958a3419 |
children |
line wrap: on
line source
__code cd2Child(struct GearsDirectoryImpl* gearsDirectory, struct Integer* name, __code next(...)) { struct FTree* cDirectory = new FTree(); cDirectory = gearsDirectory->currentDirectory; struct Node* node = new Node(); node->key = name->value; goto cDirectory->get(node, cd2Child2); } __code cd2Child2(struct GearsDirectoryImpl* gearsDirectory, struct Node* node, __code next(...)) { struct FTree* iNodeTree = new FTree(); iNodeTree = gearsDirectory->iNodeTree; goto iNodeTree->get(node->value, cd2Child3); } __code cd2Child3(struct GearsDirectoryImpl* gearsDirectory, struct Node* node, __code next(...)) { gearsDirectory->currentDirectory = node->value; goto next(...); }