[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] Interfacing to C -- How do we map size_t to Modula-2?
From: |
Gaius Mulley |
Subject: |
Re: [Gm2] Interfacing to C -- How do we map size_t to Modula-2? |
Date: |
Sun, 16 Jul 2017 20:16:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Benjamin Kowarsch <address@hidden> writes:
> On Jul 14, 2017, at 01:50, Benjamin Kowarsch <address@hidden>
> wrote:
>
> Trouble is that I cannot possibly call confstr() from within a
> definition module in Modula-2.
>
> GM2 will have to do the work. It needs to either provide a SIZET
> type in module SYSTEM that always matches size_t for the current
> target, or ...
>
>
> I have been reading the XDS Modula-2 docs and ... surprise, surprise .
> ..
>
> XDS's SYSTEM module does in fact export a type size_t.
>
> I think GM2 should follow that example.
>
> https://www.excelsior-usa.com/doc/xds/xc.html
>
> IMPORT SYSTEM;
>
> PROCEDURE strlen(s: ARRAY OF CHAR): SYSTEM.size_t;
>
> This is the safest way to do it.
Hi Benjamin and John,
thanks for the email. Yes sure, this sounds very sensible - pretty easy
to implement as well. I'll add it to SYSTEM.def,
regards,
Gaius
- [Gm2] Interfacing to C -- How do we map size_t to Modula-2?, Benjamin Kowarsch, 2017/07/13
- Re: [Gm2] Interfacing to C -- How do we map size_t to Modula-2?, john o goyo, 2017/07/13
- Message not available
- Message not available
- Re: [Gm2] Interfacing to C -- How do we map size_t to Modula-2?, Benjamin Kowarsch, 2017/07/13
- Re: [Gm2] Interfacing to C -- How do we map size_t to Modula-2?, Benjamin Kowarsch, 2017/07/13
- Re: [Gm2] Interfacing to C -- How do we map size_t to Modula-2?,
Gaius Mulley <=
- Re: [Gm2] Interfacing to C -- How do we map size_t to Modula-2?, Gaius Mulley, 2017/07/21
- Re: [Gm2] Interfacing to C -- How do we map size_t to Modula-2?, Benjamin Kowarsch, 2017/07/24
- Re: [Gm2] Interfacing to C -- How do we map size_t to Modula-2?, Gaius Mulley, 2017/07/26