/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2003-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
*/
#include "jcllib.h"
{
{ "SYSOUT", 1 },
{ "SYSERR", 2 },
};
/*
* open a handle to the jcl deck
*/
{
int i;
{
if (vm)
return 0;
}
{
return 0;
}
for (i = 0; i < elementsof(redirect); i++)
if (!(jcl->cp = sfstropen()) || !(jcl->rp = sfstropen()) || !(jcl->tp = sfstropen()) || !(jcl->vp = sfstropen()) || !(jcl->xp = sfstropen()))
goto mem;
goto mem;
{
{
file = 0;
}
goto bad;
goto bad;
goto bad;
}
return jcl;
mem:
bad:
return 0;
}
/*
* close jcl handle
*/
int
{
int i;
int r;
if (!jcl)
return -1;
r = 256 + 6;
for (i = 0; i < elementsof(redirect); i++)
r = -1;
return r;
}
/*
* push an include file
*/
int
{
{
return -1;
}
error_info.line = 0;
return 0;
}
/*
* pop the top include file
* return
* >0 some includes left
* 0 last include popped
* <0 no includes left
*/
int
{
return -1;
}