mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-09 08:11:38 +08:00
7e582ad3f2
The code for handling character constants in datalists in ncgen has some problems. 1. It failed on large constants 2. It did not handle e.g. var = 'a', 'b', ... in the same way that ncgen3 did. 3. The code for generate.c and genchar.c needed some refactoring to make it a little simpler (but not simple).
18 lines
438 B
Plaintext
Executable File
18 lines
438 B
Plaintext
Executable File
netcdf ref_tst_opaque_data {
|
|
types:
|
|
opaque(10) raw_obs_t ;
|
|
opaque(3) raw_obs2_t ;
|
|
dimensions:
|
|
time = 5 ;
|
|
variables:
|
|
raw_obs_t raw_obs(time) ;
|
|
raw_obs_t raw_obs:_FillValue = 0XCAFEBABECAFEBABECAF ;
|
|
raw_obs2_t raw_obs2(time) ;
|
|
raw_obs2_t raw_obs2:_FillValue = 0XABC;
|
|
data:
|
|
|
|
raw_obs = 0X02030405060708090A0B, 0XAABBCCDDEEFFEEDDC,
|
|
0XFFFFFFFFFFFFFFFFFFFF, _, 0XCF0DEFACED0CAFE0FACA ;
|
|
raw_obs2 = 0X123, _, 0XFFF, _, 0X357 ;
|
|
}
|