cmdarg.h revision 7c2fbfb345896881c631598ee3852ce9ce33fb07
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2008 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> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* Glenn Fowler
* AT&T Research
*
*/
#ifndef _CMDARG_H
#define _CMDARG_H
typedef struct /* cmd + args info */
{
struct
{
} total;
int argcount; /* current arg count */
int argmax; /* max # args */
int echo; /* just an echo */
int flags; /* CMD_* flags */
int insertlen; /* strlen(insert) */
int offset; /* post arg offset */
char** argv; /* exec argv */
char** firstarg; /* first argv file arg */
char** insertarg; /* argv before insert */
char** postarg; /* start of post arg list */
char** nextarg; /* next argv file arg */
char* nextstr; /* next string ends before here */
char* laststr; /* last string ends before here */
char* insert; /* replace with current arg */
} Cmdarg_t;
#if _BLD_ast && defined(__EXPORT__)
#define extern __EXPORT__
#endif
#undef extern
#endif