#C/AllocMem()
28-May-90 20:16:08
Sb: #106329-#C/AllocMem()
Fm: Jerry Masker 76657,1775
To: Mike Roth/Lattice 76566,1137
Mike,
First of all, would you believe:
UWORD (*array)[20][40]; /* or whatever */
Then, why would anybody in his right mind want to type all that stuff in
the function call, repeating the stuff in the declaration, and opening
himself to the future maintenance problems, when he could just enter:
array = AllocMem (sizeof (*array), MEMF_PUBLIC);
??? Or doesnt this work with Lattice? It sure works with the OTHER 'C'
compiler. And it's standard code. The code you gave shouldn't even
compile – the declaration was wrong.
BTW – I'd STILL like to know how I can get an upgrade for the Lattice
compiler I bought eons ago that has forty-eleven code generation bugs
without paying what amounts to a full new purchase price.
Jerry.