projects
/
c-standard
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manual fix of section c99 6
[c-standard]
/
ann2html.sh
diff --git
a/ann2html.sh
b/ann2html.sh
index
ad4413d
..
ecb0411
100755
(executable)
--- a/
ann2html.sh
+++ b/
ann2html.sh
@@
-85,6
+85,10
@@
seencontents && !seenfore && /^[^@]/ {
next
}
next
}
+/^@sect 3\./ {
+ markdef = 1
+}
+
/^@sect/ {
sid++
slevel = split($2,a,/\./)+1
/^@sect/ {
sid++
slevel = split($2,a,/\./)+1
@@
-157,7
+161,7
@@
seencontents && !seenfore && /^[^@]/ {
next
}
next
}
-/^ *(Syntax|Semantics|Description|Constraints|Synopsis|Returns)$/ {
+/^ *(Syntax|Semantics|Description|Constraints|Synopsis|Returns
|Recommended practice|Implementation limits
)$/ {
ss[sid] = ss[sid] "<h6>" $0 "</h6>\n"
next
}
ss[sid] = ss[sid] "<h6>" $0 "</h6>\n"
next
}
@@
-218,6
+222,10
@@
seencontents && !seenfore && /^[^@]/ {
}
s = p s
sub(/^ *Forward references/, "<p><b>&</b>", s)
}
s = p s
sub(/^ *Forward references/, "<p><b>&</b>", s)
+ if (markdef) {
+ s = "<b>" s "</b><br>"
+ markdef = 0
+ }
if (pre)
pre = pre "\n" s
else if (nn)
if (pre)
pre = pre "\n" s
else if (nn)