/* * This file is part of the Cforall project * * $Id: LinkageSpec.h,v 1.3 2003/01/29 14:55:08 rcbilson Exp $ * */ #ifndef LINKAGESPEC_H #define LINKAGESPEC_H #include struct LinkageSpec { enum Type { Intrinsic, // C built-in defined in prelude Cforall, // ordinary C, // not overloadable, not mangled AutoGen, // built by translator (struct assignment) Compiler // gcc internal }; static Type fromString( const std::string& ); static std::string toString( Type ); static bool isDecoratable( Type ); static bool isGeneratable( Type ); static bool isOverloadable( Type ); static bool isBuiltin( Type ); }; #endif /* #ifndef LINKAGESPEC_H */