mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
cmdlist refactor: use cmdlist instead of command_list as a shorthand
I hope this doesn't break too much code ^^
This commit is contained in:
parent
56fe943efc
commit
131ba36d93
18 changed files with 98 additions and 98 deletions
|
|
@ -6,20 +6,20 @@
|
|||
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/13 15:21:09 by khais #+# #+# */
|
||||
/* Updated: 2025/03/18 13:09:16 by khais ### ########.fr */
|
||||
/* Updated: 2025/03/18 15:05:45 by khais ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
#include <assert.h>
|
||||
#include "testutil.h"
|
||||
#include "parse_command_list.h"
|
||||
#include "parse_cmdlist.h"
|
||||
#include "unistd.h"
|
||||
#include <assert.h>
|
||||
#include "parse_pipeline.h"
|
||||
#include "../src/parser/wordlist/wordlist.h"
|
||||
#include "../src/parser/wordsplit/wordsplit.h"
|
||||
#include "../src/parser/command_list/command_list_item.h"
|
||||
#include "../src/parser/cmdlist/cmdlist_item.h"
|
||||
|
||||
void assert_strequal(char *str1, char *str2)
|
||||
{
|
||||
|
|
@ -128,7 +128,7 @@ t_cmdgroup *parse_cmdgroup(char *input)
|
|||
void assert_cmdgroup_itemlistequal(char *expected_str, t_cmdgroup *got_cmd, int item_number)
|
||||
{
|
||||
ft_dprintf(STDERR_FILENO, "checking that item %d of cmdlist %p matches [%s]\n", item_number, got_cmd, expected_str);
|
||||
t_cmdlist *expected = parse_command_list(expected_str);
|
||||
t_cmdlist *expected = parse_cmdlist(expected_str);
|
||||
if (expected == NULL)
|
||||
{
|
||||
ft_dprintf(STDERR_FILENO, "expecting the list to be null\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue