Re^2: ANSI C-compliant compiler (info req)
Niels J|rgen Kruse
njk at freja.diku.dk
Fri May 19 06:43:24 AEST 1989
giguere at aries5.uucp (Eric Giguere) writes:
(...)
>As I see it the real headache in the next few years will be getting people
>to convert to ANSI-style compilers. I cringe whenever I'm forced to use
>`cc'... I miss the prototypes and the new-style declarations. I think it's
Macro frontends can do all the typecoercions of arguments that
you need.
They can also map nice long surface names to short cryptic link
names, should you need that.
I tend to use a macro frontend for malloc:
#define new(req,type) ((type *) malloc ((unsigned)(req) * sizeof (type)))
...
int *table;
struct whatnot *foo;
...
table = new (117,int);
...
foo = new (1,struct whatnot);
...
--
Niels J|rgen Kruse
Email njk at diku.dk
Mail Tustrupvej 7, 2 tv, 2720 Vanlose, Denmark
More information about the Comp.lang.c
mailing list