Diff for /src/sys/tools/makeobjops.awk between versions 1.3 and 1.4

version 1.3, 2004/03/07 12:48:34 version 1.4, 2004/04/14 18:28:29
Line 284  function handle_method (static) Line 284  function handle_method (static)
         firstvar = varnames[1];          firstvar = varnames[1];
   
         if (default == "")          if (default == "")
                default = "0";                default = "kobj_error_method";
   
         # the method description           # the method description 
         printh("extern struct kobjop_desc " mname "_desc;");          printh("extern struct kobjop_desc " mname "_desc;");
Line 294  function handle_method (static) Line 294  function handle_method (static)
             line_width, length(prototype)));              line_width, length(prototype)));
   
         # Print out the method desc          # Print out the method desc
           printc("struct kobj_method " mname "_method_default = {");
           printc("\t&" mname "_desc, (kobjop_t) " default);
           printc("};\n");
   
         printc("struct kobjop_desc " mname "_desc = {");          printc("struct kobjop_desc " mname "_desc = {");
        printc("\t0, (kobjop_t) " default);        printc("\t0, &" mname "_method_default");
         printc("};\n");          printc("};\n");
   
         # Print out the method itself          # Print out the method itself

Removed from v.1.3  
changed lines
  Added in v.1.4