[for review] kdewin32/include/msvc/alloca.h

Jarosław Staniek js at iidea.pl
Fri Dec 14 11:06:32 CET 2007


Christian Ehrlicher said the following, On 2007-12-14 06:58:
> Jarosław Staniek schrieb:
>> For review:
>> It's the same as malloc.h, except defines alloca as _alloca.
>>
> Can't we have an inline function? There're so much problems with macros
> that I would like to prefer inlines
> Make sure to include alloca.h somewhere when you export it (because in
> debug mode inline is ingored).
> 

Hmm; in msvc's malloc.h (2k3) we have:

--------------
#ifndef _POSIX_

void *          __cdecl _alloca(size_t);
//[....]

#if     !__STDC__
/* Non-ANSI names for compatibility */
#define alloca  _alloca
#endif  /* __STDC__*/

//[....]

#endif  /* _POSIX_ */
--------------

How about the attached alloca.h? It cooperates with what we have in malloc.h 
and adds the function you have proposed.

-- 
regards / pozdrawiam, Jaroslaw Staniek
  Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
  Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
  KDE Libraries for MS Windows (http://windows.kde.org)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: alloca.h
Url: http://mail.kde.org/pipermail/kde-windows/attachments/20071214/ae7b3b93/attachment.h 


More information about the Kde-windows mailing list