Hi John,
just a quick note as I skim through your response. I'll read it
more carefully later.
> I changed all the callback typedefs in the C++ header to have
> extern "C" linkage. The static member function should not be
> an issue because you can always more or less acheive the same
> effect by making an ANSI C linkage function a friend of a C++
> class. This is quite a common use model with SCE-MI applications.
Ok, this is what we decided at the meeting and I agree with your
concerns about interoperability with C code. However, this gives
you another action :-) The Routed demo example uses static
member functions for the callbacks so it should be changed as
per your suggestion to use non-member functions that are declared
friends of the classes they are associated with (SystemC modules
in this case).
> On a related note I changed the 'bool pending' arg of the g
> function typedef to 'int pending' instead. This removes
> dependency on the "to bool or not to bool' quirck between
> ANSI C and C++. In otherwords, since C++ define bool but
> ANSI C doesn't, let's make our life easier by removing this
> dependency entirely.
Didn't C99 introduce bool? Have we stated somewhere which version(s)
of ANSI-C and C++ we want to be compatible with? I assume we are
aiming for the largest audience, i.e., lowest common denominator?
Per
-- Per Bojsen Email: <bojsen@zaiqtech.com> Zaiq Technologies, Inc. WWW: http://www.zaiqtech.com 78 Dragon Ct. Tel: 781 721 8229 Woburn, MA 01801 Fax: 781 932 7488Received on Fri Aug 20 17:16:52 2004
This archive was generated by hypermail 2.1.8 : Fri Aug 20 2004 - 17:16:54 PDT