Compare commits
No commits in common. "4a54ea40b4fa7854dff1c2e309ecc2312c83e28d" and "ee13948a93aa4f0c90ed3ec93e3005dc45c101aa" have entirely different histories.
4a54ea40b4
...
ee13948a93
@ -1,52 +0,0 @@
|
|||||||
Description: Fix for a bug reported to sourceforge.net #13
|
|
||||||
by fixing error messages.
|
|
||||||
Also, fix erroneous messages.
|
|
||||||
Author: NIIBE Yutaka
|
|
||||||
|
|
||||||
Index: mcpp/src/support.c
|
|
||||||
===================================================================
|
|
||||||
--- mcpp.orig/src/support.c
|
|
||||||
+++ mcpp/src/support.c
|
|
||||||
@@ -822,7 +822,7 @@ escape:
|
|
||||||
if (diag && iscntrl( c) && ((char_type[ c] & SPA) == 0)
|
|
||||||
&& (warn_level & 1))
|
|
||||||
cwarn(
|
|
||||||
- "Illegal control character %.0s0lx%02x in quotation" /* _W1_ */
|
|
||||||
+ "Illegal control character %.0s0x%02x in quotation" /* _W1_ */
|
|
||||||
, NULL, (long) c, NULL);
|
|
||||||
*out_p++ = c;
|
|
||||||
chk_limit:
|
|
||||||
@@ -861,10 +861,10 @@ chk_limit:
|
|
||||||
if (mcpp_mode != POST_STD && option_flags.lang_asm) {
|
|
||||||
/* STD, KR */
|
|
||||||
if (warn_level & 1)
|
|
||||||
- cwarn( unterm_char, out, 0L, NULL); /* _W1_ */
|
|
||||||
+ cwarn( unterm_char, NULL, (long)delim, NULL); /* _W1_ */
|
|
||||||
goto done;
|
|
||||||
} else {
|
|
||||||
- cerror( unterm_char, out, 0L, skip); /* _E_ */
|
|
||||||
+ cerror( unterm_char, NULL, (long)delim, skip); /* _E_ */
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
cerror( "Unterminated header name %s%.0ld%s" /* _E_ */
|
|
||||||
@@ -875,9 +875,9 @@ chk_limit:
|
|
||||||
if (mcpp_mode != POST_STD && option_flags.lang_asm) {
|
|
||||||
/* STD, KR */
|
|
||||||
if (warn_level & 1)
|
|
||||||
- cwarn( empty_const, out, 0L, skip); /* _W1_ */
|
|
||||||
+ cwarn( empty_const, NULL, (long)delim, skip); /* _W1_ */
|
|
||||||
} else {
|
|
||||||
- cerror( empty_const, out, 0L, skip); /* _E_ */
|
|
||||||
+ cerror( empty_const, NULL, (long)delim, skip); /* _E_ */
|
|
||||||
out_p = NULL;
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
@@ -1774,7 +1774,7 @@ not_comment:
|
|
||||||
default:
|
|
||||||
if (iscntrl( c)) {
|
|
||||||
cerror( /* Skip the control character */
|
|
||||||
- "Illegal control character %.0s0x%lx, skipped the character" /* _E_ */
|
|
||||||
+ "Illegal control character %.0s0x%02x, skipped the character" /* _E_ */
|
|
||||||
, NULL, (long) c, NULL);
|
|
||||||
} else { /* Any valid character */
|
|
||||||
*tp++ = c;
|
|
||||||
28
mcpp.spec
28
mcpp.spec
@ -1,14 +1,13 @@
|
|||||||
Name: mcpp
|
Name: mcpp
|
||||||
Version: 2.7.2
|
Version: 2.7.2
|
||||||
Release: 29
|
Release: 25
|
||||||
Summary: A portable C preprocessor
|
Summary: A portable C preprocessor
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://mcpp.sourceforge.net/
|
URL: http://mcpp.sourceforge.net/
|
||||||
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
Patch0: backport-mcpp.2.7.2.patch
|
Patch0: patch.mcpp.2.7.2
|
||||||
Patch1: backport-CVE-2019-14274-05-gniibe-fix-13.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc gdb
|
||||||
|
|
||||||
Provides: libmcpp
|
Provides: libmcpp
|
||||||
Obsoletes: libmcpp
|
Obsoletes: libmcpp
|
||||||
@ -77,27 +76,6 @@ make check
|
|||||||
%{_mandir}/man1/%{name}.1.gz
|
%{_mandir}/man1/%{name}.1.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Oct 25 2022 yanglongkang<yanglongkang@h-partners.com> - 2.7.2-29
|
|
||||||
- Type: bugfix
|
|
||||||
- ID: NA
|
|
||||||
- SUG: NA
|
|
||||||
- DESC: rebuild for next release
|
|
||||||
|
|
||||||
* Thu Jul 28 2022 fuanan <fuanan3@h-partners.com> - 2.7.2-28
|
|
||||||
- Type:requirements
|
|
||||||
- ID:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:Bump release
|
|
||||||
|
|
||||||
* Tue Jul 20 2021 fuanan <fuanan3@huawei.com> - 2.7.2-27
|
|
||||||
- Remove redundant gdb from BuildRequires
|
|
||||||
|
|
||||||
* Tue Jan 5 2021 zoulin<zoulin13@huawei.com> - 2.7.2-26
|
|
||||||
- Type:CVE
|
|
||||||
- ID:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:fix CVE-2019-14274
|
|
||||||
|
|
||||||
* Wed Mar 18 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.7.2-25
|
* Wed Mar 18 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.7.2-25
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
version_control: svn
|
|
||||||
src_repo: https://svn.code.sf.net/p/mcpp/code/trunk/src
|
|
||||||
tag_prefix: ^V
|
|
||||||
seperator: .
|
|
||||||
Loading…
x
Reference in New Issue
Block a user