nanogui: alloca()
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