From 1ca2dbd8f9ff34b6db00c538f27d59dd57482f04 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 14 Nov 2007 15:14:45 +0000 Subject: [PATCH] gcc/ada/ * i-cstrin.ads (chars_ptr): Make it a C convention type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130180 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ada/ChangeLog | 2 ++ gcc/ada/i-cstrin.ads | 1 + 2 files changed, 3 insertions(+) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 4f17de0..cefae39 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -5,6 +5,8 @@ * s-osinte-interix.ads: Removed. + * i-cstrin.ads (chars_ptr): Make it a C convention type. + 2007-11-13 Samuel Tardieu * a-tasatt.adb: Add a comment at the beginning of the package diff --git a/gcc/ada/i-cstrin.ads b/gcc/ada/i-cstrin.ads index 5ea063a..5e3494e 100644 --- a/gcc/ada/i-cstrin.ads +++ b/gcc/ada/i-cstrin.ads @@ -97,6 +97,7 @@ package Interfaces.C.Strings is private type chars_ptr is access all Character; + pragma Convention (C, chars_ptr); pragma No_Strict_Aliasing (chars_ptr); -- Since this type is used for external interfacing, with the pointer -- 2.7.4