Commit c922100b authored by dcw's avatar dcw
Browse files

minor change; merged a WriteString and following WriteChar

in generated code
parent a73114e0
...@@ -623,15 +623,17 @@ static void write_all_params( dname, s ) char *dname; shape s; ...@@ -623,15 +623,17 @@ static void write_all_params( dname, s ) char *dname; shape s;
if( s->pl == NULL ) if( s->pl == NULL )
{ {
/* No print items given - use defaults */ /* No print items given - use defaults */
line( "WriteString( f, \"%s\" );", s->name );
if( s->params ) if( s->params )
{ {
line( "WriteChar( f, '(' );" ); line( "WriteString( f, \"%s(\" );", s->name );
for( p = s->params; p != NULL; p = p->next ) for( p = s->params; p != NULL; p = p->next )
{ {
write_param( s->name, p ); write_param( s->name, p );
} }
line( "WriteChar( f, ')' );" ); line( "WriteChar( f, ')' );" );
} else
{
line( "WriteString( f, \"%s\" );", s->name );
} }
} else } else
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment