Hello community, here is the log from the commit of package re2c for openSUSE:Factory checked in at 2017-11-14 14:16:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/re2c (Old) and /work/SRC/openSUSE:Factory/.re2c.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "re2c" Tue Nov 14 14:16:06 2017 rev:33 rq:540250 version:1.0.3 Changes: -------- --- /work/SRC/openSUSE:Factory/re2c/re2c.changes 2017-09-07 22:11:19.186994810 +0200 +++ /work/SRC/openSUSE:Factory/.re2c.new/re2c.changes 2017-11-14 14:16:07.850007832 +0100 @@ -1,0 +2,8 @@ +Thu Nov 9 15:02:34 UTC 2017 - [email protected] + +- Update to version 1.0.3: + * Fixes build failure on Mac OS X 10.5.8 with gcc 4.2.1 + * Documentation fix + * 2 examples removed + +------------------------------------------------------------------- Old: ---- re2c-1.0.2.tar.gz New: ---- re2c-1.0.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ re2c.spec ++++++ --- /var/tmp/diff_new_pack.gbSaXI/_old 2017-11-14 14:16:08.885970044 +0100 +++ /var/tmp/diff_new_pack.gbSaXI/_new 2017-11-14 14:16:08.885970044 +0100 @@ -17,7 +17,7 @@ Name: re2c -Version: 1.0.2 +Version: 1.0.3 Release: 0 Summary: Tool for generating C-based recognizers from regular expressions License: SUSE-Public-Domain ++++++ re2c-1.0.2.tar.gz -> re2c-1.0.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2c-1.0.2/bootstrap/doc/re2c.1 new/re2c-1.0.3/bootstrap/doc/re2c.1 --- old/re2c-1.0.2/bootstrap/doc/re2c.1 2017-08-26 22:05:48.000000000 +0200 +++ new/re2c-1.0.3/bootstrap/doc/re2c.1 2017-11-08 21:39:37.000000000 +0100 @@ -758,7 +758,7 @@ .IP \(bu 2 \fBR*\fP zero or more occurrences of \fBR\fP .IP \(bu 2 -\fBR+\fP zero or more occurrences of \fBR\fP +\fBR+\fP one or more occurrences of \fBR\fP .IP \(bu 2 \fBR?\fP optional \fBR\fP .IP \(bu 2 @@ -1146,6 +1146,6 @@ Ulya Trofimovich .SH VERSION INFORMATION .sp -This manpage describes \fBre2c\fP version 1.0.2, package date 26 Aug 2017. +This manpage describes \fBre2c\fP version 1.0.3, package date 08 Nov 2017. .\" Generated by docutils manpage writer. . diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2c-1.0.2/bootstrap/src/ast/lex.cc new/re2c-1.0.3/bootstrap/src/ast/lex.cc --- old/re2c-1.0.2/bootstrap/src/ast/lex.cc 2017-08-26 22:05:51.000000000 +0200 +++ new/re2c-1.0.3/bootstrap/src/ast/lex.cc 2017-11-08 21:39:40.000000000 +0100 @@ -1,4 +1,4 @@ -/* Generated by re2c 1.0.2 on Sat Aug 26 21:05:51 2017 */ +/* Generated by re2c 1.0.3 on Wed Nov 8 20:39:40 2017 */ #line 1 "../src/ast/lex.re" #include "src/util/c99_stdint.h" #include <stddef.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2c-1.0.2/bootstrap/src/ast/lex_conf.cc new/re2c-1.0.3/bootstrap/src/ast/lex_conf.cc --- old/re2c-1.0.2/bootstrap/src/ast/lex_conf.cc 2017-08-26 22:05:51.000000000 +0200 +++ new/re2c-1.0.3/bootstrap/src/ast/lex_conf.cc 2017-11-08 21:39:40.000000000 +0100 @@ -1,4 +1,4 @@ -/* Generated by re2c 1.0.2 on Sat Aug 26 21:05:51 2017 */ +/* Generated by re2c 1.0.3 on Wed Nov 8 20:39:40 2017 */ #line 1 "../src/ast/lex_conf.re" #include "src/util/c99_stdint.h" #include <string> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2c-1.0.2/bootstrap/src/conf/parse_opts.cc new/re2c-1.0.3/bootstrap/src/conf/parse_opts.cc --- old/re2c-1.0.2/bootstrap/src/conf/parse_opts.cc 2017-08-26 22:05:51.000000000 +0200 +++ new/re2c-1.0.3/bootstrap/src/conf/parse_opts.cc 2017-11-08 21:39:40.000000000 +0100 @@ -1,4 +1,4 @@ -/* Generated by re2c 1.0.2 on Sat Aug 26 21:05:51 2017 */ +/* Generated by re2c 1.0.3 on Wed Nov 8 20:39:40 2017 */ #line 1 "../src/conf/parse_opts.re" #include "src/code/input_api.h" #include "src/conf/msg.h" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2c-1.0.2/configure new/re2c-1.0.3/configure --- old/re2c-1.0.2/configure 2017-08-26 22:03:00.000000000 +0200 +++ new/re2c-1.0.3/configure 2017-11-08 21:37:06.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for re2c 1.0.2. +# Generated by GNU Autoconf 2.69 for re2c 1.0.3. # # Report bugs to <[email protected]>. # @@ -580,8 +580,8 @@ # Identity of this package. PACKAGE_NAME='re2c' PACKAGE_TARNAME='re2c' -PACKAGE_VERSION='1.0.2' -PACKAGE_STRING='re2c 1.0.2' +PACKAGE_VERSION='1.0.3' +PACKAGE_STRING='re2c 1.0.3' PACKAGE_BUGREPORT='[email protected]' PACKAGE_URL='' @@ -1243,7 +1243,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures re2c 1.0.2 to adapt to many kinds of systems. +\`configure' configures re2c 1.0.3 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1309,7 +1309,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of re2c 1.0.2:";; + short | recursive ) echo "Configuration of re2c 1.0.3:";; esac cat <<\_ACEOF @@ -1402,7 +1402,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -re2c configure 1.0.2 +re2c configure 1.0.3 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1751,7 +1751,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by re2c $as_me 1.0.2, which was +It was created by re2c $as_me 1.0.3, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2614,7 +2614,7 @@ # Define the identity of the package. PACKAGE='re2c' - VERSION='1.0.2' + VERSION='1.0.3' cat >>confdefs.h <<_ACEOF @@ -5760,7 +5760,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by re2c $as_me 1.0.2, which was +This file was extended by re2c $as_me 1.0.3, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -5826,7 +5826,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -re2c config.status 1.0.2 +re2c config.status 1.0.3 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2c-1.0.2/configure.ac new/re2c-1.0.3/configure.ac --- old/re2c-1.0.2/configure.ac 2017-08-26 22:02:49.000000000 +0200 +++ new/re2c-1.0.3/configure.ac 2017-11-08 21:36:57.000000000 +0100 @@ -1,4 +1,4 @@ -AC_INIT([re2c],[1.0.2],[[email protected]]) +AC_INIT([re2c],[1.0.3],[[email protected]]) AM_INIT_AUTOMAKE([foreign subdir-objects]) AM_SILENT_RULES([yes]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2c-1.0.2/doc/manual/syntax/regular_expressions.rst_ new/re2c-1.0.3/doc/manual/syntax/regular_expressions.rst_ --- old/re2c-1.0.2/doc/manual/syntax/regular_expressions.rst_ 2017-08-26 18:07:13.000000000 +0200 +++ new/re2c-1.0.3/doc/manual/syntax/regular_expressions.rst_ 2017-11-07 22:46:01.000000000 +0100 @@ -13,7 +13,7 @@ * ``R*`` zero or more occurrences of ``R`` -* ``R+`` zero or more occurrences of ``R`` +* ``R+`` one or more occurrences of ``R`` * ``R?`` optional ``R`` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2c-1.0.2/examples/12_float.i--tags.c new/re2c-1.0.3/examples/12_float.i--tags.c --- old/re2c-1.0.2/examples/12_float.i--tags.c 2017-08-18 17:03:33.000000000 +0200 +++ new/re2c-1.0.3/examples/12_float.i--tags.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,356 +0,0 @@ -/* Generated by re2c */ -#include <math.h> -#include <stdio.h> - -static double lex(const char *YYCURSOR) -{ - const char *YYMARKER, *h1, *h2, *l1, *l2, *e1, *e2, *n; - long e = 0; - double d = 0; - const char *yyt1;const char *yyt2;const char *yyt3;const char *yyt4;const char *yyt5;const char *yyt6;const char *yyt7; - -{ - char yych; - yych = *YYCURSOR; - switch (yych) { - case 0x00: - yyt2 = yyt4 = yyt5 = yyt6 = yyt7 = NULL; - yyt1 = yyt3 = YYCURSOR; - goto yy2; - case '.': - yyt1 = yyt3 = YYCURSOR; - goto yy6; - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - yyt1 = YYCURSOR; - goto yy7; - case 'E': - case 'e': goto yy8; - default: goto yy4; - } -yy2: - ++YYCURSOR; - h1 = yyt1; - h2 = yyt3; - l1 = yyt4; - l2 = yyt5; - n = yyt7; - e1 = yyt6; - e2 = yyt2; - { - for (; e1 < e2; ++e1) e = e * 10 + *e1 - '0'; - e = (n ? -e : e) - (l2 - l1); - for (; h1 < h2; ++h1) d = d * 10 + *h1 - '0'; - for (; l1 < l2; ++l1) d = d * 10 + *l1 - '0'; - for (; e < 0; ++e) d /= 10; - for (; e > 0; --e) d *= 10; - return d; - } -yy4: - ++YYCURSOR; -yy5: - { return NAN; } -yy6: - yych = *(YYMARKER = ++YYCURSOR); - switch (yych) { - case 0x00: - yyt1 = yyt2 = yyt3 = NULL; - goto yy9; - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - yyt4 = YYCURSOR; - goto yy11; - case 'E': - case 'e': - yyt4 = yyt5 = YYCURSOR; - goto yy14; - default: goto yy5; - } -yy7: - yych = *(YYMARKER = ++YYCURSOR); - switch (yych) { - case 0x00: - yyt2 = yyt4 = yyt5 = yyt6 = yyt7 = NULL; - yyt3 = YYCURSOR; - goto yy2; - case '.': - yyt3 = YYCURSOR; - goto yy15; - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': goto yy16; - case 'E': - case 'e': - yyt4 = yyt5 = NULL; - yyt3 = YYCURSOR; - goto yy14; - default: goto yy5; - } -yy8: - yych = *(YYMARKER = ++YYCURSOR); - switch (yych) { - case '+': goto yy18; - case '-': - yyt3 = YYCURSOR; - goto yy19; - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - yyt3 = NULL; - yyt2 = YYCURSOR; - goto yy20; - default: goto yy5; - } -yy9: - ++YYCURSOR; - n = yyt3; - e1 = yyt2; - e2 = yyt1; - { return NAN; } -yy11: - yych = *++YYCURSOR; - switch (yych) { - case 0x00: - yyt2 = yyt6 = yyt7 = NULL; - yyt5 = YYCURSOR; - goto yy2; - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': goto yy11; - case 'E': - case 'e': - yyt5 = YYCURSOR; - goto yy14; - default: goto yy13; - } -yy13: - YYCURSOR = YYMARKER; - goto yy5; -yy14: - yych = *++YYCURSOR; - switch (yych) { - case '+': goto yy22; - case '-': - yyt7 = YYCURSOR; - goto yy23; - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - yyt7 = NULL; - yyt6 = YYCURSOR; - goto yy24; - default: goto yy13; - } -yy15: - yych = *++YYCURSOR; - switch (yych) { - case 0x00: - yyt2 = yyt6 = yyt7 = NULL; - yyt4 = yyt5 = YYCURSOR; - goto yy2; - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - yyt4 = YYCURSOR; - goto yy11; - case 'E': - case 'e': - yyt4 = yyt5 = YYCURSOR; - goto yy14; - default: goto yy13; - } -yy16: - yych = *++YYCURSOR; - switch (yych) { - case 0x00: - yyt2 = yyt4 = yyt5 = yyt6 = yyt7 = NULL; - yyt3 = YYCURSOR; - goto yy2; - case '.': - yyt3 = YYCURSOR; - goto yy15; - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': goto yy16; - case 'E': - case 'e': - yyt4 = yyt5 = NULL; - yyt3 = YYCURSOR; - goto yy14; - default: goto yy13; - } -yy18: - yych = *++YYCURSOR; - switch (yych) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - yyt3 = NULL; - yyt2 = YYCURSOR; - goto yy20; - default: goto yy13; - } -yy19: - yych = *++YYCURSOR; - switch (yych) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - yyt2 = YYCURSOR; - goto yy20; - default: goto yy13; - } -yy20: - yych = *++YYCURSOR; - switch (yych) { - case 0x00: - yyt1 = YYCURSOR; - goto yy9; - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': goto yy20; - default: goto yy13; - } -yy22: - yych = *++YYCURSOR; - switch (yych) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - yyt7 = NULL; - yyt6 = YYCURSOR; - goto yy24; - default: goto yy13; - } -yy23: - yych = *++YYCURSOR; - switch (yych) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - yyt6 = YYCURSOR; - goto yy24; - default: goto yy13; - } -yy24: - yych = *++YYCURSOR; - switch (yych) { - case 0x00: - yyt2 = YYCURSOR; - goto yy2; - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': goto yy24; - default: goto yy13; - } -} - -} - -int main(int argc, char **argv) -{ - for (int i = 1; i < argc; ++i) { - printf("%g\n", lex(argv[i])); - } - return 0; -} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2c-1.0.2/examples/12_float.i--tags.re new/re2c-1.0.3/examples/12_float.i--tags.re --- old/re2c-1.0.2/examples/12_float.i--tags.re 2017-08-18 17:03:16.000000000 +0200 +++ new/re2c-1.0.3/examples/12_float.i--tags.re 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#include <math.h> -#include <stdio.h> - -static double lex(const char *YYCURSOR) -{ - const char *YYMARKER, *h1, *h2, *l1, *l2, *e1, *e2, *n; - long e = 0; - double d = 0; - /*!stags:re2c format = 'const char *@@;'; */ - /*!re2c - re2c:define:YYCTYPE = char; - re2c:yyfill:enable = 0; - - end = [\x00]; - dot = "."; - high = @h1 [0-9]* @h2; - low = @l1 [0-9]* @l2; - exp = 'e' ([+]? | @n [-]) @e1 [0-9]+ @e2; - - * { return NAN; } - (exp | dot) end { return NAN; } - - high (dot low)? exp? end { - for (; e1 < e2; ++e1) e = e * 10 + *e1 - '0'; - e = (n ? -e : e) - (l2 - l1); - for (; h1 < h2; ++h1) d = d * 10 + *h1 - '0'; - for (; l1 < l2; ++l1) d = d * 10 + *l1 - '0'; - for (; e < 0; ++e) d /= 10; - for (; e > 0; --e) d *= 10; - return d; - } - */ -} - -int main(int argc, char **argv) -{ - for (int i = 1; i < argc; ++i) { - printf("%g\n", lex(argv[i])); - } - return 0; -} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2c-1.0.2/src/code/bitmap.cc new/re2c-1.0.3/src/code/bitmap.cc --- old/re2c-1.0.2/src/code/bitmap.cc 2017-08-09 17:20:24.000000000 +0200 +++ new/re2c-1.0.3/src/code/bitmap.cc 2017-11-08 21:22:55.000000000 +0100 @@ -27,7 +27,8 @@ void bitmaps_t::insert(const Go *go, const State *s) { - for (rciter_t i = maps.rbegin(); i != maps.rend(); ++i) { + rciter_t i = maps.rbegin(), e = maps.rend(); + for (; i != e; ++i) { if (matches(i->go, i->on, go, s)) return; } @@ -37,7 +38,8 @@ const bitmap_t *bitmaps_t::find(const Go *go, const State *s) const { - for (rciter_t i = maps.rbegin(); i != maps.rend(); ++i) { + rciter_t i = maps.rbegin(), e = maps.rend(); + for (; i != e; ++i) { if (i->on == s && matches(i->go, i->on, go, s)) return &(*i); } return NULL;
