{
if(display)
{
-printf(__ecereNameSpace__ecere__sys__globalSystem.errorBuffer);
+printf("%s", __ecereNameSpace__ecere__sys__globalSystem.errorBuffer);
}
__ecereNameSpace__ecere__sys__globalSystem.errorBuffer[0] = '\0';
}
__ecereNameSpace__ecere__sys__GetWorkingDir(string, sizeof (string));
__ecereNameSpace__ecere__sys__PathCat(string, sourceFile);
}
-printf(string);
+printf("%s", string);
printf(__ecereNameSpace__ecere__GetTranslatedString("ec", ":%d:%d: error: ", (((void *)0))), yylloc.start.line, yylloc.start.charPos);
__builtin_va_start(args, format);
vsnprintf(string, sizeof (string), format, args);
__ecereNameSpace__ecere__sys__GetLastDirectory(string, fileName);
if(!strcmp(fileName, "intrin-impl.h"))
return ;
-printf(string);
+printf("%s", string);
printf(__ecereNameSpace__ecere__GetTranslatedString("ec", ":%d:%d: warning: ", (((void *)0))), yylloc.start.line, yylloc.start.charPos);
__builtin_va_start(args, format);
vsnprintf(string, sizeof (string), format, args);
}
if(include_stack_ptr >= (30))
{
-fprintf((bsl_stderr()), __ecereNameSpace__ecere__GetTranslatedString("ec", "Includes nested too deeply", (((void *)0))));
+fprintf((bsl_stderr()), "%s", __ecereNameSpace__ecere__GetTranslatedString("ec", "Includes nested too deeply", (((void *)0))));
exit(1);
}
if(inCompiler || !FindIncludeFileID(includeFile))
break;
case 13:
if(op->kind == 1 || op->kind == 2 || op->kind == 3 || op->kind == 4 || op->kind == 5 || op->kind == 6 || op->kind == 7 || op->kind == 13 || op->kind == 15 || op->kind == 22 || op->kind == 23 || op->kind == 24)
-result = GetOpUIntPtr(op, &op->__anon1.ui64);
+result = GetOpUInt64(op, &op->__anon1.ui64);
break;
case 15:
if(op->kind == 1 || op->kind == 2 || op->kind == 3 || op->kind == 4 || op->kind == 5 || op->kind == 6 || op->kind == 7 || op->kind == 13 || op->kind == 15 || op->kind == 22 || op->kind == 23 || op->kind == 24)
break;
case 22:
if(op->kind == 1 || op->kind == 2 || op->kind == 3 || op->kind == 5 || op->kind == 15 || op->kind == 24)
-result = isSigned ? GetOpIntPtr(op, &op->__anon1.i64) : GetOpUIntPtr(op, &op->__anon1.ui64);
+result = isSigned ? GetOpInt64(op, &op->__anon1.i64) : GetOpUInt64(op, &op->__anon1.ui64);
break;
case 23:
if(op->kind == 1 || op->kind == 2 || op->kind == 3 || op->kind == 5 || op->kind == 15 || op->kind == 24)
-result = isSigned ? GetOpIntSize(op, &op->__anon1.i64) : GetOpUIntSize(op, &op->__anon1.ui64);
+result = isSigned ? GetOpInt64(op, &op->__anon1.i64) : GetOpUInt64(op, &op->__anon1.ui64);
break;
}
return result;
if ( include_stack_ptr >= MAX_INCLUDE_DEPTH )
{
- fprintf( stderr, $"Includes nested too deeply" );
+ fprintf( stderr, "%s", $"Includes nested too deeply" );
exit( 1 );
}
#if !defined(ECERE_VANILLA) && !defined(ECERE_NONET)
#if defined(__WIN32__)
-
+#define SOCKLEN_TYPE int
#define WIN32_LEAN_AND_MEAN
#define String _String
#include <winsock.h>
#elif defined(__unix__) || defined(__APPLE__)
default:
+#define SOCKLEN_TYPE socklen_t
#define uint _uint
#define set _set
#include <sys/time.h>
{
SOCKET s;
SOCKADDR_IN a;
- uint addrLen = sizeof(a);
+ SOCKLEN_TYPE addrLen = sizeof(a);
s = accept(service.s,(SOCKADDR *)&a,&addrLen);
closesocket(s);
}
#ifndef ECERE_NONET
#if defined(__WIN32__)
-
+#define SOCKLEN_TYPE int
#define WIN32_LEAN_AND_MEAN
#define String _String
#include <winsock.h>
#elif defined(__unix__) || defined(__APPLE__)
default:
+#define SOCKLEN_TYPE socklen_t
#define set _set
#define uint _uint
#include <sys/time.h>
{
SOCKET s;
SOCKADDR_IN a;
- uint addrLen = sizeof(a);
+ SOCKLEN_TYPE addrLen = sizeof(a);
s = accept(this.s,(SOCKADDR *)&a,&addrLen);
closesocket(s);
}
#define String _String
#include <winsock.h>
#undef String
+#define SOCKLEN_TYPE int
#elif defined(__unix__) || defined(__APPLE__)
default:
+#define SOCKLEN_TYPE socklen_t
#define set _set
#define uint _uint
#include <sys/time.h>
{
SOCKET s;
SOCKADDR_IN a;
- uint addrLen = sizeof(a);
+ SOCKLEN_TYPE addrLen = sizeof(a);
value.accepted = true;
s = accept(value.s,(SOCKADDR *)&a, &addrLen);
count = ReceiveData(recvBuffer + recvBytes, recvBufferSize - recvBytes, 0);
else
{
- uint len = sizeof(a);
+ SOCKLEN_TYPE len = sizeof(a);
count = (int)recvfrom(s, (char *)recvBuffer + recvBytes,
recvBufferSize - recvBytes, 0, (SOCKADDR *)&a, &len);
strcpy(inetAddress, inet_ntoa(this.a.sin_addr));