From owner-svn-src-projects@FreeBSD.ORG Thu May 16 00:18:27 2013 Return-Path: Delivered-To: svn-src-projects@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 D9B20207; Thu, 16 May 2013 00:18:27 +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 CC0CC2E3; Thu, 16 May 2013 00:18:27 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4G0IQW8070854; Thu, 16 May 2013 00:18:26 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4G0IPZI070850; Thu, 16 May 2013 00:18:25 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201305160018.r4G0IPZI070850@svn.freebsd.org> From: Jung-uk Kim Date: Thu, 16 May 2013 00:18:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r250688 - in projects/flex-sf: contrib/flex usr.bin/lex X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 May 2013 00:18:27 -0000 Author: jkim Date: Thu May 16 00:18:25 2013 New Revision: 250688 URL: http://svnweb.freebsd.org/changeset/base/250688 Log: Always include stdint.h to work around broken flexint.h and regen. Modified: projects/flex-sf/contrib/flex/flex.skl projects/flex-sf/contrib/flex/flexint.h projects/flex-sf/usr.bin/lex/initscan.c projects/flex-sf/usr.bin/lex/initskel.c Modified: projects/flex-sf/contrib/flex/flex.skl ============================================================================== --- projects/flex-sf/contrib/flex/flex.skl Wed May 15 23:11:08 2013 (r250687) +++ projects/flex-sf/contrib/flex/flex.skl Thu May 16 00:18:25 2013 (r250688) @@ -200,15 +200,13 @@ m4_ifdef( [[M4_YY_TABLES_EXTERNAL]], #define __STDC_LIMIT_MACROS #endif #include +#include #else #define __dead2 #endif /* begin standard C headers. */ %if-c-only -#if defined(__FreeBSD__) -#include -#endif #include #include #include Modified: projects/flex-sf/contrib/flex/flexint.h ============================================================================== --- projects/flex-sf/contrib/flex/flexint.h Wed May 15 23:11:08 2013 (r250687) +++ projects/flex-sf/contrib/flex/flexint.h Thu May 16 00:18:25 2013 (r250688) @@ -5,7 +5,8 @@ /* C99 systems have . Non-C99 systems may or may not. */ -#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +#if defined(__FreeBSD__) || \ + (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, * if you want the limit (max/min) macros for int types. Modified: projects/flex-sf/usr.bin/lex/initscan.c ============================================================================== --- projects/flex-sf/usr.bin/lex/initscan.c Wed May 15 23:11:08 2013 (r250687) +++ projects/flex-sf/usr.bin/lex/initscan.c Thu May 16 00:18:25 2013 (r250688) @@ -21,14 +21,12 @@ #define __STDC_LIMIT_MACROS #endif #include +#include #else #define __dead2 #endif /* begin standard C headers. */ -#if defined(__FreeBSD__) -#include -#endif #include #include #include @@ -43,7 +41,8 @@ /* C99 systems have . Non-C99 systems may or may not. */ -#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +#if defined(__FreeBSD__) || \ + (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, * if you want the limit (max/min) macros for int types. @@ -1988,7 +1987,7 @@ extern const char *escaped_qstart, *esca -#line 1991 "" +#line 1990 "" #define INITIAL 0 #define SECT2 1 @@ -2217,7 +2216,7 @@ YY_DECL Char nmdef[MAXLINE]; -#line 2220 "" +#line 2219 "" if ( !(yy_init) ) { @@ -4125,7 +4124,7 @@ YY_RULE_SETUP #line 969 "scan.l" YY_FATAL_ERROR( "flex scanner jammed" ); YY_BREAK -#line 4128 "" +#line 4127 "" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(SECT2): case YY_STATE_EOF(CODEBLOCK): Modified: projects/flex-sf/usr.bin/lex/initskel.c ============================================================================== --- projects/flex-sf/usr.bin/lex/initskel.c Wed May 15 23:11:08 2013 (r250687) +++ projects/flex-sf/usr.bin/lex/initskel.c Thu May 16 00:18:25 2013 (r250688) @@ -205,15 +205,13 @@ const char *skel[] = { "#define __STDC_LIMIT_MACROS", "#endif", "#include ", + "#include ", "#else", "#define __dead2", "#endif", "", "/* begin standard C headers. */", "%if-c-only", - "#if defined(__FreeBSD__)", - "#include ", - "#endif", "#include ", "#include ", "#include ", @@ -234,7 +232,8 @@ const char *skel[] = { "", "/* C99 systems have . Non-C99 systems may or may not. */", "", - "#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L", + "#if defined(__FreeBSD__) || \\", + " (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)", "", "/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,", " * if you want the limit (max/min) macros for int types. ",