From owner-svn-src-stable@FreeBSD.ORG Thu Apr 7 14:17:55 2011 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81687106564A; Thu, 7 Apr 2011 14:17:55 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 548F78FC08; Thu, 7 Apr 2011 14:17:55 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p37EHtit043027; Thu, 7 Apr 2011 14:17:55 GMT (envelope-from emaste@svn.freebsd.org) Received: (from emaste@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p37EHtD0043025; Thu, 7 Apr 2011 14:17:55 GMT (envelope-from emaste@svn.freebsd.org) Message-Id: <201104071417.p37EHtD0043025@svn.freebsd.org> From: Ed Maste Date: Thu, 7 Apr 2011 14:17:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r220425 - stable/8/sys/tools X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2011 14:17:55 -0000 Author: emaste Date: Thu Apr 7 14:17:55 2011 New Revision: 220425 URL: http://svn.freebsd.org/changeset/base/220425 Log: MFC r198374: Rename default to default_function, for compatibility with GNU awk. (For cross-compiling out-of-tree kernel modules, for example.) Modified: stable/8/sys/tools/makeobjops.awk Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/tools/makeobjops.awk ============================================================================== --- stable/8/sys/tools/makeobjops.awk Thu Apr 7 13:49:44 2011 (r220424) +++ stable/8/sys/tools/makeobjops.awk Thu Apr 7 14:17:55 2011 (r220425) @@ -240,7 +240,7 @@ function handle_method (static, doc) lineno++ } - default = ""; + default_function = ""; if (!match(line, /\};?/)) { warnsrc("Premature end of file"); error = 1; @@ -248,9 +248,9 @@ function handle_method (static, doc) } extra = substr(line, RSTART + RLENGTH); if (extra ~ /[ ]*DEFAULT[ ]*[a-zA-Z_][a-zA-Z_0-9]*[ ]*;/) { - default = extra; - sub(/.*DEFAULT[ ]*/, "", default); - sub(/[; ]+.*$/, "", default); + default_function = extra; + sub(/.*DEFAULT[ ]*/, "", default_function); + sub(/[; ]+.*$/, "", default_function); } else if (extra && opt_d) { # Warn about garbage at end of line. @@ -294,8 +294,8 @@ function handle_method (static, doc) firstvar = varnames[1]; - if (default == "") - default = "kobj_error_method"; + if (default_function == "") + default_function = "kobj_error_method"; # the method description printh("/** @brief Unique descriptor for the " umname "() method */"); @@ -308,7 +308,7 @@ function handle_method (static, doc) # Print out the method desc printc("struct kobj_method " mname "_method_default = {"); - printc("\t&" mname "_desc, (kobjop_t) " default); + printc("\t&" mname "_desc, (kobjop_t) " default_function); printc("};\n"); printc("struct kobjop_desc " mname "_desc = {");