Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
dd6773cd
Commit
dd6773cd
authored
Jun 26, 2002
by
Zack Weinberg
Committed by
Zack Weinberg
Jun 26, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* texi2pod.pl: Correct handling of the internal R<> sequence.
From-SVN: r55012
parent
650e8d05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
contrib/ChangeLog
+4
-0
contrib/texi2pod.pl
+10
-6
No files found.
contrib/ChangeLog
View file @
dd6773cd
2002
-
06
-
26
Zack
Weinberg
<
zack
@codesourcery
.
com
>
*
texi2pod
.
pl
:
Correct
handling
of
the
internal
R
<>
sequence
.
2002
-
05
-
31
Florian
Weimer
<
fw
@deneb
.
enyo
.
de
>
*
gcc_update
(
files_and_dependencies
)
:
Add
generated
Texinfo
files
...
...
contrib/texi2pod.pl
View file @
dd6773cd
...
...
@@ -365,14 +365,18 @@ sub postprocess
s/\@uref\{([^\},]*),([^\},]*)\}/$2 (C<$1>)/g
;
s/\@uref\{([^\},]*),([^\},]*),([^\},]*)\}/$3/g
;
# Turn B<blah I<blah> blah> into B<blah> I<blah> B<blah> to
# match Texinfo semantics of @emph inside @samp. Also handle @r
# inside bold.
# Un-escape <> at this point.
s/</</g
;
s/>/>/g
;
1
while
s/B<((?:[^<>]|I<[^<>]*>)*)R<([^>]*)>/B<$1>${2}B</g
;
1
while
(
s/B<([^<>]*)I<([^>]+)>/B<$1>I<$2>B</g
);
1
while
(
s/I<([^<>]*)B<([^>]+)>/I<$1>B<$2>I</g
);
# Now un-nest all B<>, I<>, R<>. Theoretically we could have
# indefinitely deep nesting; in practice, one level suffices.
1
while
s/([BIR])<([^<>]*)([BIR])<([^<>]*)>/$1<$2>$3<$4>$1</g
;
# Replace R<...> with bare ...; eliminate empty markup, B<>;
# shift white space at the ends of [BI]<...> expressions outside
# the expression.
s/R<([^<>]*)>/$1/g
;
s/[BI]<>//g
;
s/([BI])<(\s+)([^>]+)>/$2$1<$3>/g
;
s/([BI])<([^>]+?)(\s+)>/$1<$2>$3/g
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment