summaryrefslogtreecommitdiff
path: root/option.h
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-30 13:09:33 -0700
committerAnas Nashif <anas.nashif@intel.com>2012-10-30 13:09:33 -0700
commitab09990790780aa7dd1d31b897fd6f398484ef95 (patch)
tree852f6a9eeeecb7cf4d5b1049a1acaf748dad7dfd /option.h
downloadboost-jam-ab09990790780aa7dd1d31b897fd6f398484ef95.tar.gz
boost-jam-ab09990790780aa7dd1d31b897fd6f398484ef95.tar.bz2
boost-jam-ab09990790780aa7dd1d31b897fd6f398484ef95.zip
Imported Upstream version 201104upstream/201104upstream
Diffstat (limited to 'option.h')
-rw-r--r--option.h23
1 files changed, 23 insertions, 0 deletions
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 );