2004-07-25 Bernardo Innocenti <bernie@develer.com>
+ * c-common.c (c_staticp): Last episode of the staticp saga.
+
+2004-07-25 Bernardo Innocenti <bernie@develer.com>
+
* c-common.h (c_staticp): Change return type from int to bool.
* tree.c (staticp): Likewise.
* langhooks.h (staticp): Likewise.
/* Hook used by staticp to handle language-specific tree codes. */
-int
+bool
c_staticp (tree exp)
{
if (TREE_CODE (exp) == COMPOUND_LITERAL_EXPR
&& TREE_STATIC (COMPOUND_LITERAL_EXPR_DECL (exp)))
- return 1;
- return 0;
+ return true;
+ return false;
}
\f