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:
parent
baa7431853
commit
8a53433249
15
xvaga/incstr.cpp
Executable file
15
xvaga/incstr.cpp
Executable 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;
|
||||
}
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user