mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
90b912b7e8
Built-in type-name keywords are currently flagged when used as identifiers in formats that do not support that type. So if a user declares a dimension named "string" in a classic .cdl file, it causes an error. This PR modifies ncgen to allow those format-specific type keywords to be used as identifiers when compiling to formats that do not support that type. Also added a test for this. Also a couple of misc. changes to conditionalize some debug output.
7 lines
77 B
Plaintext
7 lines
77 B
Plaintext
netcdf keyword2 {
|
|
dimensions:
|
|
string = 128;
|
|
variables:
|
|
int string(string);
|
|
}
|