Merge branch 'master' of klarke.webfactional.com:webapps/git/repos/libcm
This commit is contained in:
commit
865ac36953
27
cmFileSys.c
27
cmFileSys.c
@ -896,6 +896,20 @@ cmFsRC_t _cmFileSysDirGetEntries( cmFileSysDeRecd_t* drp, const cmChar_t* dirSt
|
||||
goto errLabel;
|
||||
}
|
||||
|
||||
// is a link
|
||||
if( _cmFileSysIsLink(drp->p,fn) )
|
||||
{
|
||||
if( cmIsFlag(drp->filterFlags,kLinkFsFl) == false )
|
||||
continue;
|
||||
|
||||
flags |= kLinkFsFl;
|
||||
|
||||
if( cmIsFlag(drp->filterFlags,kRecurseLinksFsFl) )
|
||||
if((rc = _cmFileSysDirGetEntries(drp,fn)) != kOkFsRC )
|
||||
goto errLabel;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
// is the entry a file
|
||||
if( _cmFileSysIsFile(drp->p,fn) )
|
||||
@ -920,19 +934,6 @@ cmFsRC_t _cmFileSysDirGetEntries( cmFileSysDeRecd_t* drp, const cmChar_t* dirSt
|
||||
goto errLabel;
|
||||
}
|
||||
else
|
||||
{
|
||||
if( _cmFileSysIsLink(drp->p,fn) )
|
||||
{
|
||||
if( cmIsFlag(drp->filterFlags,kLinkFsFl) == false )
|
||||
continue;
|
||||
|
||||
flags |= kLinkFsFl;
|
||||
|
||||
if( cmIsFlag(drp->filterFlags,kRecurseLinksFsFl) )
|
||||
if((rc = _cmFileSysDirGetEntries(drp,fn)) != kOkFsRC )
|
||||
goto errLabel;
|
||||
}
|
||||
else
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
16
cmPgmOpts.c
16
cmPgmOpts.c
@ -479,11 +479,23 @@ _cmPoArg_t* _cmPgmOptInsertArg( _cmPo_t* p, _cmPoOpt_t* r )
|
||||
a->opt = r;
|
||||
a->valStr = NULL;
|
||||
|
||||
a->link = p->args; // link into master arg list
|
||||
// link onto the end of the master arg list
|
||||
_cmPoArg_t* ap = p->args;
|
||||
while( ap!=NULL && ap->link != NULL )
|
||||
ap=ap->link;
|
||||
if( ap == NULL )
|
||||
p->args = a;
|
||||
else
|
||||
ap->link = a;
|
||||
|
||||
a->inst = r->inst; // link into opt recd list
|
||||
// link onto the end of the opt recd list
|
||||
ap = r->inst;
|
||||
while( ap!=NULL && ap->inst!=NULL)
|
||||
ap=ap->inst;
|
||||
if( ap==NULL)
|
||||
r->inst = a;
|
||||
else
|
||||
ap->inst = a;
|
||||
|
||||
// if no parm. type flag was given then the arg is implicitely a bool and the value is true.
|
||||
//if( (r->flags & kTypeMaskPoFl) == 0 )
|
||||
|
Loading…
Reference in New Issue
Block a user