CVS difference for ais/ai-00131.txt
--- ais/ai-00131.txt 2000/06/21 23:39:08 1.15
+++ ais/ai-00131.txt 2000/07/13 04:31:28 1.16
@@ -19,7 +19,7 @@
!summary
-The Implementation Advice in B.3(69) is correct as written.
+The implementation advice in B.3(69) is correct as written.
An implementation which supports interfacing to C shall support pragma
Convention with a C_Pass_By_Copy identifier. An 'in' parameter of a
@@ -28,7 +28,7 @@
!question
-The Implementation Advice B.3(69) says:
+The implementation advice B.3(69) says:
An Ada parameter of a record type T, of any mode, is passed as a
t* argument to a C function, where t is the C struct
@@ -37,12 +37,12 @@
The problem with this is that if one has a C function that is passed a
struct, then how can one pass an Ada record to that? One might think that if
the Ada record is passed as an 'in' parameter, it will work. However, the
-above Implementation Advice implies that such an 'in' parameter will
+above implementation advice implies that such an 'in' parameter will
correspond to a t* on the C side, rather than a t.
!recommendation
-The Implementation Advice in B.3(69) is left unchanged (that is, C-compatible
+The implementation advice in B.3(69) is left unchanged (that is, C-compatible
records are passed by reference).
The convention C_Pass_By_Copy is added to the facilities available for
@@ -65,15 +65,15 @@
with a C_Pass_By_Copy convention_identifier for a C_Pass_By_Copy-eligible
type.
-The following sentence is added to the Implementation Advice in B.3(64-71):
+The following sentence is added to the implementation advice in B.3(64-71):
An Ada parameter of a C_Pass_By_Copy-compatible (record) type T, of mode in,
should be passed as a t argument to a C function, where t is the C struct
corresponding to the Ada type T.
Note that the rules B.1(19) and B.1(20) apply to convention C_Pass_By_Copy.
-In particular, an implementation may permit other types as C_Pass_By_Copy-
-compatible types (e.g., discriminated records).
+In particular, an implementation may permit other types as
+C_Pass_By_Copy-compatible types (e.g., discriminated records).
!wording
Questions? Ask the ACAA Technical Agent