#!/usr/local/bin/perl use Getopt::Std; getopts('chsp'); # ARG 0 is components.txt open(PV,"$ARGV[0]") || die "Can't open components file $ARGV[0]:$!"; my @components; while (){ chop; push(@components,$_); } close PV; if ($opt_c or $opt_h){ print < /* for va_arg functions */ EOM } if ($opt_p){ print <