nanogui: alloca()


Previous by date: 11 Oct 2000 14:10:37 -0000 multiple mwin win32 apps, debit
Next by date: 11 Oct 2000 14:10:37 -0000 Re: [patch] windef.h enhancements for VxWorks, Brent Thompson
Previous in thread:
Next in thread: 11 Oct 2000 14:10:37 -0000 Re: alloca(), Greg Haerr

Subject: alloca()
From: Brent Thompson ####@####.####
Date: 11 Oct 2000 14:10:37 -0000
Message-Id: <39E473F5.80306@nlc.com>

In porting Microwindows to VxWorks, I see a couple uses
of the alloca() function in <microwin/src/mwin/winlib/edit.c>
and <microwin/src/engine/devfont.c>.  As alloca() is not
an ANSI function, it is not necessarily implemented on all
platforms.  I have not been able to get this code to compile
in Tornado/VxWorks, so I have replaced the alloca()'s with
malloc()/free() pairs.

Does anyone see any problems with this replacement?

Is this replacement something that could be rolled into the
general release in order to make Microwindows more portable
to new platforms?

BAT
-- 
Brent A. Thompson, Next Level Communications <www.nlc.com>
1776 22nd Street #100, West Des Moines, IA 50266-1444
EMail: ####@####.#### Phone: (515)991-3853


Previous by date: 11 Oct 2000 14:10:37 -0000 multiple mwin win32 apps, debit
Next by date: 11 Oct 2000 14:10:37 -0000 Re: [patch] windef.h enhancements for VxWorks, Brent Thompson
Previous in thread:
Next in thread: 11 Oct 2000 14:10:37 -0000 Re: alloca(), Greg Haerr


Powered by ezmlm-browse 0.20.