/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-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> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* Glenn Fowler
* AT&T Research
*
* command line option parse interface
*/
#ifndef _OPTION_H
#define _OPTION_H
#include <ast.h>
struct Opt_s;
struct Optdisc_s;
typedef struct Optdisc_s
{
} Optdisc_t;
/* NOTE: Opt_t member order fixed by a previous binary release */
#ifndef _OPT_PRIVATE_
#define _OPT_PRIVATE_ \
char pad[3*sizeof(void*)];
#endif
typedef struct Opt_s
{
} Opt_t;
#if _BLD_ast && defined(__EXPORT__)
#define extern extern __EXPORT__
#endif
#if !_BLD_ast && defined(__IMPORT__)
#define extern extern __IMPORT__
#endif
extern Opt_t* _opt_infop_;
#undef extern
#define optinit(d,f) (memset(d,0,sizeof(*(d))),(d)->version=OPT_VERSION,(d)->infof=(f),opt_info.disc=(d))
#if _BLD_ast && defined(__EXPORT__)
#define extern __EXPORT__
#endif
extern int optget(char**, const char*);
extern int optjoin(char**, ...);
extern char* opthelp(const char*, const char*);
extern char* optusage(const char*);
extern int optstr(const char*, const char*);
#undef extern
#endif