Adding edit
This commit is contained in:
parent
9f81b20ea1
commit
7f2e9e7f90
2 changed files with 16 additions and 15 deletions
18
.clangd
18
.clangd
|
|
@ -53,12 +53,12 @@ CompileFlags: # Tweak the parse settings
|
||||||
- "-I/home/rparodi/Documents/shcat/includes/"
|
- "-I/home/rparodi/Documents/shcat/includes/"
|
||||||
- "-I/home/rparodi/Documents/shcat/output/include/"
|
- "-I/home/rparodi/Documents/shcat/output/include/"
|
||||||
- "-I/home/rparodi/Documents/shcat/exec/src/arith/"
|
- "-I/home/rparodi/Documents/shcat/exec/src/arith/"
|
||||||
- "-I/Users/raphael/Documents/42/cursus/shcat/vendor/"
|
- "-I/Users/raphael/Documents/shcat/vendor/"
|
||||||
- "-I/Users/raphael/Documents/42/cursus/shcat/stdme/include/"
|
- "-I/Users/raphael/Documents/shcat/stdme/include/"
|
||||||
- "-I/Users/raphael/Documents/42/cursus/shcat/allocator/include/"
|
- "-I/Users/raphael/Documents/shcat/allocator/include/"
|
||||||
- "-I/Users/raphael/Documents/42/cursus/shcat/stdme/vendor/"
|
- "-I/Users/raphael/Documents/shcat/stdme/vendor/"
|
||||||
- "-I/Users/raphael/Documents/42/cursus/shcat/stdme/output/include/"
|
- "-I/Users/raphael/Documents/shcat/stdme/output/include/"
|
||||||
- "-I/Users/raphael/Documents/42/cursus/shcat/stdme/generic_sources/header/"
|
- "-I/Users/raphael/Documents/shcat/stdme/generic_sources/header/"
|
||||||
- "-I/Users/raphael/Documents/42/cursus/shcat/includes/"
|
- "-I/Users/raphael/Documents/shcat/includes/"
|
||||||
- "-I/Users/raphael/Documents/42/cursus/shcat/output/include/"
|
- "-I/Users/raphael/Documents/shcat/output/include/"
|
||||||
- "-I/Users/raphael/Documents/42/cursus/shcat/generic_sources/header/"
|
- "-I/Users/raphael/Documents/shcat/generic_sources/header/"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/07/26 15:14:50 by maiboyer #+# #+# */
|
/* Created: 2024/07/26 15:14:50 by maiboyer #+# #+# */
|
||||||
/* Updated: 2024/07/28 19:26:01 by rparodi ### ########.fr */
|
/* Updated: 2024/07/29 15:23:47 by rparodi ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -126,18 +126,19 @@ t_error run_arithmetic_ternary(t_ast_arithmetic_ternary *arithmetic_ternary, \
|
||||||
|
|
||||||
if (arithmetic_ternary == NULL || state == NULL || out == NULL)
|
if (arithmetic_ternary == NULL || state == NULL || out == NULL)
|
||||||
return (ERROR);
|
return (ERROR);
|
||||||
|
|
||||||
if (_get_node_number(arithmetic_ternary->condition, state, &cond))
|
if (_get_node_number(arithmetic_ternary->condition, state, &cond))
|
||||||
return (ERROR);
|
return (ERROR);
|
||||||
if (cond != 0)
|
if (cond != 0)
|
||||||
{
|
|
||||||
if (_get_node_number(arithmetic_ternary->then, state, out))
|
if (_get_node_number(arithmetic_ternary->then, state, out))
|
||||||
return (ERROR);
|
return (ERROR);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
if (_get_node_number(arithmetic_ternary->else_, state, out))
|
if (_get_node_number(arithmetic_ternary->else_, state, out))
|
||||||
return (ERROR);
|
return (ERROR);
|
||||||
}
|
return (NO_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
|
t_error run_arithmetic_postfix( \
|
||||||
|
t_ast_arithmetic_postfix *arithmetic_postfix, t_state *state, t_i64 *out)
|
||||||
|
{
|
||||||
return (NO_ERROR);
|
return (NO_ERROR);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue