00001 /* 00002 * Copyright 1993, 1995 Christopher Seiwald. 00003 * 00004 * This file is part of Jam - see jam.c for Copyright information. 00005 */ 00006 00007 /* 00008 * option.h - command line option processing 00009 * 00010 * {o >o 00011 * \ -) "Command line option." 00012 * 00013 * Changes: 00014 * 00015 * 11/04/02 (seiwald) - const-ing for string literals 00016 */ 00017 00018 typedef struct option 00019 { 00020 char flag; /* filled in by getoption() */ 00021 const char *val; /* set to random address if true */ 00022 } option; 00023 00024 # define N_OPTS 256 00025 00026 int getoptions( int argc, char **argv, const char *opts, option *optv ); 00027 const char * getoptval( option *optv, char opt, int subopt );