Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
4bbcf71d
Commit
4bbcf71d
authored
Aug 31, 2014
by
Mattias Ellert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 652276 - Typedefs in manpages has too few linebreak possiblilities
parent
7a0f5e6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
doxygen.cpp
src/doxygen.cpp
+2
-2
memberdef.cpp
src/memberdef.cpp
+3
-1
No files found.
src/doxygen.cpp
View file @
4bbcf71d
...
@@ -2833,14 +2833,14 @@ static void addVariable(EntryNav *rootNav,int isFuncPtr=-1)
...
@@ -2833,14 +2833,14 @@ static void addVariable(EntryNav *rootNav,int isFuncPtr=-1)
else
if
(
root
->
type
.
find
(
')'
,
i
)
!=-
1
)
// function ptr, not variable like "int (*bla)[10]"
else
if
(
root
->
type
.
find
(
')'
,
i
)
!=-
1
)
// function ptr, not variable like "int (*bla)[10]"
{
{
root
->
type
=
root
->
type
.
left
(
root
->
type
.
length
()
-
1
);
root
->
type
=
root
->
type
.
left
(
root
->
type
.
length
()
-
1
);
root
->
args
.
prepend
(
")"
);
root
->
args
.
prepend
(
")
"
);
//printf("root->type=%s root->args=%s\n",root->type.data(),root->args.data());
//printf("root->type=%s root->args=%s\n",root->type.data(),root->args.data());
}
}
}
}
else
if
(
root
->
type
.
find
(
"typedef "
)
!=-
1
&&
root
->
type
.
right
(
2
)
==
"()"
)
// typedef void (func)(int)
else
if
(
root
->
type
.
find
(
"typedef "
)
!=-
1
&&
root
->
type
.
right
(
2
)
==
"()"
)
// typedef void (func)(int)
{
{
root
->
type
=
root
->
type
.
left
(
root
->
type
.
length
()
-
1
);
root
->
type
=
root
->
type
.
left
(
root
->
type
.
length
()
-
1
);
root
->
args
.
prepend
(
")"
);
root
->
args
.
prepend
(
")
"
);
}
}
}
}
...
...
src/memberdef.cpp
View file @
4bbcf71d
...
@@ -1669,13 +1669,15 @@ void MemberDef::writeDeclaration(OutputList &ol,
...
@@ -1669,13 +1669,15 @@ void MemberDef::writeDeclaration(OutputList &ol,
// *** write arguments
// *** write arguments
if
(
argsString
()
&&
!
isObjCMethod
())
if
(
argsString
()
&&
!
isObjCMethod
())
{
{
if
(
!
isDefine
())
ol
.
writeString
(
" "
);
if
(
!
isDefine
()
&&
!
isTypedef
()
)
ol
.
writeString
(
" "
);
linkifyText
(
TextGeneratorOLImpl
(
ol
),
// out
linkifyText
(
TextGeneratorOLImpl
(
ol
),
// out
d
,
// scope
d
,
// scope
getBodyDef
(),
// fileScope
getBodyDef
(),
// fileScope
this
,
// self
this
,
// self
isDefine
()
?
isDefine
()
?
(
const
char
*
)
substitute
(
argsString
(),
","
,
", "
)
:
(
const
char
*
)
substitute
(
argsString
(),
","
,
", "
)
:
isTypedef
()
?
(
const
char
*
)
substitute
(
argsString
(),
")("
,
") ("
)
:
argsString
(),
// text
argsString
(),
// text
m_impl
->
annMemb
,
// autoBreak
m_impl
->
annMemb
,
// autoBreak
TRUE
,
// external
TRUE
,
// external
...
...
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