Patch : 2.1 nopatch (linux)

Files :

Aggiunto incstr.cpp


git-svn-id: svn://10.65.10.50/trunk@12155 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2004-06-07 08:55:24 +00:00
parent baa7431853
commit 8a53433249
2 changed files with 25 additions and 2 deletions

15
xvaga/incstr.cpp Executable file
View File

@ -0,0 +1,15 @@
#include <incstr.h>
istream & eatwhite(istream & i)
{
char c;
while (i.get(c))
{
if (!isspace(c))
{
i.putback(c);
break;
}
}
return i;
}

View File

@ -1,13 +1,21 @@
#ifndef __INCSTR_H
#define __INCRSTR_H
#ifdef WIN32
#ifndef _INC_FSTREAM
#include <fstream.h>
#endif
#include <strstrea.h>
#else
istream & eatwhite(istream & i) { i.eatwhite(); }
#else // WIN32
#include <fstream>
#include <iostream>
#include <sstream>
using namespace std;
#endif
istream & eatwhite(istream & i);
#endif //WIN32
#endif