Commit 51179335 by James Darpinian Committed by Commit Bot

Remove literal tab characters from generate_parser_tools.py

WebKit's tools don't like literal tab characters in their repo. Bug: angleproject:3439 Change-Id: Ifd26e0bbcfaa604ed26f6a42dd7d2248e94dfeaa Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2003929Reviewed-by: 's avatarKenneth Russell <kbr@chromium.org> Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: James Darpinian <jdarpinian@chromium.org>
parent 4ff1651e
{
"src/compiler/generate_parser_tools.py":
"dca7f7926758ba89a337854f615aca46",
"78362c0f409423550b6b22a88c0ca64b",
"src/compiler/preprocessor/generate_parser.py":
"cc871de99688a35bfe32ef501f965d5a",
"src/compiler/preprocessor/preprocessor.l":
......
{
"src/compiler/generate_parser_tools.py":
"dca7f7926758ba89a337854f615aca46",
"78362c0f409423550b6b22a88c0ca64b",
"src/compiler/translator/generate_parser.py":
"566178ecdfae3a29803b3687fc518ebb",
"src/compiler/translator/glslang.l":
......
......@@ -72,14 +72,12 @@ def run_flex(basename):
# can vary based on flex version, and the string substitution will find the correct place
# automatically.
patch_in = """
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
yyg->yy_n_chars, num_to_read );"""
patch_in = """\n\t\tYY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),\n\t\t\tyyg->yy_n_chars, num_to_read );"""
patch_out = """
yy_size_t ret = 0;
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
ret, num_to_read );
yyg->yy_n_chars = static_cast<int>(ret);"""
yy_size_t ret = 0;
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
ret, num_to_read );
yyg->yy_n_chars = static_cast<int>(ret);"""
with open(output_source, 'r') as flex_output:
output = flex_output.read()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment