From: Michal Vaner Date: Sun, 14 Sep 2008 13:37:33 +0000 (+0200) Subject: Doc. system: use @function() for function links X-Git-Tag: holmes-import~292 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=f3735242f39f63c019d35091cd380147de658ad2;p=libucw.git Doc. system: use @function() for function links <> works too, this is just replacement of the old implicit function(), which caused problems (the system wanted to put the links everywhere). Removed some hacks around the old problems, which are no longer needed. --- diff --git a/build/asciidoc-xhtml.conf b/build/asciidoc-xhtml.conf index 8eba6d28..ce7352f3 100644 --- a/build/asciidoc-xhtml.conf +++ b/build/asciidoc-xhtml.conf @@ -1,17 +1,11 @@ [replacements] NULL=NULL -[macros] -(?su)[\\]?(?P\w+):!:(?P\([^();:]*\))=func_no_reuse - -[func_param-inlinemacro] -{name} - [func_ref-inlinemacro] -{caption={name}:!:{params}} +{caption={all}} [func_ref_file-inlinemacro] -{caption={name}:!:{params}} +{caption={all}} [xref_file-inlinemacro] {caption=[{target}]} @@ -19,11 +13,11 @@ NULL=NULL [xref_file_only-inlinemacro] {caption=[{filename}]} -[func_anchor-inlinemacro] -
{prefix}:!:{params}
- [func_auto_ref-inlinemacro] -{all} +{all} + +[func_param-inlinemacro] +{name} -[func_no_reuse-inlinemacro] -{name}{rest} +[func_format-inlinemacro] +{all} diff --git a/build/asciidoc.conf b/build/asciidoc.conf index 8e9af77d..18c92d44 100644 --- a/build/asciidoc.conf +++ b/build/asciidoc.conf @@ -1,13 +1,12 @@ [macros] -(?su)[\\]?<<(?P[^&;:()]+):(?P[^&;:()<> ]+)(?P\([^&:;]*\);?)(,(?P[^&]+))?>>=func_ref_file -(?su)[\\]?<<(?P[^&;:()<> ]+)(?P\([^&:;]*\);?)(,(?P[^&]+))?>>=func_ref +(?su)[\\]?<<(?P[^&;:()]+):(?P(?P[^&;:()<> ]+)(\([^&:;]*\);?))(,(?P[^&]+))?>>=func_ref_file +(?su)[\\]?<<(?P(?P[^&;:()<> ]+)(\([^&:;]*\);?))(,(?P[^&]+))?>>=func_ref (?su)[\\]?<<(?P[^&;:()]+):(,(?P[^&]+))?>>=xref_file_only (?su)[\\]?<<(?P[^&;:()]+):(?P[^,();&]+)(,(?P[^&]+))?>>=xref_file +(?su)[\\]?@(?P(?P\w+)\([^();:]*\))=func_ref +(?su)[\\]?(?P\w+\([^();:]*\))=func_format (?su)[\\]?@(?P\w+)@=no_func_param (?su)[\\]?@(?P\w+)=func_param -(?su)[\\]?!!f!(?P[^!]*?(?P\w+))(?P\([^&;:()]*\);?)[^!]*!!!=func_anchor -(?su)[\\]?(?P(?P\w+)\([^();:]*\))=func_auto_ref -(?su)[\\]?!!PARENT_OPEN!!=parent_open_hack (?su)[\\]?@!!KEEP!!(?P\w+)!!KEEP!!@=no_func_param_return [no_func_param-inlinemacro] @@ -15,6 +14,3 @@ [no_func_param_return-inlinemacro] @{word}@ - -[parent_open_hack-inlinemacro] -( diff --git a/build/doc-defs b/build/doc-defs index 1a5b3d13..b0c5a5e8 100755 --- a/build/doc-defs +++ b/build/doc-defs @@ -56,7 +56,6 @@ foreach( sort { ( $groups{$a->[2]} <=> $groups{$b->[2]} ) or ( $a->[3] cmp $b->[ $file = $dircp."/".$file; $file =~ s/^\///; $file =~ s/\.[^.]+$//; - $text =~ s/\(/!!PARENT_OPEN!!/g; $text =~ s/(\.\.\.)/\\$1/g; print OUT "<<$file:$anchor,`$name`>>:: `$text`\n"; }