Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
cdo
Commits
901aca4f
Commit
901aca4f
authored
1 year ago
by
Oliver Heidmann
Browse files
Options
Downloads
Patches
Plain Diff
removed unused parameter
parent
4d5ddd79
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!110
M300433/develop2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/cdo_syntax_error.cc
+1
-1
1 addition, 1 deletion
src/cdo_syntax_error.cc
src/cdo_syntax_error.h
+1
-1
1 addition, 1 deletion
src/cdo_syntax_error.h
src/parser.cc
+3
-3
3 additions, 3 deletions
src/parser.cc
src/parser.h
+1
-1
1 addition, 1 deletion
src/parser.h
with
6 additions
and
6 deletions
src/cdo_syntax_error.cc
+
1
−
1
View file @
901aca4f
...
...
@@ -9,7 +9,7 @@ InternalCdoSyntaxError::InternalCdoSyntaxError(std::vector<std::string>::const_i
{
}
CdoSyntaxError
::
CdoSyntaxError
(
InternalCdoSyntaxError
&
e
,
std
::
vector
<
std
::
string
>
&
p_argv
,
const
std
::
string
&
context
)
CdoSyntaxError
::
CdoSyntaxError
(
InternalCdoSyntaxError
&
e
,
std
::
vector
<
std
::
string
>
&
p_argv
)
:
InternalCdoSyntaxError
(
e
.
iter
,
e
.
message
,
e
.
file
,
e
.
line
)
{
...
...
This diff is collapsed.
Click to expand it.
src/cdo_syntax_error.h
+
1
−
1
View file @
901aca4f
...
...
@@ -16,7 +16,7 @@ struct InternalCdoSyntaxError : CdoException
struct
CdoSyntaxError
:
InternalCdoSyntaxError
{
CdoSyntaxError
(
InternalCdoSyntaxError
&
e
,
std
::
vector
<
std
::
string
>
&
p_argv
,
const
std
::
string
&
context
);
CdoSyntaxError
(
InternalCdoSyntaxError
&
e
,
std
::
vector
<
std
::
string
>
&
p_argv
);
CdoSyntaxError
(
InternalCdoSyntaxError
&
e
);
const
char
*
what
()
const
throw
()
override
;
...
...
This diff is collapsed.
Click to expand it.
src/parser.cc
+
3
−
3
View file @
901aca4f
...
...
@@ -494,7 +494,7 @@ run(std::vector<std::string> &p_argv)
return
node_structure
;
}
std
::
vector
<
std
::
shared_ptr
<
Node
>>
_parse
(
std
::
vector
<
std
::
string
>
p_argv
,
const
char
*
(
*
context
)(
void
)
)
_parse
(
std
::
vector
<
std
::
string
>
p_argv
)
{
std
::
vector
<
std
::
shared_ptr
<
Node
>>
res
=
{};
try
...
...
@@ -505,7 +505,7 @@ _parse(std::vector<std::string> p_argv, const char *(*context)(void) )
}
catch
(
InternalCdoSyntaxError
&
e
)
{
throw
CdoSyntaxError
(
e
,
p_argv
,
context
()
);
throw
CdoSyntaxError
(
e
,
p_argv
);
}
return
res
;
}
...
...
@@ -516,7 +516,7 @@ parse(std::vector<std::string> p_argv, const char *(*context)(void) )
std
::
vector
<
std
::
shared_ptr
<
Node
>>
res
=
{};
try
{
return
_parse
(
p_argv
,
context
);
return
_parse
(
p_argv
);
}
catch
(
const
CdoSyntaxError
&
e
)
{
...
...
This diff is collapsed.
Click to expand it.
src/parser.h
+
1
−
1
View file @
901aca4f
...
...
@@ -72,7 +72,7 @@ std::string err_msg_oper_not_found(std::string name);
std
::
vector
<
std
::
shared_ptr
<
Node
>>
run
(
std
::
vector
<
std
::
string
>
&
p_argv
);
std
::
vector
<
std
::
shared_ptr
<
Node
>>
parse
(
std
::
vector
<
std
::
string
>
p_argv
,
const
char
*
(
*
context
)(
void
)
);
std
::
vector
<
std
::
shared_ptr
<
Node
>>
_parse
(
std
::
vector
<
std
::
string
>
p_argv
,
const
char
*
(
*
context
)(
void
)
);
std
::
vector
<
std
::
shared_ptr
<
Node
>>
_parse
(
std
::
vector
<
std
::
string
>
p_argv
);
namespace
Util
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment