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

version 1.2, 2003/11/22 19:58:48 version 1.3, 2004/03/07 12:48:34
Line 284  function handle_method (static) Line 284  function handle_method (static)
         firstvar = varnames[1];          firstvar = varnames[1];
   
         if (default == "")          if (default == "")
                default = "kobj_error_method";                default = "0";
   
         # 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, &" mname "_method_default");        printc("\t0, (kobjop_t) " default);
         printc("};\n");          printc("};\n");
   
         # Print out the method itself          # Print out the method itself

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