Kaydet (Commit) b680e352 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Test WNT instead of the vague UNX

Change-Id: Icacdae592f05bcdcf50223d607976d687e182c96
üst 90976113
......@@ -856,10 +856,10 @@ void SbiParser::AddConstants( void )
addStringConst( aPublics, "vbCrLf", "\x0D\x0A" );
addStringConst( aPublics, "vbFormFeed", "\x0C" );
addStringConst( aPublics, "vbLf", "\x0A" );
#if defined(UNX)
addStringConst( aPublics, "vbNewLine", "\x0A" );
#else
#ifndef WNT
addStringConst( aPublics, "vbNewLine", "\x0D\x0A" );
#else
addStringConst( aPublics, "vbNewLine", "\x0A" );
#endif
addStringConst( aPublics, "vbNullString", "" );
addStringConst( aPublics, "vbTab", "\x09" );
......
......@@ -79,6 +79,7 @@ using namespace com::sun::star::uno;
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <errno.h>
SbxVariable* getDefaultProp( SbxVariable* pRef );
......@@ -86,11 +87,6 @@ SbxVariable* getDefaultProp( SbxVariable* pRef );
#include <direct.h> // _getdcwd get current work directory, _chdrive
#endif
#ifdef UNX
#include <errno.h>
#include <unistd.h>
#endif
#include <basic/sbobjmod.hxx>
#ifdef WNT
......@@ -399,11 +395,6 @@ RTLFUNC(ChrW)
implChr( rPar, bChrW );
}
#ifdef UNX
#define _PATH_INCR 250
#endif
RTLFUNC(CurDir)
{
(void)pBasic;
......@@ -449,9 +440,11 @@ RTLFUNC(CurDir)
}
delete [] pBuffer;
#elif defined( UNX )
#else
const int PATH_INCR = 250;
int nSize = _PATH_INCR;
int nSize = PATH_INCR;
char* pMem;
while( true )
{
......@@ -474,7 +467,7 @@ RTLFUNC(CurDir)
return;
}
delete [] pMem;
nSize += _PATH_INCR;
nSize += PATH_INCR;
};
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment