This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

demand_empty_rest_of_line and ignore_rest_of_line


Hi,
what is the intended difference between demand_empty_rest_of_line and
ignore_rest_of_line? From the source I see that demand_empty_ROL skips
whitespace but ignore_ROL does not. Then, demand_empty falls into
ignore_ROL to issue a warning and skip up to the EOL. All but one use
of ignore_ROL I saw (I've not checked the config dir yet) were of the form
	as_{bad,warn} ("something bad happened");
	ignore_rest_of_line ();
which implies to me that ignore_ROL should be silent.

Also, what do people think about demand_empty_ROL issuing an error?
IMHO, if the syntax requires no more stuff, it's an error if there is
more stuff.

Would a patch which made ignore_ROL silent and demand_empty_ROL issue
an error be acceptable?

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]