1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Cosmetic changes for (hopefully) better readability.

git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14837 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-02-21 10:22:02 +00:00
parent 18f1f75479
commit c4c25649f2
30 changed files with 93 additions and 77 deletions

View File

@@ -1,5 +1,5 @@
/*
* $Id: stdio_fputc.c,v 1.3 2005-02-03 16:56:16 obarthel Exp $
* $Id: stdio_fputc.c,v 1.4 2005-02-21 10:21:48 obarthel Exp $
*
* :ts=4
*
@@ -72,9 +72,10 @@ __fputc_check(FILE *stream)
{
SHOWMSG("this file is not even in use");
SET_FLAG(file->iob_Flags,IOBF_ERROR);
__set_errno(EBADF);
SET_FLAG(file->iob_Flags,IOBF_ERROR);
goto out;
}
@@ -82,9 +83,10 @@ __fputc_check(FILE *stream)
{
SHOWMSG("this stream is not write enabled");
SET_FLAG(file->iob_Flags,IOBF_ERROR);
__set_errno(EBADF);
SET_FLAG(file->iob_Flags,IOBF_ERROR);
goto out;
}
@@ -94,7 +96,7 @@ __fputc_check(FILE *stream)
goto out;
}
result = OK;
result = 0;
out:
@@ -148,7 +150,7 @@ fputc(int c,FILE *stream)
assert( FLAG_IS_SET(file->iob_Flags,IOBF_IN_USE) );
if(__fputc_check(stream) != OK)
if(__fputc_check(stream) < 0)
goto out;
result = __fputc(c,stream,(file->iob_Flags & IOBF_BUFFER_MODE));