Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tiger
nolimips
Commits
baface05
Commit
baface05
authored
Jul 29, 2003
by
Benoit Perrot
Browse files
Fix usage display.
parent
2bdbc88d
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
baface05
2003-07-29 Benot Perrot <benoit@lrde.epita.fr>
* src/task/task_register.cc:
Fix usage display.
2003-07-29 Benot Perrot <benoit@lrde.epita.fr>
* dev/mipsy.xml, dev/mips.py:
...
...
src/task/task_register.cc
View file @
baface05
...
...
@@ -198,18 +198,19 @@ namespace task
ostr
<<
"] "
;
unsigned
len
=
80
;
const
char
tab
[]
=
" "
;
for
(
std
::
map
<
std
::
string
,
Task
const
*>::
const_iterator
it
=
_tasks
.
begin
();
it
!=
_tasks
.
end
();
++
it
)
{
if
(
len
+
(
*
it
).
first
.
size
()
+
3
>=
80
)
{
ostr
<<
std
::
endl
<<
" "
;
len
=
0
;
}
if
((
*
it
).
first
.
size
()
>
2
)
if
((
*
it
).
first
.
size
()
>
2
)
{
if
(
len
+
(
*
it
).
first
.
size
()
+
3
>=
80
)
{
ostr
<<
std
::
endl
<<
tab
;
len
=
sizeof
(
tab
);
}
ostr
<<
"["
<<
(
*
it
).
first
<<
"] "
;
len
+=
(
*
it
).
first
.
size
()
+
3
;
}
len
+=
(
*
it
).
first
.
size
()
+
3
;
}
ostr
<<
std
::
endl
;
}
...
...
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