/*[]------------------------------------------------------------[]*/
/*|                                                              |*/
/*|     istdget.cpp                                              |*/
/*|                                                              |*/
/*|     Class istream                                            |*/
/*|          signed char istream::do_get()                       |*/
/*|                                                              |*/
/*[]------------------------------------------------------------[]*/

/*
 *      C/C++ Run Time Library - Version 6.5
 *
 *      Copyright (c) 1990, 1994 by Borland International
 *      All Rights Reserved.
 *
 */

#include <ioconfig.h>
#include <iostream.h>

// get next char, not immediately available

signed char istream::do_get()
{
    int c = bp->sbumpc();
    if( c == EOF )
        setstate(ios::eofbit | ios::failbit);
    else
        ++gcount_;
    return c;
}


