undefining a typedef

Andrew P. Mullhaupt amull at Morgan.COM
Mon Aug 13 05:06:44 AEST 1990


In article <1990Aug11.230818.2782 at zoo.toronto.edu>, henry at zoo.toronto.edu (Henry Spencer) writes:
> ...  Typedef is not undoable.  For this reason, typedefs have to
> be much more carefully coordinated than macros.

Speaking of typedefs and macros -- is there any way to get the
functionality of the GNU C extension "typeof" in ANSI or UNIX
style C? I would settle for being able to declare a variable x
as having the same type as variable y where, due to the fact that
the code is machine generated, it isn't simple to say what type
that variable y has.

Later,
Andrew Mullhaupt



More information about the Comp.lang.c mailing list