2.5.9 release
[k8jam.git] / src / option.h
blob29562f70d7080d2771b0ee8c9a1fe93fe5a099c8
1 /*
2 * Copyright 1993, 1995 Christopher Seiwald.
4 * This file is part of Jam - see jam.c for Copyright information.
5 */
6 /*
7 * option.h - command line option processing
9 * {o >o
10 * \ -) "Command line option."
12 * 11/04/02 (seiwald) - const-ing for string literals
14 #ifndef JAMH_OPTION_H
15 #define JAMH_OPTION_H
18 typedef struct option {
19 char flag; /* filled in by getoption() */
20 const char *val; /* set to random address if true */
21 } option;
23 #define N_OPTS (256)
24 #define N_TARGETS (256)
26 extern int getoptions (int argc, char **argv, const char *opts, option *optv, char **targets);
27 extern const char *getoptval (option *optv, char opt, int subopt);
30 #endif