public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* demand_empty_rest_of_line and ignore_rest_of_line
@ 2004-03-17 16:36 Nathan Sidwell
  2004-03-17 16:43 ` Hans-Peter Nilsson
  2004-03-17 16:49 ` Ian Lance Taylor
  0 siblings, 2 replies; 41+ messages in thread
From: Nathan Sidwell @ 2004-03-17 16:36 UTC (permalink / raw)
  To: binutils

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


^ permalink raw reply	[flat|nested] 41+ messages in thread

end of thread, other threads:[~2004-04-27 10:56 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-17 16:36 demand_empty_rest_of_line and ignore_rest_of_line Nathan Sidwell
2004-03-17 16:43 ` Hans-Peter Nilsson
2004-03-17 16:49 ` Ian Lance Taylor
2004-03-18 10:29   ` Nathan Sidwell
2004-03-18 13:15     ` Ian Lance Taylor
2004-04-23 23:15     ` Andreas Schwab
2004-04-24 17:36       ` Hans-Peter Nilsson
2004-04-24 17:57         ` Andreas Schwab
2004-04-24 18:26           ` Hans-Peter Nilsson
2004-04-24 19:22             ` Andreas Schwab
2004-04-24 21:31               ` Hans-Peter Nilsson
2004-04-24 21:33                 ` Andreas Schwab
2004-04-24 23:25                   ` Hans-Peter Nilsson
2004-04-24 23:37                     ` Andreas Schwab
2004-04-25  0:03                     ` Zack Weinberg
2004-04-25  0:22                       ` Hans-Peter Nilsson
2004-04-26  0:28                         ` Zack Weinberg
2004-04-26  0:58                           ` Hans-Peter Nilsson
2004-04-26  2:14                             ` Hans-Peter Nilsson
2004-04-25 23:35                       ` Ian Lance Taylor
2004-04-26  0:51                         ` Zack Weinberg
2004-04-26  2:46                           ` Ian Lance Taylor
2004-04-26  3:13                             ` Zack Weinberg
2004-04-26 14:16                               ` Ian Lance Taylor
2004-04-26 14:22                                 ` Andreas Schwab
2004-04-26 14:34                                   ` Richard Earnshaw
2004-04-26 15:29                                     ` Ian Lance Taylor
2004-04-26 19:26                                       ` Hans-Peter Nilsson
2004-04-26 19:42                                 ` Kai Henningsen
2004-04-26 19:45                                   ` Ian Lance Taylor
2004-04-26 20:04                                     ` Ian Lance Taylor
2004-04-27  1:32                                 ` Zack Weinberg
2004-04-27  2:02                                   ` Hans-Peter Nilsson
2004-04-27  2:38                                     ` Zack Weinberg
2004-04-27  2:35                                   ` Alan Modra
2004-04-27  3:13                                     ` Zack Weinberg
2004-04-27  4:33                                       ` Ian Lance Taylor
2004-04-27  5:19                                         ` Zack Weinberg
2004-04-27  6:52                                           ` Ian Lance Taylor
2004-04-27 11:43                                         ` Richard Earnshaw
2004-04-27  2:47                                   ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).