anchor.diff:          print >>f, ".SH FUNCTIONS"
           for _, name, fp, doc in finddocs('funct'):
               print >>f, ".TP"
  +            if not options.get("singleton"):
  +                print >>f, "\\fB%s\\fR" % to_hal_man_unnumbered("all")
  +                print >>f, ".TQ"
               print >>f, "\\fB%s\\fR" % to_hal_man(name),
               if fp:
                   print >>f, "(uses floating-point)"
  
positive.code:         print >>f, "#include <stdlib.h>"
  
      print >>f, "struct state *inst=0;"
      print >>f, "struct state *first_inst=0;"
      
      print >>f
      for name, fp in functions:
  
negative.code:                 (name == None or name == item[1])):
                      yield item
  
  def to_hal_man_unnumbered(s):
      s = "%s.%s" % (comp_name, s)
      s = s.replace("_", "-")
      s = s.rstrip("-")
      s = s.rstrip(".")
      s = re.sub("#+", lambda m: "\\fI" + "M" * len(m.group(0)) + "\\fB", s)
      # s = s.replace("-", "\\-")
      return s
  
  
  def to_hal_man(s):
      if options.get("singleton"):
          s = "%s.%s" % (comp_name, s)
  