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, "    hal_exit(comp_id);"
          print >>f, "}"
  
      print >>f
      if not options.get("no_convenience_defines"):
          print >>f, "#define FUNCTION(name) static void name(struct state *inst, long period)"
  
negative.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, "    inst->_next = first_inst;"
      print >>f, "    first_inst = inst;"
      print >>f, "    return 0;"
      print >>f, "}"
  
  