#ifndef _CCONTROL_H
#define _CCONTROL_H

#define new(type) ((type *)malloc(sizeof(type)))
#define streq(a,b) (strcmp((a),(b)) == 0)

struct config
{
	/* Command line args. */
	unsigned int argc;
	char **argv;

	/* Has argv[0] been replaced?  If so, we don't canonicalize. */
	int argv_subbed;

	/* Prefixes slapped on the front (ie. offset of initial argv[0]). */
	unsigned int num_prefixes;

	/* verbose flag */
	unsigned int verbose;

	/* autolimit level. */
	unsigned int autolimit;

	unsigned long num_compiles;
	unsigned long num_compiles_offset;

	/* limit num parallel */
	unsigned int num_parallel;
};

extern struct config config;

/* From option.c */
extern int parse_option(unsigned int pos, const char *value);
#endif /* _CCONTROL_H */
