* listing.c (listing_listing): Remove useless loop.

* macro.c (macro_expand): Remove is_positional local variable.
	* read.c (s_comm_internal): Simplify `if' condition 1 || x -> 1
	and simplify surrounding expressions, where possible.
	(assign_symbol): Likewise.
	(s_weakref): Likewise.
	* symbols.c (colon): Likewise.
This commit is contained in:
Ben Elliston
2006-05-01 09:21:46 +00:00
parent c35da14031
commit 89cdfe5739
5 changed files with 16 additions and 30 deletions

View File

@@ -1025,7 +1025,6 @@ macro_expand (int idx, sb *in, macro_entry *m, sb *out)
sb t;
formal_entry *ptr;
formal_entry *f;
int is_positional = 0;
int is_keyword = 0;
int narg = 0;
const char *err = NULL;
@@ -1116,8 +1115,6 @@ macro_expand (int idx, sb *in, macro_entry *m, sb *out)
}
else
{
/* This is a positional arg. */
is_positional = 1;
if (is_keyword)
{
err = _("can't mix positional and keyword arguments");