mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Cherry-pick the lemon.c updates out of the lemon-update-2010 branch into
the trunk. FossilOrigin-Name: 1541ae3fbd7b3d471e002c0ad14e7846f7ad9415
This commit is contained in:
10
tool/lemon.c
10
tool/lemon.c
@ -20,7 +20,13 @@
|
||||
#endif
|
||||
|
||||
#ifdef __WIN32__
|
||||
extern int access();
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern int access(const char *path, int mode);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
@ -3263,7 +3269,7 @@ PRIVATE char *append_str(const char *zText, int n, int p1, int p2){
|
||||
}
|
||||
n = lemonStrlen(zText);
|
||||
}
|
||||
if( n+sizeof(zInt)*2+used >= alloced ){
|
||||
if( (int) (n+sizeof(zInt)*2+used) >= alloced ){
|
||||
alloced = n + sizeof(zInt)*2 + used + 200;
|
||||
z = (char *) realloc(z, alloced);
|
||||
}
|
||||
|
Reference in New Issue
Block a user