-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparse.c
More file actions
32 lines (29 loc) · 673 Bytes
/
Copy pathparse.c
File metadata and controls
32 lines (29 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
** parse.c for parse in /Users/Alex/work/Lem-In
**
** Made by Alex
** Login <Alex@epitech.net>
**
** Started on Wed Apr 30 16:09:14 2014 Alex
** Last update Wed Apr 30 16:37:33 2014 Alex
*/
#include "lem_in.h"
t_all *parse()
{
int i;
t_all *list;
i = 1;
list = xmalloc(sizeof(t_all));
list->map = init_parse();
if (list->map == NULL)
no_map();
list->ants = parse_ants(list->map[0]);
list->room = parse_room(list->map, &i);
list->room = fill_list_num(list->room);
list->arc = parse_arc(list->room, &i, list->map);
if (list->arc == NULL)
no_arc();
list->arc = arc_num(list->arc, list->room);
list->move = NULL;
return (list);
}