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
Spot
Spot
Commits
b10727f1
Commit
b10727f1
authored
Feb 07, 2005
by
Denis Poitrenaud
Browse files
* src/misc/optionmap.cc, src/misc/optionmap.hh: Typo (Hummm).
parent
661dee86
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
b10727f1
2005-02-07 Denis Poitrenaud <Denis.Poitrenaud@lip6.fr>
* src/misc/optionmap.cc, src/misc/optionmap.hh: Typo (Hummm).
2005-02-07 Denis Poitrenaud <Denis.Poitrenaud@lip6.fr>
* src/misc/optionmap.cc, src/misc/optionmap.hh (option_map): New class.
...
...
src/misc/optionmap.cc
View file @
b10727f1
...
...
@@ -26,7 +26,8 @@
namespace
spot
{
namespace
{
namespace
{
bool
to_int
(
const
char
*
s
,
int
&
i
)
{
...
...
@@ -45,7 +46,7 @@ namespace spot
const
char
*
option_map
::
parse_options
(
char
*
options
)
{
char
*
opt
=
strtok
(
options
,
"
\t
, ;"
);
char
*
opt
=
strtok
(
options
,
",
\t
;"
);
while
(
opt
)
{
char
*
equal
;
...
...
@@ -60,7 +61,7 @@ namespace spot
else
// default value if declared
options_
[
opt
]
=
1
;
opt
=
strtok
(
0
,
"
\t
, ;"
);
opt
=
strtok
(
0
,
",
\t
;"
);
}
return
0
;
}
...
...
src/misc/optionmap.hh
View file @
b10727f1
...
...
@@ -19,8 +19,8 @@
// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
#ifndef SPOT_MISC_OPTION
_
MAP_HH
# define SPOT_MISC_OPTION
_
MAP_HH
#ifndef SPOT_MISC_OPTIONMAP_HH
# define SPOT_MISC_OPTIONMAP_HH
#include
<string>
#include
<map>
...
...
@@ -71,4 +71,4 @@ namespace spot
};
};
#endif
#endif
// SPOT_MISC_OPTIONMAP_HH
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