/* : : generated by proto : : */
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1992-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 *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* *
***********************************************************************/
/*
* AT&T Research
*
* builtin cmd definitions
*/
#ifndef _CMD_H
#if !defined(__PROTO__)
#include <prototyped.h>
#endif
#if !defined(__LINKAGE__)
#endif
#define _CMD_H
#include <ast.h>
#include <error.h>
#include <stak.h>
#include <shcmd.h>
#if _BLD_cmd && defined(__EXPORT__)
#endif
#include <cmdext.h>
#if defined(CMD_BUILTIN) && !defined(CMD_STANDALONE)
#endif
#ifdef CMD_STANDALONE
#if CMD_DYNAMIC
#include <dlldefs.h>
#else
#endif
#ifndef CMD_BUILTIN
/*
* command initialization
*/
static int
cmdinit __PARAM__((int argc, register char** argv, __V_* context, const char* catalog, int flags), (argc, argv, context, catalog, flags)) __OTORP__(int argc; register char** argv; __V_* context; const char* catalog; int flags;){
register char* cp;
register char* pp;
cp++;
else
if (!error_info.catalog)
if (context)
return 0;
}
#endif
int
#if CMD_DYNAMIC
register char* s;
register char* t;
s++;
else if (!(s = argv[0]))
return 127;
if ((t = strrchr(s, '_')) && *++t)
s = t;
buf[0] = '_';
*t = 0;
for (;;)
{
{
break;
break;
}
{
break;
break;
}
return 127;
}
#else
#endif
}
#else
#ifdef _MSC_VER
#else
#define CMD_CONTEXT(p) (((p)&&((Shbltin_t*)(p))->version>=20071012&&((Shbltin_t*)(p))->version<20350101)?((Shbltin_t*)(p)):0)
#define cmdinit(a,b,c,d,e) do{if((c)&&!CMD_CONTEXT(c))c=0;if(_cmd_init(a,b,c,d,e))return -1;}while(0)
#endif
#if _BLD_cmd && defined(__EXPORT__)
#endif
#endif
#endif