anchor.diff:              print >>f, "    int i;"
           if options.get("count_function"):
               print >>f, "    int count = get_count();"
  +
           print >>f, "    comp_id = hal_init(\"%s\");" % comp_name
           print >>f, "    if(comp_id < 0) return comp_id;"
   
  
positive.code:         print >>f, "    r = hal_export_funct(buf, (void(*)(void *inst, long))%s, inst, %s, 0, comp_id);" % (
              name, int(fp))
          print >>f, "    if(r != 0) return r;"
      print >>f, "    return 0;"
      print >>f, "}"
  
  
negative.code: 
          f = open(outfilename, "w")
  
          if options.get("userspace"):
              if functions:
                  raise SystemExit, "Userspace components may not have functions"
          else:
              if not functions:
                  raise SystemExit, "Realtime component must have at least one function"
          if not pins:
              raise SystemExit, "Component must have at least one pin"
          prologue(f)
  