Commit 3857508f authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

doc: manual compiles

parent 7251832d
......@@ -109,6 +109,8 @@ sub loadLabels
my $additional = "";
my $buffer = "";
my $nlines = scalar(@$lines);
my $inCodeBlock = 0;
my $codeBuffer = "";
for (my $i = 0; $i < $nlines; ++$i) {
$_ = $lines->[$i];
......@@ -124,6 +126,37 @@ sub loadLabels
next;
}
if (/\/\* PSIDOC_CODE_START +(.+$)/) {
my $rest = $1;
chomp($rest);
$rest =~ s/\*\/ *$//;
if ($inCodeBlock) {
die "$0: Nested code blocks not allowed\n";
}
($label, $additional) = procPsidocName($rest);
$label =~ s/ //g;
print STDERR "ADDING *$label* \n";
my $txt = $labels{"$label"};
if (defined($txt)) {
die "$0: ERROR: Label $label is duplicate\n";
}
$inCodeBlock = 1;
next;
}
if (/\/\* PSIDOC_CODE_END \*\//) {
if (!$inCodeBlock) {
die "$0: Closing code block while none is open\n";
}
$labels{"$label"} = $codeBuffer;
$codeBuffer = "";
$inCodeBlock = 0;
next;
}
if (/\*\//) {
if ($label ne "!DISABLED") {
my $inlabel = $label."::";
......@@ -152,6 +185,9 @@ sub loadLabels
$buffer = "";
$label = "!DISABLED";
$additional = "";
} elsif ($inCodeBlock) {
$codeBuffer .= $_."\n";
next;
}
if ($label ne "!DISABLED") {
......
......@@ -103,7 +103,7 @@ For example, all native types are written by \code{IoNg} directly into a single
\code{std::complex<T>} where \code{T}
is a native type is written directly by doubling the size of the array into a single dataset.
*/
// PSIDOC_CODE_START IsRootUnDelegatedCode
/* PSIDOC_CODE_START IsRootUnDelegatedCode */
template<typename T>
struct IsRootUnDelegated {
enum {True = Loki::TypeTraits<T>::isArith ||
......@@ -114,7 +114,7 @@ struct IsRootUnDelegated {
IsEnumClass<T>::value ||
IsStringLike<T>::True};
};
// PSIDOC_CODE_END
/* PSIDOC_CODE_END */
class IoNg {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment