version 1.1, 2003/05/11 21:36:33 |
version 1.2, 2005/10/16 18:56:35 |
|
|
* SUCH DAMAGE. |
* SUCH DAMAGE. |
*/ |
*/ |
|
|
/* $KTH: getarg.h,v 1.12 2002/04/18 08:50:08 joda Exp $ */ |
/* $KTH: getarg.h,v 1.14 2005/04/13 05:52:27 lha Exp $ */ |
|
|
#ifndef __GETARG_H__ |
#ifndef __GETARG_H__ |
#define __GETARG_H__ |
#define __GETARG_H__ |
|
|
#include <stddef.h> |
#include <stddef.h> |
|
|
|
#ifndef ROKEN_LIB_FUNCTION |
|
#ifdef _WIN32 |
|
#define ROKEN_LIB_FUNCTION _stdcall |
|
#else |
|
#define ROKEN_LIB_FUNCTION |
|
#endif |
|
#endif |
|
|
struct getargs{ |
struct getargs{ |
const char *long_name; |
const char *long_name; |
char short_name; |
char short_name; |
|
|
void *data; |
void *data; |
} getarg_collect_info; |
} getarg_collect_info; |
|
|
int getarg(struct getargs *args, size_t num_args, |
int ROKEN_LIB_FUNCTION |
int argc, char **argv, int *goptind); |
getarg(struct getargs *args, size_t num_args, |
|
int argc, char **argv, int *goptind); |
|
|
void arg_printusage (struct getargs *args, |
void ROKEN_LIB_FUNCTION |
size_t num_args, |
arg_printusage (struct getargs *args, |
const char *progname, |
size_t num_args, |
const char *extra_string); |
const char *progname, |
|
const char *extra_string); |
|
|
void free_getarg_strings (getarg_strings *); |
void ROKEN_LIB_FUNCTION |
|
free_getarg_strings (getarg_strings *); |
|
|
#endif /* __GETARG_H__ */ |
#endif /* __GETARG_H__ */ |