mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-03 08:01:25 +08:00
a37ca49d25
re: PR https://github.com/Unidata/netcdf-c/pull/2655 This PR modifies the transient types PR so that all created transient types are given a created unique name (within a group). The form of the name is "_Anonymous<Class>NN". The class is the user-defined type class: Enum, Compound, Opaque, or Vlen. NN is an integer identifier to ensure uniqueness. Additionally, this was applied to DAP/4 anonymous dimensions. This also required some test baseline data changes. The transient test case is modified to verify that the name exists.
18 lines
268 B
Plaintext
18 lines
268 B
Plaintext
netcdf test_vlen4 {
|
|
types:
|
|
compound v1_f1_base_t {
|
|
int f1 ;
|
|
}; // v1_f1_base_t
|
|
v1_f1_base_t(*) v1_f1_t ;
|
|
compound v1_t {
|
|
v1_f1_t f1(2) ;
|
|
}; // v1_t
|
|
dimensions:
|
|
_AnonymousDim2 = 2 ;
|
|
variables:
|
|
v1_t v1 ;
|
|
data:
|
|
|
|
v1 = {{{{1}, {3}, {5}, {7}}, {}}} ;
|
|
}
|