Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
584bba0a
Commit
584bba0a
authored
Oct 25, 2006
by
Uwe Schulzweida
Browse files
Change prompt from stdout to stderr
parent
039728b3
Changes
4
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
584bba0a
2006-11-?? Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* using CDI library version 1.0.3
* New operator: intntime [request: Michael Boettinger]
* New operator: intntime [request: Michael Boettinger]
* New operator: mrotuvb [request: Helmuth Haak]
* New operator: outputvector [request: Helmuth Haak]
* inttime: extention for months and years [request: Holger Goettel]
...
...
src/Outputgmt.c
View file @
584bba0a
...
...
@@ -91,6 +91,7 @@ void *Outputgmt(void *argument)
operatorInputArg
(
"increment"
);
operatorCheckArgc
(
1
);
ninc
=
atoi
(
operatorArgv
()[
0
]);
if
(
ninc
<
1
)
cdoAbort
(
"Increment must be greater than 0!"
);
}
if
(
operatorID
==
OUTPUTBOUNDS
||
operatorID
==
OUTPUTBOUNDSCPT
)
...
...
@@ -226,6 +227,8 @@ void *Outputgmt(void *argument)
fprintf
(
stdout
,
"# Generated by CDO version %s
\n
"
,
VERSION
);
fprintf
(
stdout
,
"#
\n
"
);
fprintf
(
stdout
,
"# Operator = %s
\n
"
,
cdoOperatorName
(
operatorID
));
if
(
operatorID
==
OUTPUTVECTOR
)
fprintf
(
stdout
,
"# Increment = %d
\n
"
,
ninc
);
fprintf
(
stdout
,
"#
\n
"
);
fprintf
(
stdout
,
"# File = %s
\n
"
,
cdoStreamName
(
0
));
fprintf
(
stdout
,
"# Date = %4.4d-%2.2d-%2.2d
\n
"
,
year
,
month
,
day
);
...
...
src/modules.c
View file @
584bba0a
...
...
@@ -487,9 +487,9 @@ static int operatorInqModID(char *operatorName)
}
}
if
(
error
)
fprintf
(
std
out
,
"(not found)
\n
"
)
;
fprintf
(
std
err
,
"(not found)
\n
"
)
;
else
fprintf
(
std
out
,
"
\n
"
);
fprintf
(
std
err
,
"
\n
"
);
exit
(
EXIT_FAILURE
);
}
...
...
src/process.c
View file @
584bba0a
...
...
@@ -647,7 +647,7 @@ void operatorInputArg(const char *enter)
{
lreadline
=
1
;
if
(
enter
)
Message
(
processInqPrompt
(),
"Enter %s >"
,
enter
);
if
(
enter
)
fprintf
(
stderr
,
"%-16s : Enter %s > "
,
processInqPrompt
(),
enter
);
while
(
lreadline
)
{
...
...
Write
Preview
Supports
Markdown
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