- result= context->length - context->pos; \
- result > max_size ? result = max_size : 0; \
+ result= (int)(context->length - context->pos); \
+ (size_t)result > (size_t)max_size ? result= max_size : 0; \
memcpy(buffer, context->buf + context->pos, result); \
context->pos += result; \
} \
memcpy(buffer, context->buf + context->pos, result); \
context->pos += result; \
} \
"--VERIFY_KEY" { yyextra->begin= yytext; return VERIFY_KEY; }
"--VERIFY-KEY" { yyextra->begin= yytext; return VERIFY_KEY; }
"--VERIFY_KEY" { yyextra->begin= yytext; return VERIFY_KEY; }
"--VERIFY-KEY" { yyextra->begin= yytext; return VERIFY_KEY; }
"--BINARY_PROTOCOL" { yyextra->begin= yytext; return BINARY_PROTOCOL; }
"--BINARY-PROTOCOL" { yyextra->begin= yytext; return BINARY_PROTOCOL; }
"--BUFFER_REQUESTS" { yyextra->begin= yytext; return BUFFER_REQUESTS; }
"--BINARY_PROTOCOL" { yyextra->begin= yytext; return BINARY_PROTOCOL; }
"--BINARY-PROTOCOL" { yyextra->begin= yytext; return BINARY_PROTOCOL; }
"--BUFFER_REQUESTS" { yyextra->begin= yytext; return BUFFER_REQUESTS; }
"--RCV-TIMEOUT=" { yyextra->begin= yytext; return RCV_TIMEOUT; }
"--RETRY_TIMEOUT=" { yyextra->begin= yytext; return RETRY_TIMEOUT; }
"--RETRY-TIMEOUT=" { yyextra->begin= yytext; return RETRY_TIMEOUT; }
"--RCV-TIMEOUT=" { yyextra->begin= yytext; return RCV_TIMEOUT; }
"--RETRY_TIMEOUT=" { yyextra->begin= yytext; return RETRY_TIMEOUT; }
"--RETRY-TIMEOUT=" { yyextra->begin= yytext; return RETRY_TIMEOUT; }
"--SND_TIMEOUT=" { yyextra->begin= yytext; return SND_TIMEOUT; }
"--SND-TIMEOUT=" { yyextra->begin= yytext; return SND_TIMEOUT; }
"--SND_TIMEOUT=" { yyextra->begin= yytext; return SND_TIMEOUT; }
"--SND-TIMEOUT=" { yyextra->begin= yytext; return SND_TIMEOUT; }
"--SOCKET_RECV_SIZE=" { yyextra->begin= yytext; return SOCKET_RECV_SIZE; }
"--SOCKET-RECV-SIZE=" { yyextra->begin= yytext; return SOCKET_RECV_SIZE; }
"--SOCKET_SEND_SIZE=" { yyextra->begin= yytext; return SOCKET_SEND_SIZE; }
"--SOCKET_RECV_SIZE=" { yyextra->begin= yytext; return SOCKET_RECV_SIZE; }
"--SOCKET-RECV-SIZE=" { yyextra->begin= yytext; return SOCKET_RECV_SIZE; }
"--SOCKET_SEND_SIZE=" { yyextra->begin= yytext; return SOCKET_SEND_SIZE; }