mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +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).
19 lines
456 B
Plaintext
19 lines
456 B
Plaintext
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 = 0XCAFEBABECAFEBABECAF0 ;
|
|
raw_obs2_t raw_obs2(time) ;
|
|
raw_obs2_t raw_obs2:_FillValue = 0XABC000 ;
|
|
data:
|
|
|
|
raw_obs = 0X02030405060708090A0B, 0XAABBCCDDEEFFEEDDC000,
|
|
0XFFFFFFFFFFFFFFFFFFFF, _, 0XCF0DEFACED0CAFE0FACA ;
|
|
|
|
raw_obs2 = 0X123000, _, 0XFFF000, _, 0X357000 ;
|
|
}
|