[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debconf client support in cdebconf



In reference to a message from David Whedon, dated Dec 10:
> This is an unrelated patch to debconfclient.c.  I don't know if people
> will like it, or if it just makes code harder to read.  The idea is that we
> don't want to take up a lot of space with "INPUT", "GET" in a bunch of places
> all around the tree. 

Hm... I'd rather do this with a string lookup table and macro integer
constants. I'll put something like this in tomorrow. something along the
lines of:

static char *dc_command_strings[] = {
	"INPUT", "GET", ...
};

#define DC_INPUT	0
#define DC_GET		1
...

sounds ok to you?

randolph



Reply to: