From ab09990790780aa7dd1d31b897fd6f398484ef95 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 30 Oct 2012 13:09:33 -0700 Subject: Imported Upstream version 201104 --- option.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 option.h (limited to 'option.h') diff --git a/option.h b/option.h new file mode 100644 index 0000000..99ef620 --- /dev/null +++ b/option.h @@ -0,0 +1,23 @@ +/* + * Copyright 1993, 1995 Christopher Seiwald. + * + * This file is part of Jam - see jam.c for Copyright information. + */ + +/* + * option.h - command line option processing + * + * {o >o + * \ -) "Command line option." + */ + +typedef struct bjam_option +{ + char flag; /* filled in by getoption() */ + char *val; /* set to random address if true */ +} bjam_option; + +# define N_OPTS 256 + +int getoptions( int argc, char **argv, char *opts, bjam_option *optv ); +char * getoptval( bjam_option *optv, char opt, int subopt ); -- cgit v1.2.3