diff options
Diffstat (limited to 'src/util/ss/options.c')
| -rw-r--r-- | src/util/ss/options.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/util/ss/options.c b/src/util/ss/options.c new file mode 100644 index 000000000000..c3452f9e1878 --- /dev/null +++ b/src/util/ss/options.c @@ -0,0 +1,33 @@ +/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* + * Copyright 1987, 1988 by MIT Student Information Processing Board + * + * For copyright information, see copyright.h. + */ +#include "copyright.h" +#include <stdio.h> +#include "ss.h" + +struct option { + char *text; + long value; +}; + +static struct option options[] = { + { "dont_list", SS_OPT_DONT_LIST }, + { "^list", SS_OPT_DONT_LIST }, + { "dont_summarize", SS_OPT_DONT_SUMMARIZE }, + { "^summarize", SS_OPT_DONT_SUMMARIZE }, + { (char *)NULL, 0 } +}; + +long +flag_val(string) + register char *string; +{ + register struct option *opt; + for (opt = options; opt->text; opt++) + if (!strcmp(opt->text, string)) + return(opt->value); + return(0); +} |
