From f0103842b011896bcd758f90028e30924fd0eff715c641917c44572910bc6243 Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Fri, 14 Oct 2011 12:27:59 +0000 Subject: [PATCH] - update to cflow-1.4 * Symbol aliases The `--symbol' option has been extended to allow for defining symbol aliases. Aliases are useful for declaring reserved words such as `__restrict' or `__inline'. For example, the option `--symbol __restrict:=restrict' instructs cflow to treat `__restrict' exactly as `restrict'. * New syntactic class: qualifiers Tokens in this class can legitimately appear in place of C qualifiers, such as `static' or `inline'. This class is useful for some compiler-depending keywords, such as `__extension__' in gcc. The usual declaration of this symbol is `--symbol __extension__:qualifier'. * Speed up recursive call detection. * Fix parsing of typedefs after `struct'. * Fix the output of branch marks in tree mode. * Fix processing of static inline functions (RH bug 650716). - drop cflow-fix-yyparse-return-type.patch (upstream) OBS-URL: https://build.opensuse.org/package/show/devel:tools/cflow?expand=0&rev=4 --- cflow-1.3.tar.bz2 | 3 --- cflow-1.4.tar.bz2 | 3 +++ cflow-fix-yyparse-return-type.patch | 33 ----------------------------- cflow.changes | 22 +++++++++++++++++++ cflow.spec | 9 ++++---- 5 files changed, 29 insertions(+), 41 deletions(-) delete mode 100644 cflow-1.3.tar.bz2 create mode 100644 cflow-1.4.tar.bz2 delete mode 100644 cflow-fix-yyparse-return-type.patch diff --git a/cflow-1.3.tar.bz2 b/cflow-1.3.tar.bz2 deleted file mode 100644 index b93702f..0000000 --- a/cflow-1.3.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d3da87a3d50071b4427017c2224ecd032b478eabc8a58fef2f3407af257b95da -size 601314 diff --git a/cflow-1.4.tar.bz2 b/cflow-1.4.tar.bz2 new file mode 100644 index 0000000..8bcdf28 --- /dev/null +++ b/cflow-1.4.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:037e39d6048ea91c68a5f3a561e10f22fd085d1f7641643e19c831a94ec26bca +size 634862 diff --git a/cflow-fix-yyparse-return-type.patch b/cflow-fix-yyparse-return-type.patch deleted file mode 100644 index b78bd13..0000000 --- a/cflow-fix-yyparse-return-type.patch +++ /dev/null @@ -1,33 +0,0 @@ -diff -up ./src/cflow.h.orig ./src/cflow.h ---- ./src/cflow.h.orig 2008-12-17 14:23:52.000000000 +0100 -+++ ./src/cflow.h 2008-12-17 14:24:47.000000000 +0100 -@@ -174,7 +174,7 @@ void set_preprocessor(const char *arg); - void pp_option(const char *arg); - - void init_parse(void); --int yyparse(void); -+void yyparse(void); - - void output(void); - void newline(void); -diff -up ./src/parser.c.orig ./src/parser.c ---- ./src/parser.c.orig 2008-12-17 14:24:03.000000000 +0100 -+++ ./src/parser.c 2008-12-17 14:25:07.000000000 +0100 -@@ -305,7 +305,7 @@ skip_to(int c) - } - } - --int -+void - yyparse() - { - Ident identifier; -@@ -317,7 +317,7 @@ yyparse() - identifier.storage = ExternStorage; - switch (tok.type) { - case 0: -- return 0; -+ return; - case TYPEDEF: - parse_typedef(); - break; diff --git a/cflow.changes b/cflow.changes index 7a8d61e..e932aaa 100644 --- a/cflow.changes +++ b/cflow.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Fri Oct 14 12:22:32 UTC 2011 - puzel@suse.com + +- update to cflow-1.4 + * Symbol aliases + The `--symbol' option has been extended to allow for defining + symbol aliases. Aliases are useful for declaring reserved + words such as `__restrict' or `__inline'. For example, + the option `--symbol __restrict:=restrict' instructs cflow + to treat `__restrict' exactly as `restrict'. + * New syntactic class: qualifiers + Tokens in this class can legitimately appear in place of C + qualifiers, such as `static' or `inline'. This class is useful + for some compiler-depending keywords, such as `__extension__' + in gcc. The usual declaration of this symbol is `--symbol + __extension__:qualifier'. + * Speed up recursive call detection. + * Fix parsing of typedefs after `struct'. + * Fix the output of branch marks in tree mode. + * Fix processing of static inline functions (RH bug 650716). +- drop cflow-fix-yyparse-return-type.patch (upstream) + ------------------------------------------------------------------- Mon Apr 11 11:22:43 UTC 2011 - puzel@novell.com diff --git a/cflow.spec b/cflow.spec index 27086bc..e0f8908 100644 --- a/cflow.spec +++ b/cflow.spec @@ -1,5 +1,5 @@ # -# spec file for package cflow (Version 1.3) +# spec file for package cflow # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -18,14 +18,13 @@ Name: cflow -Version: 1.3 +Version: 1.4 Release: 1 License: GLP v3 Summary: Tool to generate flowcharts for C sources Url: http://www.gnu.org/software/cflow Group: Development/Tools/Other Source: %{name}-%{version}.tar.bz2 -Patch1: cflow-fix-yyparse-return-type.patch PreReq: %install_info_prereq BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -38,10 +37,10 @@ files can optionally be preprocessed before analyzing. %prep %setup -q -%patch1 -p1 %build -%configure +%configure \ + --disable-silent-rules make %check