Does "complex xxx" work?

Scott Robert Ladd coyote@coyotegulch.com
Sat Jun 21 19:55:00 GMT 2003


H. J. Lu wrote:
 > c_common_nodes_and_builtins calls
 >
 >  (*lang_hooks.decls.pushdecl) (build_decl (TYPE_DECL,
 >                                get_identifier ("complex float"),
 >                                complex_float_type_node));
[snip]
 >
 > What are they used for? I still can't use any of those in C++.

C99 defines a new keyword, _Complex, for creating various complex number 
types; by including <complex.h>, a programmer can used the synonym 
"complex" for "_Complex".

I've used these types in gcc-compiled C99 programs, so they must work.

-- 
Scott Robert Ladd
Coyote Gulch Productions (http://www.coyotegulch.com)



More information about the Gcc mailing list