regexp engine now undestands some character classes (like :space:) and non-greedy ops
[k8jam.git] / src / option.h
blob158eb316ab918e0b954aacf32384570fd9c92207
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;
24 #define N_OPTS (256)
25 #define N_TARGETS (256)
27 extern int getoptions (int argc, char **argv, const char *opts, option *optv, char **targets);
28 extern const char *getoptval (option *optv, char opt, int subopt);
31 #endif