Skip to content

Commit b15b007

Browse files
committed
Use hdsbool_t explicitly for _LOGICAL
Rather than straight int.
1 parent 746acbd commit b15b007

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

datget0x.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ int datGet0UW ( const HDSLoc * loc, unsigned short * value, int * status ) {
206206
return *status;
207207
}
208208

209-
int datGet0L ( const HDSLoc * loc, int * value, int * status ) {
209+
int datGet0L ( const HDSLoc * loc, hdsbool_t * value, int * status ) {
210210

211211
int ndims = 0;
212212
hdsdim dim[] = { 0 };

datgetx.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ int
155155
datGetL(const HDSLoc *locator,
156156
int ndim,
157157
const hdsdim dims[],
158-
int values[],
158+
hdsbool_t values[],
159159
int *status)
160160
{
161161
#undef context_name
@@ -323,7 +323,7 @@ datGet1R( const HDSLoc * locator,
323323
int
324324
datGet1L( const HDSLoc * locator,
325325
size_t maxval,
326-
int values[],
326+
hdsbool_t values[],
327327
size_t *actval,
328328
int * status ) {
329329

@@ -429,7 +429,7 @@ datGetVR( const HDSLoc * locator,
429429
int
430430
datGetVL( const HDSLoc * locator,
431431
size_t maxval,
432-
int values[],
432+
hdsbool_t values[],
433433
size_t *actval,
434434
int * status ) {
435435
HDSLoc * vec = NULL;

datput0.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ int datPut0UW ( const HDSLoc * loc, unsigned short value, int * status ) {
179179
return *status;
180180
}
181181

182-
int datPut0L ( const HDSLoc * loc, int value, int * status ) {
182+
int datPut0L ( const HDSLoc * loc, hdsbool_t value, int * status ) {
183183

184184
int ndims = 0;
185185
hdsdim dim[] = { 0 };

datput1.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ int
173173
datPutL( const HDSLoc *locator,
174174
int ndim,
175175
const hdsdim dims[],
176-
const int values[],
176+
const hdsbool_t values[],
177177
int *status)
178178
{
179179
#undef context_name
@@ -397,7 +397,7 @@ datPut1R( const HDSLoc * locator,
397397
int
398398
datPut1L( const HDSLoc * locator,
399399
size_t nval,
400-
const int values[],
400+
const hdsbool_t values[],
401401
int * status ) {
402402
size_t size;
403403
hdsdim dim[1];
@@ -489,7 +489,7 @@ datPutVR( const HDSLoc * locator,
489489
int
490490
datPutVL( const HDSLoc * locator,
491491
size_t nval,
492-
const int values[],
492+
const hdsbool_t values[],
493493
int *status ) {
494494
HDSLoc *vec = NULL;
495495
datVec( locator, &vec, status );

hds.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ int
243243
datGetL(const HDSLoc *locator,
244244
int ndim,
245245
const hdsdim dims[],
246-
int values[],
246+
hdsbool_t values[],
247247
int *status);
248248

249249
/*===================================*/
@@ -311,7 +311,7 @@ datGet0UW( const HDSLoc * loc, unsigned short * value, int * status );
311311
/*=======================================*/
312312

313313
int
314-
datGet0L( const HDSLoc * loc, int * value, int * status );
314+
datGet0L( const HDSLoc * loc, hdsbool_t * value, int * status );
315315

316316
/*==================================*/
317317
/* DAT_GET1C - Read 1D string array */
@@ -399,7 +399,7 @@ datGet1R( const HDSLoc * locator,
399399
int
400400
datGet1L( const HDSLoc * locator,
401401
size_t maxval,
402-
int values[],
402+
hdsbool_t values[],
403403
size_t *actval,
404404
int * status );
405405

@@ -468,7 +468,7 @@ datGetVR( const HDSLoc * locator,
468468
int
469469
datGetVL( const HDSLoc * locator,
470470
size_t maxval,
471-
int values[],
471+
hdsbool_t values[],
472472
size_t *actval,
473473
int * status );
474474

@@ -975,7 +975,7 @@ int
975975
datPutL( const HDSLoc *locator,
976976
int ndim,
977977
const hdsdim dims[],
978-
const int values[],
978+
const hdsbool_t values[],
979979
int *status);
980980

981981
/*==========================*/
@@ -1044,7 +1044,7 @@ datPut0UW( const HDSLoc * loc, unsigned short value, int * status );
10441044
/*========================================*/
10451045

10461046
int
1047-
datPut0L( const HDSLoc * loc, int value, int * status );
1047+
datPut0L( const HDSLoc * loc, hdsbool_t value, int * status );
10481048

10491049
/*========================================*/
10501050
/* datPut1C - Write 1D character array */
@@ -1123,7 +1123,7 @@ datPut1R( const HDSLoc * loc,
11231123
int
11241124
datPut1L( const HDSLoc * loc,
11251125
size_t nval,
1126-
const int values[],
1126+
const hdsbool_t values[],
11271127
int * status );
11281128

11291129
/*================================================*/
@@ -1173,7 +1173,7 @@ datPutVR( const HDSLoc * loc,
11731173
int
11741174
datPutVL( const HDSLoc * loc,
11751175
size_t nval,
1176-
const int values[],
1176+
const hdsbool_t values[],
11771177
int * status );
11781178

11791179
/*================================================*/

0 commit comments

Comments
 (0)