/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1982-2011 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* David Korn <dgk@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* David Korn
* AT&T Labs
*
* shell parse tree dump
*
*/
#include "defs.h"
#include "shnodes.h"
#include "path.h"
#include "io.h"
#include <ccode.h>
static int p_redirect(const struct ionod*);
static int p_string(const char*);
{
return(p_tree(t));
}
/*
* convert to ASCII to write and back again if needed
*/
{
int r;
return(r);
}
/*
* print script corresponding to shell tree <t>
*/
{
if(!t)
return(-1);
{
case TTIME:
case TPAR:
case TCOM:
case TSETIO:
case TFORK:
return(-1);
return(-1);
case TIF:
return(-1);
return(-1);
case TWH:
{
return(-1);
}
else
{
return(-1);
}
return(-1);
case TLST:
case TAND:
case TORF:
case TFIL:
return(-1);
case TARITH:
return(-1);
case TFOR:
return(-1);
return(-1);
return(-1);
case TSW:
return(-1);
return(-1);
case TFUN:
return(-1);
return(-1);
return(-1);
case TTST:
return(-1);
else
{
return(-1);
return(0);
}
}
return(-1);
}
{
register int n;
while(arg)
{
fp=0;
else
{
}
if(fp)
{
}
else
if(fp)
{
}
}
}
{
while(iop)
{
else
{
}
else
}
}
{
else
}
{
register int n;
argv++;
}
{
while(reg)
{
}
}
{
return(-1);
}