This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][benchtests] Skip over blank lines in the input file
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 4 Dec 2013 11:13:27 +0100
- Subject: Re: [PATCH][benchtests] Skip over blank lines in the input file
- Authentication-results: sourceware.org; auth=none
- References: <20131204100927 dot GR14845 at spoyarek dot pnq dot redhat dot com>
On Wed, Dec 04, 2013 at 03:39:27PM +0530, Siddhesh Poyarekar wrote:
> Hi,
>
> I just noticed that the input file breaks on blank lines. The patch
> below fixes it. OK to commit?
>
> Siddhesh
>
> * scripts/bench.pl: Skip over blank lines.
>
> diff --git a/scripts/bench.pl b/scripts/bench.pl
> index 7eb1525..90441e1 100755
> --- a/scripts/bench.pl
> +++ b/scripts/bench.pl
> @@ -83,8 +83,8 @@ LINE:while (<INPUTS>) {
> }
> }
>
> - # Skip over comments.
> - if (/^#/) {
> + # Skip over comments and blank lines.
> + if (/^#/ || /^$/) {
> next LINE;
> }
> push (@curvals, $_);
ok