From owner-svn-src-head@FreeBSD.ORG Tue May 21 19:22:43 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7C72A581; Tue, 21 May 2013 19:22:43 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 6ED3D853; Tue, 21 May 2013 19:22:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4LJMhuP023172; Tue, 21 May 2013 19:22:43 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4LJMhYc023171; Tue, 21 May 2013 19:22:43 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201305211922.r4LJMhYc023171@svn.freebsd.org> From: Jung-uk Kim Date: Tue, 21 May 2013 19:22:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250878 - head/contrib/flex X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 May 2013 19:22:43 -0000 Author: jkim Date: Tue May 21 19:22:42 2013 New Revision: 250878 URL: http://svnweb.freebsd.org/changeset/base/250878 Log: Allow YY_NO_UNPUT to disable unput() for backward compatibility. Modified: head/contrib/flex/flex.skl Modified: head/contrib/flex/flex.skl ============================================================================== --- head/contrib/flex/flex.skl Tue May 21 19:21:26 2013 (r250877) +++ head/contrib/flex/flex.skl Tue May 21 19:22:42 2013 (r250878) @@ -1032,7 +1032,9 @@ extern int yywrap M4_YY_PARAMS( M4_YY_PR %not-for-header m4_ifdef( [[M4_YY_NO_UNPUT]],, [[ +#ifndef YY_NO_UNPUT static void yyunput M4_YY_PARAMS( int c, char *buf_ptr M4_YY_PROTO_LAST_ARG); +#endif ]]) %ok-for-header %endif @@ -1808,9 +1810,11 @@ m4_ifdef( [[M4_YY_USES_REJECT]], %if-c-only m4_ifdef( [[M4_YY_NO_UNPUT]],, [[ +#ifndef YY_NO_UNPUT static void yyunput YYFARGS2( int,c, char *,yy_bp) %endif %if-c++-only +#ifndef YY_NO_UNPUT void yyFlexLexer::yyunput( int c, char* yy_bp) %endif { @@ -1857,6 +1861,7 @@ m4_ifdef( [[M4_YY_USE_LINENO]], YY_G(yy_hold_char) = *yy_cp; YY_G(yy_c_buf_p) = yy_cp; } +#endif /* ifndef YY_NO_UNPUT */ %if-c-only ]]) %endif