diff options
author | Arseny Smalyuk <smalukav@gmail.com> | 2022-02-10 16:48:05 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:05 +0300 |
commit | 5f8a2ce7b1dc3b3e1fae197610f189e7ed1d5723 (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /contrib/libs | |
parent | 12559cd7f2fa0cf54ffb0d961949fea58c0e18cb (diff) | |
download | ydb-5f8a2ce7b1dc3b3e1fae197610f189e7ed1d5723.tar.gz |
Restoring authorship annotation for Arseny Smalyuk <smalukav@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs')
-rw-r--r-- | contrib/libs/pire/pire/re_parser.y | 18 | ||||
-rw-r--r-- | contrib/libs/zlib/trees.c | 8 |
2 files changed, 13 insertions, 13 deletions
diff --git a/contrib/libs/pire/pire/re_parser.y b/contrib/libs/pire/pire/re_parser.y index f2f845c2d3..dbad88e287 100644 --- a/contrib/libs/pire/pire/re_parser.y +++ b/contrib/libs/pire/pire/re_parser.y @@ -70,8 +70,8 @@ void AppendRange(const Encoding& encoding, Fsm& a, const Term::CharacterRange& c %term YRE_AND %term YRE_NOT -%destructor { delete $$; } <> - +%destructor { delete $$; } <> + %% regexp @@ -80,23 +80,23 @@ regexp ConvertToFSM(rlex.Encoding(), $1); DoSwap(rlex.Retval(), *$1); delete $1; - $$ = nullptr; + $$ = nullptr; } ; alternative : conjunction - | alternative '|' conjunction { ConvertToFSM(rlex.Encoding(), ($$ = $1)) |= ConvertToFSM(rlex.Encoding(), $3); delete $2; delete $3; } + | alternative '|' conjunction { ConvertToFSM(rlex.Encoding(), ($$ = $1)) |= ConvertToFSM(rlex.Encoding(), $3); delete $2; delete $3; } ; conjunction : negation - | conjunction YRE_AND negation { ConvertToFSM(rlex.Encoding(), ($$ = $1)) &= ConvertToFSM(rlex.Encoding(), $3); delete $2; delete $3; } + | conjunction YRE_AND negation { ConvertToFSM(rlex.Encoding(), ($$ = $1)) &= ConvertToFSM(rlex.Encoding(), $3); delete $2; delete $3; } ; negation : concatenation - | YRE_NOT concatenation { ConvertToFSM(rlex.Encoding(), ($$ = $2)).Complement(); delete $1; } + | YRE_NOT concatenation { ConvertToFSM(rlex.Encoding(), ($$ = $2)).Complement(); delete $1; } ; concatenation @@ -150,7 +150,7 @@ term | YRE_DOT | '^' | '$' - | '(' alternative ')' { $$ = $2; rlex.Parenthesized($$->As<Fsm>()); delete $1; delete $3; } + | '(' alternative ')' { $$ = $2; rlex.Parenthesized($$->As<Fsm>()); delete $1; delete $3; } ; %% @@ -161,8 +161,8 @@ int yylex(YYSTYPE* lval, Pire::Lexer& rlex) Pire::Term term = rlex.Lex(); if (!term.Value().Empty()) *lval = new Any(term.Value()); - else - *lval = nullptr; + else + *lval = nullptr; return term.Type(); } catch (Pire::Error &e) { rlex.SetError(e.what()); diff --git a/contrib/libs/zlib/trees.c b/contrib/libs/zlib/trees.c index 66f57e5437..912f59dc55 100644 --- a/contrib/libs/zlib/trees.c +++ b/contrib/libs/zlib/trees.c @@ -870,10 +870,10 @@ void ZLIB_INTERNAL _tr_stored_block(s, buf, stored_len, last) bi_windup(s); /* align on byte boundary */ put_short(s, (ush)stored_len); put_short(s, (ush)~stored_len); - if (stored_len) { - zmemcpy(s->pending_buf + s->pending, (Bytef *)buf, stored_len); - s->pending += stored_len; - } + if (stored_len) { + zmemcpy(s->pending_buf + s->pending, (Bytef *)buf, stored_len); + s->pending += stored_len; + } #ifdef ZLIB_DEBUG s->compressed_len = (s->compressed_len + 3 + 7) & (ulg)~7L; s->compressed_len += (stored_len + 4) << 3; |