Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: enkf_uti_util: added util_alloc_stdin_line. #95

Merged
merged 2 commits into from
Feb 8, 2018

Conversation

stefoss23
Copy link

@stefoss23 stefoss23 commented Feb 8, 2018

Task
util_alloc_stdin_line was supposed to die, but is still used in the ert-rep.

Approach
util_alloc_stdin_lin is moved to enkf_uti_util.

Pre un-WIP checklist

  • Statoil tests pass locally
  • Have completed graphical integration test steps

Depends on

@stefoss23 stefoss23 closed this Feb 8, 2018
@stefoss23 stefoss23 reopened this Feb 8, 2018
@stefoss23 stefoss23 closed this Feb 8, 2018
@stefoss23 stefoss23 reopened this Feb 8, 2018
@joakim-hove joakim-hove merged commit ed4dd30 into equinor:master Feb 8, 2018
@pgdr
Copy link
Contributor

pgdr commented Feb 8, 2018

Please don't merge PRs that are WIPs. A PR should be unWIPed before review starts.

input = (char*)util_realloc(input , input_size );
}
} else end = true;
} while (!end);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could just be while (true) { ... } with a break, and then we could get rid of end.

@joakim-hove
Copy link
Contributor

OK - I agree with both:

Please don't merge PRs that are WIPs. A PR should be unWIPed before review starts.

and

this could just be while (true) { ... } with a break, and then we could get rid of end.

However - this code has been moved as close to extinction as possible in the ert codebase; it worked before (it was just moved from libecl in equinor/resdata#321) and is good enough for a limited future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants