gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] C IMPLEMENTATION MODULE?


From: Martin Kalbfuß
Subject: [Gm2] C IMPLEMENTATION MODULE?
Date: Sun, 20 Dec 2009 16:19:58 +0100

Hi,

I'm using C definition modules. A second layer of modules makes the api
more Modula like. Is it possible to have implementation modules for C
and  add the C function declarations there inside the wrapping
functions.

Something like this:

IMPLEMENTATION MODULE FOR "C" AModule.

PROCEDURE DoSomethingTheModulaWay( aParameter : aDatatype);

        (* C-Function declaration *)
        PROCEDURE DoSomethingTheCWay( aParameter : anotherType);

BEGIN
        (* convert aParameter *)
        DoSomethingTheCWay(convertedParameter);
END DoSomethingTheModulaWay;

END AModule.

Thanks,


-- 
Martin Kalbfuß <address@hidden>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]