Skip to content
Snippets Groups Projects
Commit 6ea53ec9 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

allow multiple subdir at ss_resolve_src

parent 8503b7da
No related branches found
No related tags found
No related merge requests found
...@@ -177,7 +177,6 @@ int ss_resolve_src(genalloc *ga, stralloc *sasrc, char const *name, char const * ...@@ -177,7 +177,6 @@ int ss_resolve_src(genalloc *ga, stralloc *sasrc, char const *name, char const *
stralloc sainsta = STRALLOC_ZERO ; stralloc sainsta = STRALLOC_ZERO ;
stralloc subdir = STRALLOC_ZERO ; stralloc subdir = STRALLOC_ZERO ;
if (!stralloc_cats(&subdir,src)) goto errstra ; if (!stralloc_cats(&subdir,src)) goto errstra ;
//if (!stralloc_cats(&subdir,"/")) goto errstra ;
obr = insta = 0 ; obr = insta = 0 ;
...@@ -209,7 +208,7 @@ int ss_resolve_src(genalloc *ga, stralloc *sasrc, char const *name, char const * ...@@ -209,7 +208,7 @@ int ss_resolve_src(genalloc *ga, stralloc *sasrc, char const *name, char const *
if (!stralloc_cats(&subdir,d->d_name)) goto errdir ; if (!stralloc_cats(&subdir,d->d_name)) goto errdir ;
if (!stralloc_cats(&subdir,"/")) goto errdir ; if (!stralloc_cats(&subdir,"/")) goto errdir ;
if (!stralloc_0(&subdir)) goto errdir ; if (!stralloc_0(&subdir)) goto errdir ;
*found = 2 ; (*found)++ ;
if (!ss_resolve_src(ga,sasrc,name,subdir.s,found)) goto errdir ; if (!ss_resolve_src(ga,sasrc,name,subdir.s,found)) goto errdir ;
} }
obr = 0 ; obr = 0 ;
...@@ -272,7 +271,7 @@ int ss_resolve_src(genalloc *ga, stralloc *sasrc, char const *name, char const * ...@@ -272,7 +271,7 @@ int ss_resolve_src(genalloc *ga, stralloc *sasrc, char const *name, char const *
if (*found > 1) if (*found > 1)
{ {
*found = 0 ; (*found)-- ;
return 1 ; return 1 ;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment