Eliminate global curr_fh, curr_name, and curr_line.  Clean up resolve.c.