2014-03-16 19:54 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/hbapifs.h
* src/rtl/filebuf.c
* move HB_FILE_TYPE_MAX definition to header file
% include C stat() header only in *nix builds
* src/pp/ppcore.c
! force stringify when illegal characters are included inside
square brackets []
This commit is contained in:
@@ -769,6 +769,8 @@ static HB_BOOL hb_pp_canQuote( HB_BOOL fQuote, char * pBuffer, HB_SIZE nLen,
|
||||
cQuote = '\'';
|
||||
else if( pBuffer[ n ] == '\'' || pBuffer[ n ] == '"' )
|
||||
cQuote = pBuffer[ n ];
|
||||
else if( HB_PP_ISILLEGAL( pBuffer[ n ] ) )
|
||||
fQuote = HB_TRUE;
|
||||
}
|
||||
++n;
|
||||
}
|
||||
|
||||
@@ -56,12 +56,10 @@
|
||||
#include "hbthread.h"
|
||||
#include "hbvm.h"
|
||||
|
||||
#if ! defined( HB_OS_WIN_CE )
|
||||
#if defined( HB_OS_UNIX )
|
||||
# include <sys/types.h>
|
||||
# include <sys/stat.h>
|
||||
# if defined( HB_OS_UNIX )
|
||||
# include <unistd.h>
|
||||
# endif
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -898,8 +896,6 @@ static PHB_FILE hb_fileposNew( PHB_FILE pFile )
|
||||
|
||||
#endif /* HB_OS_UNIX */
|
||||
|
||||
#define HB_FILE_TYPE_MAX 64
|
||||
|
||||
static const HB_FILE_FUNCS * s_pFileTypes[ HB_FILE_TYPE_MAX ];
|
||||
static int s_iFileTypes = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user