Example #1
0
File: deparse.c Project: att/ast
static_fn void p_comarg(const struct comnod *com) {
    int flag = end_line;

    if (com->comtyp & FAMP) sfwrite(outfile, "& ", 2);
    if (com->comarg || com->comio) flag = ' ';
    if (com->comset) p_arg(com->comset, flag, POST);
    if (com->comarg) {
        if (!com->comio) flag = end_line;
        if (com->comtyp & COMSCAN) {
            p_arg(com->comarg, flag, POST);
        } else {
            p_comlist((struct dolnod *)com->comarg, flag);
        }
    }
    if (com->comio) p_redirect(com->comio);
}
Example #2
0
static void p_comarg(register const struct comnod *com)
{
	register int flag = end_line;
	if(com->comarg || com->comio)
		flag = ' ';
	if(com->comset)
		p_arg(com->comset,flag,POST);
	if(com->comarg)
	{
		if(!com->comio)
			flag = end_line;
		if(com->comtyp&COMSCAN)
			p_arg(com->comarg,flag,POST);
		else
			p_comlist((struct dolnod*)com->comarg,flag);
	}
	if(com->comio)
		p_redirect(com->comio);
	return;
}