mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-21 08:39:46 +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.
9 lines
123 B
Plaintext
9 lines
123 B
Plaintext
netcdf keyword1 {
|
|
dimensions:
|
|
string = 128;
|
|
int64 = 64;
|
|
variables:
|
|
int string(string);
|
|
int int64(int64);
|
|
}
|