Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
// $XConsortium: ios.C /main/4 1996/08/21 15:54:46 drk $
#include "utility/c_ios.h"
#include <ctype.h>
#include <stdio.h>
ios::ios(streambuf* sb) : sbuf(sb), f_state(OK)
{
}
ios::~ios()
{
delete sbuf;
}
int ios::fail()
{
if ( bad() ) return 1;
if ( BIT_TEST(f_state, FAIL) )
return 1;
else
return 0;
}
int ios::bad()
{
if ( BIT_TEST(f_state, BAD) )
return 1;
else
return 0;
}