(j3.2006) definition of CFI_CDESC_T
Malcolm Cohen
malcolm
Tue Apr 24 04:28:55 EDT 2012
(cc'd to interop-tr which is probably a better place for discussion).
That does not look like "a type suitable for declaring a C descriptor" to me.
Surely, given
CFI_CDESC_T(2) x;
then x must be a C descriptor, and therefore &x must be compatible with
CFI_cdesc_t*, and x.base_addr et al should be usable; neither of those things
appear to be true of this (that or my eyes have glazed over too much).
It might be "a type suitable for declaring something [that might be] at least as
big as a type suitable for declaring a C descriptor", but that is a horse of a
decidedly different colour, no?
Cheers,
-----Original Message-----
From: Robert Corbett
Date: ?? 24?4?24? 17:03
To: j3
Subject: (j3.2006) definition of CFI_CDESC_T
In my ballot on N1911, I expressed interest in seeing implementations of the
function-like macro CFI_CDESC_T. The definition in my experimental version of
the header ISO_Fortran_binding.h is
#define CFI_CDESC_T(n) struct{long long ____[(sizeof(CFI_cdesc_t)+7)/8+3*(n)];}
Bob Corbett:q
_______________________________________________
J3 mailing list
J3 at j3-fortran.org
http://j3-fortran.org/mailman/listinfo/j3
________________________________________________________________________
This e-mail has been scanned for all viruses by Star.
________________________________________________________________________
--
................................Malcolm Cohen, Nihon NAG, Tokyo.
More information about the J3
mailing list