[ofa-general] [PATCH] osm: Converting the the C++ code to C in osm_ucast_lash.c

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Tue Mar 6 23:33:06 PST 2007


Hal Rosenstock wrote:
> On Tue, 2007-03-06 at 12:51, Jason Gunthorpe wrote:
>> On Tue, Mar 06, 2007 at 06:03:16PM +0200, Yevgeny Kliteynik wrote:
>>> Hi Hal.
>>>
>>> Converting the the C++ code to C.
>> This is actually valid C99 code. This is the method that ISO
>> standardized in C99 to do dynamic stack allocations (alloca is not
>> an ISO C function).
>>
>> Since it is now 2007 is there really still a desire to not use C99
>> features?
> 
> My guess is that the Windows compiler didn't like this though :-(

Correct :(

BTW, there's still a C++ element there - switch_bitmap is declared
after using OSM_LOG_ENTER.

--Yevgeny
 
> -- Hal
> 
>> Jason
> 




More information about the general mailing list