[Y-devel] C API?
Jason Watson jwatson at confinedlight.com
Sun Feb 22 01:22:01 GMT 2004
*waves to the list*
C++ does name translations when things are compiled. i.e. myFunc( int,
int ); becomes myFunc_int_int( int, int ) when the c++ compiler is done
with it (for support of things like overloading etc.). Having never
tried to wrap c++ code, I have no idea what would be involved in doing
a wrapper, or if it is even logical to try doing it that way.
--JW
On Feb 21, 2004, at 5:46 PM, Richard Hills wrote:
> On Sat, 2004-02-21 at 21:37, Mark Thomas wrote:
>> On Sat, 21 Feb 2004, Brandon Black wrote:
>>
>>> Is there a C API yet? I saw the C++ one (libYc++), and I see a "Yc",
>>> but it doesn't appear to have all the widget interfaces and things I
>>> would expect, just a couple messaging calls. Am I missing something
>>> here?
>>
>> There isn't a libYc yet. There is a libY which was supposed to be the
>> messaging system common to many language implementations, but I
>> decided
>> that is was probably easier just to include the messaging system in
>> libYc++.
>>
>> If you want to start writing a C interface, feel free, though I warn
>> you
>> the client API is likely to change quite a bit in the first few
>> stages of
>> development.
>
> This is something I'd be happy to do. I was wondering, is it possible
> for a C interface to use the underlying C++ interface, in order to
> reduce code duplication? As far as I understand it, the C interface for
> GTK is the base for several other language wrappers, so is it possible
> to do the same thing in reverse? Thanks,
>
> Richard
>
>
> _______________________________________________
> Y-devel mailing list
> Y-devel at www.y-windows.org
> https://www.y-windows.org/mailman/listinfo/y-devel
>
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved