gopher/flags.h

24 lines
433 B
C
Raw Normal View History

2012-04-28 03:36:25 +00:00
#ifndef __flags_h__
#define __flags_h__
typedef struct Flags {
int _0:1; // -1 (use http 1.0)
int _9:1; // -9 (use http 0.9)
2012-04-28 18:03:55 +00:00
int _i:1; // -i (include http headers)
2012-04-30 02:46:11 +00:00
int _I:1; // -I (http HEAD command)
2012-04-28 03:36:25 +00:00
int _O:1; // -O (file name from url)
int _v:1; // -v (verbose)
2012-04-30 02:46:11 +00:00
int _V:1;
2012-04-28 03:36:25 +00:00
char *_o;
} Flags;
extern struct Flags flags;
2012-04-30 02:46:11 +00:00
int ParseFlags(int argc, char **argv);
void help(void);
2012-04-28 03:36:25 +00:00
#endif