Patch level :2.1 nopatch

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :risolti errori compilazione release;modifiche per linux


git-svn-id: svn://10.65.10.50/trunk@12160 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2004-06-07 12:50:06 +00:00
parent 9b64e14553
commit 0e799c885f
3 changed files with 25 additions and 0 deletions

View File

@ -7,6 +7,7 @@
#include <prefix.h>
#include <reprint.h>
#include <statbar.h>
#include <utility.h>
TVariant& TVariant_stack::peek(int depth)
{

View File

@ -494,3 +494,21 @@ const char * decode(
return tmp;
}
//salta gli spazi bianchi ad inizio file
istream & eatwhite(istream & i)
{
#ifdef WIN32
i.eatwhite();
#else
char c;
while (i.get(c))
{
if (!isspace(c))
{
i.putback(c);
break;
}
}
#endif
return i;
}

View File

@ -5,6 +5,10 @@
#include <stdtypes.h>
#endif
#ifndef __INCSTR_H
#include <../xvaga/incstr.h>
#endif
class TString_array;
class TFilename;
@ -33,6 +37,8 @@ inline bool is_not_slash(char s) // @parm Carattere da confrontare
const char* esc(const char* str); // Trasforma le sequenze "\n" nel carattere '\n'
const char* unesc(const char* str); // Trasforma i caratteri '\n' nella sequenza "\n"
istream& eatwhite (istream& i);
#define ODD(x) (x & 1)
#define EVEN(x) !(x & 1)