Skip to content

Commit

Permalink
Update readline.h
Browse files Browse the repository at this point in the history
  • Loading branch information
octoflar authored Jun 23, 2024
1 parent 96b2a3c commit 0e7738e
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions src/main/cxx/core/readline.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ read (std::istream &is, std::vector<A> &a, size_t n, bool append = false)
{
ta.push_back (aa);
}
else
{
break;
}
}

if (is)
{
if (append)
Expand Down Expand Up @@ -97,8 +100,11 @@ read (std::istream &is, std::vector<A> &a, std::vector<B> &b, size_t n,
ta.push_back (aa);
tb.push_back (bb);
}
else
{
break;
}
}

if (is)
{
if (append)
Expand Down Expand Up @@ -159,8 +165,11 @@ read (std::istream &is, std::vector<A> &a, std::vector<B> &b,
tb.push_back (bb);
tc.push_back (cc);
}
else
{
break;
}
}

if (is)
{
if (append)
Expand Down Expand Up @@ -229,8 +238,11 @@ read (std::istream &is, std::vector<A> &a, std::vector<B> &b,
tc.push_back (cc);
td.push_back (dd);
}
else
{
break;
}
}

if (is)
{
if (append)
Expand Down Expand Up @@ -308,8 +320,11 @@ read (std::istream &is, std::vector<A> &a, std::vector<B> &b,
td.push_back (dd);
te.push_back (ee);
}
else
{
break;
}
}

if (is)
{
if (append)
Expand Down Expand Up @@ -388,14 +403,20 @@ read (std::istream &is, std::vector<A> &a, std::vector<B> &b,

ist >> ss;
if (!ist)
ss.erase ();
{
ss.erase ();
}

ta.push_back (aa);
tb.push_back (bb);
tc.push_back (cc);
td.push_back (dd);
ts.push_back (ss);
}
else
{
break;
}
}

if (is)
Expand Down

0 comments on commit 0e7738e

Please sign in to comment.