/***********************************************************************1* *2* This software is part of the ast package *3* Copyright (c) 1985-2011 AT&T Intellectual Property *4* and is licensed under the *5* Eclipse Public License, Version 1.0 *6* by AT&T Intellectual Property *7* *8* A copy of the License is available at *9* http://www.eclipse.org/org/documents/epl-v10.html *10* (with md5 checksum b35adb5213ca9657e911e9befb180842) *11* *12* Information and Software Systems Research *13* AT&T Research *14* Florham Park NJ *15* *16* Glenn Fowler <[email protected]> *17* David Korn <[email protected]> *18* Phong Vo <[email protected]> *19* *20***********************************************************************/21#pragma prototyped22/*23* gnu getopt interface24*/2526#ifndef _GETOPT_H27#ifdef _AST_STD_I28#define _GETOPT_H -129#else30#define _GETOPT_H 13132#include <ast_getopt.h>3334#define no_argument 035#define required_argument 136#define optional_argument 23738struct option39{40const char* name;41int has_arg;42int* flag;43int val;44};4546extern int getopt_long(int, char* const*, const char*, const struct option*, int*);47extern int getopt_long_only(int, char* const*, const char*, const struct option*, int*);4849#endif50#endif515253