Updated parser to be more normed

This commit is contained in:
Maieul BOYER 2024-09-02 18:07:55 +02:00
parent 5e091fdf85
commit 62ac9f3813
No known key found for this signature in database
16 changed files with 166 additions and 131 deletions

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/31 16:52:03 by maiboyer #+# #+# */
/* Updated: 2024/08/31 16:58:37 by maiboyer ### ########.fr */
/* Updated: 2024/09/02 18:06:48 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -31,7 +31,7 @@ bool ts_stack_is_paused(const t_stack *self, t_stack_version version)
t_subtree ts_stack_resume(t_stack *self, t_stack_version version)
{
t_stack_head *head;
t_subtree result;
t_subtree result;
head = array_get(&self->heads, version);
assert(head->status == SStatusPaused);

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/31 16:55:52 by maiboyer #+# #+# */
/* Updated: 2024/08/31 16:56:19 by maiboyer ### ########.fr */
/* Updated: 2024/09/02 18:06:38 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -51,7 +51,7 @@ bool ts_stack_has_advanced_since_error(const t_stack *self,
{
const t_stack_head *head = array_get(&self->heads, version);
const t_stack_node *node = head->node;
t_subtree subtree;
t_subtree subtree;
if (node->error_cost == 0)
return (true);