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
f0460434
Commit
f0460434
authored
Apr 07, 2017
by
Uwe Schulzweida
Browse files
setpartab: added support for values in single quotes [Bug #7662].
parent
33cf81a9
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
f0460434
2017-04-
14
Uwe Schulzweida
2017-04-
06
Uwe Schulzweida
* Using CDI library version 1.8.1
* Version 1.8.1 release
2017-04-07 Uwe Schulzweida
* setpartab: added support for values in single quotes [Bug #7662]
2017-04-03 Uwe Schulzweida
* Arith: set varID2 to varID (bug fix for variables with different grid size)
...
...
NEWS
View file @
f0460434
CDO NEWS
--------
Version 1.8.1 (
24 March
2017):
Version 1.8.1 (
6 April
2017):
New features:
* selindexbox: added support for LCC grid
New operators:
* selgridcell - Select grid cells
* delgridcell - Delete grid cells
* selmulti - Select multiple fields (KMNI extension)
* delmulti - Delete multiple fields (KMNI extension)
* changemulti - Change identication of multiple fields (KMNI extension)
* samplegrid - Resample grid (KMNI extension)
New operators (KMNI contribution):
* selmulti - Select multiple fields
* delmulti - Delete multiple fields
* changemulti - Change identication of multiple fields
* samplegrid - Resample grid
* uvDestag - Destaggering of wind components
* rotuvNorth - Rotate u/v wind to North pole
* projuvLatLon - Cylindrical Equidistant projection
...
...
src/namelist.c
View file @
f0460434
...
...
@@ -110,7 +110,7 @@ int namelist_parse_word(namelist_parser *parser, const char *buf, size_t len)
// Fills next token with NAMELIST string.
static
int
namelist_parse_string
(
namelist_parser
*
parser
,
const
char
*
buf
,
size_t
len
)
int
namelist_parse_string
(
namelist_parser
*
parser
,
const
char
*
buf
,
size_t
len
,
char
quote
)
{
int
start
=
parser
->
pos
;
...
...
@@ -122,7 +122,7 @@ int namelist_parse_string(namelist_parser *parser, const char *buf, size_t len)
char
c
=
buf
[
parser
->
pos
];
/* Quote: end of string */
if
(
c
==
'\"'
)
if
(
c
==
quote
)
{
namelisttok_t
*
token
=
namelist_alloc_token
(
parser
);
namelist_fill_token
(
token
,
NAMELIST_STRING
,
start
+
1
,
parser
->
pos
);
...
...
@@ -238,8 +238,8 @@ int namelist_parse(namelist_parser *parser, const char *buf, size_t len)
case
':'
:
case
'='
:
status
=
namelist_check_keyname
(
buf
,
&
parser
->
tokens
[
parser
->
toknext
-
1
]);
break
;
case
'\"'
:
status
=
namelist_parse_string
(
parser
,
buf
,
len
);
case
'\"'
:
case
'\''
:
status
=
namelist_parse_string
(
parser
,
buf
,
len
,
c
);
break
;
default:
status
=
namelist_parse_word
(
parser
,
buf
,
len
);
...
...
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