fix a declaration-definition inconsistency in YapCloseAllOpenStreams() and an unreachable code bug in YapOpenStream()
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@86 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
c9c8aeb3cc
commit
93f9f77df8
@ -793,7 +793,7 @@ YapCloseAllOpenStreams(void)
|
|||||||
{
|
{
|
||||||
BACKUP_H();
|
BACKUP_H();
|
||||||
|
|
||||||
return(CloseStreams(FALSE));
|
CloseStreams(FALSE);
|
||||||
|
|
||||||
RECOVER_H();
|
RECOVER_H();
|
||||||
}
|
}
|
||||||
@ -801,10 +801,13 @@ YapCloseAllOpenStreams(void)
|
|||||||
X_API Term
|
X_API Term
|
||||||
YapOpenStream(void *fh, char *name, Term nm, int flags)
|
YapOpenStream(void *fh, char *name, Term nm, int flags)
|
||||||
{
|
{
|
||||||
|
Term retv;
|
||||||
|
|
||||||
BACKUP_H();
|
BACKUP_H();
|
||||||
|
|
||||||
return(OpenStream((FILE *)fh, name, nm, flags));
|
retv = OpenStream((FILE *)fh, name, nm, flags);
|
||||||
|
|
||||||
RECOVER_H();
|
RECOVER_H();
|
||||||
|
return retv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user