Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alvarez, Gonzalo
PsimagLite
Commits
3857508f
Commit
3857508f
authored
Sep 28, 2020
by
Alvarez, Gonzalo
Browse files
doc: manual compiles
parent
7251832d
Changes
2
Hide whitespace changes
Inline
Side-by-side
scripts/doc.pl
View file @
3857508f
...
...
@@ -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
")
{
...
...
src/Io/IoNg.h
View file @
3857508f
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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