diff options
author | Dylan Baker <[email protected]> | 2019-12-09 10:54:16 -0800 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2020-04-21 11:09:03 -0700 |
commit | bf188f3494b85f550a39dddbf059669c2a9ee324 (patch) | |
tree | ced53e90730a93cef0200b2b974d25ba09a604b5 /src/mesa/program/program_parse.y | |
parent | c495c3af26b73cb1d444fdd67cc6c1f0226bd168 (diff) |
mesa|mapi: replace _mesa_[v]snprintf with [v]snprintf
MSVC 2015 and newer has perfectly valid snprintf and vsnprintf
implementations, let's just use those.
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>
Diffstat (limited to 'src/mesa/program/program_parse.y')
-rw-r--r-- | src/mesa/program/program_parse.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/program/program_parse.y b/src/mesa/program/program_parse.y index 5e79bf7fcd4..53489410253 100644 --- a/src/mesa/program/program_parse.y +++ b/src/mesa/program/program_parse.y @@ -890,7 +890,7 @@ addrRegPosOffset: INTEGER { if (($1 < 0) || ($1 > (state->limits->MaxAddressOffset - 1))) { char s[100]; - _mesa_snprintf(s, sizeof(s), + snprintf(s, sizeof(s), "relative address offset too large (%d)", $1); yyerror(& @1, state, s); YYERROR; @@ -904,7 +904,7 @@ addrRegNegOffset: INTEGER { if (($1 < 0) || ($1 > state->limits->MaxAddressOffset)) { char s[100]; - _mesa_snprintf(s, sizeof(s), + snprintf(s, sizeof(s), "relative address offset too large (%d)", $1); yyerror(& @1, state, s); YYERROR; @@ -1121,7 +1121,7 @@ optArraySize: { if (($1 < 1) || ((unsigned) $1 > state->limits->MaxParameters)) { char msg[100]; - _mesa_snprintf(msg, sizeof(msg), + snprintf(msg, sizeof(msg), "invalid parameter array size (size=%d max=%u)", $1, state->limits->MaxParameters); yyerror(& @1, state, msg); @@ -2034,7 +2034,7 @@ ALIAS_statement: ALIAS IDENTIFIER '=' USED_IDENTIFIER if (exist != NULL) { char m[1000]; - _mesa_snprintf(m, sizeof(m), "redeclared identifier: %s", $2); + snprintf(m, sizeof(m), "redeclared identifier: %s", $2); free($2); yyerror(& @2, state, m); YYERROR; |