code cleaning done on 80 percent of the parser functions, whats left is to re structure the syntax struct and do furthure tests to eliminate level 0 errors
This commit is contained in:
@@ -6,15 +6,16 @@
|
||||
/* By: mndhlovu <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/03/29 07:17:06 by mndhlovu #+# #+# */
|
||||
/* Updated: 2019/04/26 12:15:47 by mndhlovu ### ########.fr */
|
||||
/* Updated: 2019/04/29 12:05:52 by mndhlovu ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "lem_in.h"
|
||||
|
||||
static int is_link_in(t_lmdata *data, int src, int dest)
|
||||
static int is_link_in(t_lmdata *data, int src, int dest)
|
||||
{
|
||||
t_ind *it;
|
||||
t_ind *it;
|
||||
|
||||
if (src < data->nb_nodes)
|
||||
{
|
||||
it = data->adj[src];
|
||||
@@ -28,15 +29,13 @@ static int is_link_in(t_lmdata *data, int src, int dest)
|
||||
return (0);
|
||||
}
|
||||
|
||||
int lm_adj_parser(t_lmdata *lmdata, t_holder *holder)
|
||||
int lm_adj_parser(t_lmdata *lmdata, t_holder *holder)
|
||||
{
|
||||
t_temp *data;
|
||||
t_temp *data;
|
||||
|
||||
ft_printf("=== lm_adj_parser ===\nholder: %p\n\n", holder);
|
||||
if (holder != NULL)
|
||||
{
|
||||
data = holder->data;
|
||||
ft_printf("data: %p\n\n", data);
|
||||
if (data != NULL)
|
||||
{
|
||||
while (data)
|
||||
|
Reference in New Issue
Block a user