Skip to content

Commit 9633957

Browse files
committed
Removed offset component from CFI_cdesc_t because it is no longer needed and is not part of the standard.
1 parent 7bb935f commit 9633957

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/iso-fortran-binding/ISO_Fortran_binding.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ int CFI_establish (CFI_cdesc_t *dv, void *base_addr, CFI_attribute_t attribute,
116116
dv->rank = rank;
117117
dv->attribute = attribute;
118118
dv->type = type;
119-
dv->offset = 0;
120119

121120
/* Extents must not be NULL if rank is greater than zero and base_addr is not
122121
* NULL */
@@ -219,7 +218,6 @@ int CFI_setpointer (CFI_cdesc_t *result, CFI_cdesc_t *source,
219218
/* Assign components to result. */
220219
result->version = source->version;
221220
result->attribute = source->attribute;
222-
result->offset = source->offset;
223221

224222
/* Dimension information. */
225223
for (int i = 0; i < source->rank; i++)
@@ -855,6 +853,5 @@ int CFI_select_part (CFI_cdesc_t *result, const CFI_cdesc_t *source,
855853
}
856854

857855
result->base_addr = (char *) source->base_addr + displacement;
858-
result->offset = displacement + source->elem_len;
859856
return CFI_SUCCESS;
860857
}

src/iso-fortran-binding/ISO_Fortran_binding.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ typedef struct CFI_cdesc_t
7777
CFI_rank_t rank;
7878
CFI_attribute_t attribute;
7979
CFI_type_t type;
80-
size_t offset;
8180
CFI_dim_t dim[];
8281
}
8382
CFI_cdesc_t;
@@ -91,7 +90,6 @@ CFI_cdesc_t;
9190
CFI_rank_t rank; \
9291
CFI_attribute_t attribute; \
9392
CFI_type_t type; \
94-
size_t offset; \
9593
CFI_dim_t dim[r]; \
9694
}
9795
#define CFI_CDESC_T(r) CFI_CDESC_TYPE_T (r, void)

0 commit comments

Comments
 (0)