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
2050906e
Commit
2050906e
authored
6 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Renamed exprs_from_file() to exprsFromFile().
parent
eb3da7fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Exprf.cc
+6
-6
6 additions, 6 deletions
src/Exprf.cc
with
6 additions
and
6 deletions
src/Exprf.cc
+
6
−
6
View file @
2050906e
...
...
@@ -46,7 +46,7 @@ void grid_cell_area(int gridID, double *array);
int
getSurfaceID
(
int
vlistID
);
static
char
*
exprs
_f
rom
_arg
(
const
char
*
arg
)
exprs
F
rom
Argument
(
const
char
*
arg
)
{
size_t
slen
=
strlen
(
arg
);
char
*
exprs
=
(
char
*
)
Malloc
(
slen
+
2
);
...
...
@@ -61,7 +61,7 @@ exprs_from_arg(const char *arg)
}
static
char
*
exprs
_f
rom
_f
ile
(
const
char
*
exprf
)
exprs
F
rom
F
ile
(
const
char
*
exprf
)
{
/* Open expr script file for reading */
FILE
*
fp
=
fopen
(
exprf
,
"r"
);
...
...
@@ -86,7 +86,7 @@ exprs_from_file(const char *exprf)
#define MAX_PARAMS 4096
char
*
static
char
*
str_replace
(
char
*
target
,
const
char
*
needle
,
const
char
*
replacement
)
{
char
buffer
[
1024
]
=
{
0
};
...
...
@@ -125,7 +125,7 @@ str_replace(char *target, const char *needle, const char *replacement)
}
static
char
*
exprs
_e
xpand
(
char
*
exprs
,
int
vlistID
)
exprs
E
xpand
(
char
*
exprs
,
int
vlistID
)
{
size_t
len
=
strlen
(
exprs
);
unsigned
nequal
=
0
,
nsemi
=
0
;
...
...
@@ -384,12 +384,12 @@ Expr(void *process)
operatorInputArg
(
cdoOperatorEnter
(
operatorID
));
operatorCheckArgc
(
1
);
char
*
exprs
=
readsCommandLine
?
exprs
_f
rom
_arg
(
operatorArgv
()[
0
])
:
exprs
_f
rom
_f
ile
(
operatorArgv
()[
0
]);
char
*
exprs
=
readsCommandLine
?
exprs
F
rom
Argument
(
operatorArgv
()[
0
])
:
exprs
F
rom
F
ile
(
operatorArgv
()[
0
]);
int
streamID1
=
cdoStreamOpenRead
(
0
);
int
vlistID1
=
cdoStreamInqVlist
(
streamID1
);
exprs
=
exprs
_e
xpand
(
exprs
,
vlistID1
);
exprs
=
exprs
E
xpand
(
exprs
,
vlistID1
);
if
(
cdoVerbose
)
cdoPrint
(
exprs
);
int
nvars1
=
vlistNvars
(
vlistID1
);
...
...
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