lexer (need refactoring)

+ littles miscs
This commit is contained in:
LuckyLaszlo
2021-10-19 20:25:41 +02:00
parent e451a1f050
commit 1054f3d6ff
8 changed files with 244 additions and 12 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/10 05:01:22 by lperrey #+# #+# */
/* Updated: 2021/10/11 01:50:53 by lperrey ### ########.fr */
/* Updated: 2021/10/15 08:45:33 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -17,7 +17,8 @@ int builtin_exit(int argc, char *argv[], t_all *c) // WIP
unsigned char status;
int i;
status = 0;
status = 0; // # should not return '0' by default, but the last exit code value (same as $?)
// status = c->last_exit_value; // LIKE THIS
if (argc > 2)
return (ft_reti_print(1, "exit: too many arguments\n", 2));
if (argc == 2)