!9 update to 4.99.44

From: @lyn1001 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-04-19 03:18:09 +00:00 committed by Gitee
commit 51ae9e92d8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 10 additions and 69 deletions

View File

@ -1,33 +1,7 @@
diff -Naurp robodoc-4.99.43.orig/Source/analyser.c robodoc-4.99.43.new/Source/analyser.c
--- robodoc-4.99.43.orig/Source/analyser.c 2015-04-11 19:28:57.000000000 +0200
+++ robodoc-4.99.43.new/Source/analyser.c 2018-03-07 15:08:37.115748466 +0100
@@ -621,8 +621,6 @@ static void Preformat_All(
*/
{
int i;
- int preformatted = FALSE;
- char *line = NULL;
if ( arg_item->no_lines > 0 )
{
@@ -635,13 +633,11 @@ static void Preformat_All(
/* Empty */
}
- line = arg_item->lines[i]->line;
if ( ( arg_item->lines[i]->kind == ITEM_LINE_RAW ) ||
( arg_item->lines[i]->kind == ITEM_LINE_PLAIN ) )
{
arg_item->lines[i]->format |=
RBILA_BEGIN_PRE | ( source ? RBILA_BEGIN_SOURCE : 0 );
- preformatted = TRUE;
for ( ++i; i < arg_item->no_lines; i++ )
{
diff -Naurp robodoc-4.99.43.orig/Source/generator.c robodoc-4.99.43.new/Source/generator.c
--- robodoc-4.99.43.orig/Source/generator.c 2015-04-11 19:28:57.000000000 +0200
+++ robodoc-4.99.43.new/Source/generator.c 2018-03-07 15:20:58.374982012 +0100
@@ -2045,7 +2045,7 @@ static void Generate_Item(
@@ -2048,7 +2048,7 @@ static void Generate_Item(
RB_Change_To_Docdir( docname );
/* Execute line */
@ -36,45 +10,10 @@ diff -Naurp robodoc-4.99.43.orig/Source/generator.c robodoc-4.99.43.new/Source/g
/* Get back to working dir */
RB_Change_Back_To_CWD( );
@@ -2056,7 +2056,7 @@ static void Generate_Item(
{
Format_Line( f, item_line->format );
- FILE *in = NULL, *dot_pipe = NULL;
+ FILE *in = NULL;
char str[TEMP_BUF_SIZE];
/* Change to docdir */
diff -Naurp robodoc-4.99.43.orig/Source/robodoc.c robodoc-4.99.43.new/Source/robodoc.c
--- robodoc-4.99.43.orig/Source/robodoc.c 2015-04-11 19:28:57.000000000 +0200
+++ robodoc-4.99.43.new/Source/robodoc.c 2018-03-07 15:08:37.116748476 +0100
@@ -387,7 +387,9 @@ int main(
struct RB_Directory *srctree = NULL;
char *optstr = NULL;
char *used_rc_file = NULL;
+#ifdef __APPLE__
long debug = 0;
+#endif
/*
TODO, make setlocale work.
@@ -462,7 +464,10 @@ int main(
document = RB_Get_RB_Document( );
document->doctype = output_mode;
document->actions = Find_Actions( );
- debug = document->debugmode = Find_DebugMode( );
+#ifdef __APPLE__
+ debug =
+#endif
+ document->debugmode = Find_DebugMode( );
document->charset = Find_Parameterized_Option( "--charset" );
document->extension = Find_Parameterized_Option( "--ext" );
document->css = Find_Parameterized_Option( "--css" );
diff -Naurp robodoc-4.99.43.orig/Source/robodoc.h robodoc-4.99.43.new/Source/robodoc.h
--- robodoc-4.99.43.orig/Source/robodoc.h 2015-04-11 23:09:23.000000000 +0200
+++ robodoc-4.99.43.new/Source/robodoc.h 2018-03-07 15:08:37.117748486 +0100
@@ -31,6 +31,9 @@ along with this program. If not, see <h
#define VERSION "4.99.43"
@@ -33,4 +33,7 @@ along with this program. If not, see <h
#endif
+/* Macro to silent unused-result warnings. */
@ -82,7 +21,6 @@ diff -Naurp robodoc-4.99.43.orig/Source/robodoc.h robodoc-4.99.43.new/Source/rob
+
#define COMMENT_ROBODOC \
"Generated with ROBODoc Version " VERSION " (" __DATE__ ")\n"
#define COMMENT_COPYRIGHT\
diff -Naurp robodoc-4.99.43.orig/Source/robohdrs.c robodoc-4.99.43.new/Source/robohdrs.c
--- robodoc-4.99.43.orig/Source/robohdrs.c 2015-04-11 19:28:57.000000000 +0200
+++ robodoc-4.99.43.new/Source/robohdrs.c 2018-03-07 15:22:53.591106966 +0100
@ -156,7 +94,7 @@ diff -Naurp robodoc-4.99.43.orig/Source/troff_generator.c robodoc-4.99.43.new/So
diff -Naurp robodoc-4.99.43.orig/Source/util.c robodoc-4.99.43.new/Source/util.c
--- robodoc-4.99.43.orig/Source/util.c 2015-04-11 19:28:57.000000000 +0200
+++ robodoc-4.99.43.new/Source/util.c 2018-03-07 15:08:37.118748496 +0100
@@ -1033,7 +1033,7 @@ char *RB_ReadWholeLine(
@@ -1034,7 +1034,7 @@ char *RB_ReadWholeLine(
{
*buf = '\0';
/* read next chunk */
@ -165,7 +103,7 @@ diff -Naurp robodoc-4.99.43.orig/Source/util.c robodoc-4.99.43.new/Source/util.c
if ( ferror( file ) )
{
/* an error occurred */
@@ -1195,7 +1195,7 @@ void RB_Change_Back_To_CWD(
@@ -1196,7 +1196,7 @@ void RB_Change_Back_To_CWD(
{
if ( cwd != NULL )
{
@ -174,7 +112,7 @@ diff -Naurp robodoc-4.99.43.orig/Source/util.c robodoc-4.99.43.new/Source/util.c
free( cwd );
cwd = NULL;
}
@@ -1223,14 +1223,14 @@ void RB_Change_To_Docdir(
@@ -1224,14 +1224,14 @@ void RB_Change_To_Docdir(
RB_Change_Back_To_CWD( );
/* Save CWD */

Binary file not shown.

BIN
robodoc-4.99.44.tar.gz Normal file

Binary file not shown.

View File

@ -1,8 +1,8 @@
%global __perl_provides %{nil}
%global __perl_requires %{nil}
Name: robodoc
Version: 4.99.43
Release: 2
Version: 4.99.44
Release: 1
Summary: Extract documentation from source code
License: GPLv3+
Source0: http://rfsber.home.xs4all.nl/Robo/archives/%{name}-%{version}.tar.gz
@ -37,6 +37,9 @@ rm -rf "${RPM_BUILD_ROOT}%{_docdir}/robodoc"
%{_mandir}/man1/*
%changelog
* Tue Apr 18 2023 liyanan <thistleslyn@163.com> - 4.99.44-1
- Update to 4.99.44
* Thu Sep 30 2021 zhengyaohui <zhengyaohui1@huawei.com> - 4.99.43-2
- add Patch "helperror" to repair "robohdrs -h" show error