+static SD_task_t current_child;
+void STag_dax__child(void) {
+ current_child = xbt_dict_get_or_null(jobs,A_dax__child_ref);
+ if (current_child==NULL)
+ dax_parse_error(bprintf("Asked to add dependencies to the non-existent %s task",A_dax__child_ref));
+}
+void ETag_dax__child(void) {
+ current_child=NULL;
+}
+void STag_dax__parent(void) {
+ SD_task_t parent = xbt_dict_get_or_null(jobs,A_dax__parent_ref);
+ if (parent == NULL)
+ dax_parse_error(bprintf("Asked to add a dependency from %s to %s, but %s does not exist",
+ current_child->name,A_dax__parent_ref,A_dax__parent_ref));
+ SD_task_dependency_add(NULL,NULL,parent,current_child);
+ DEBUG2("Control-flow dependency from %s to %s", current_child->name,parent->name);
+}