	cp options.c temp
	ed - temp <<'X'
		1,/struct option/d
		/}/-1,$d
		1,$s/^.*\/\*//
		1,$s/\*\///
		1m$
		w
		!number temp>temp1; rm temp
		e temp1
		$t0
		1s/....../   0  /
		1,$s/\(......\)\(.*\)/#define	\2	\1/
		1,$s/  *$//
		1,$-1s/\([0-9][0-9]*\)/(options[\1/
		1,$-1s/$/].op_value)/
		$s/^[^0-9]*\([0-9]\)/#define NOPTS \1/
		w
		e options.h
		/option names/+1,$d
		$r temp1
		w
		q
'X'
rm temp1
