/* Issue a diagnostic message from a plugin. */ static enum ld_plugin_status message (int level, const char *format, ...) { va_list args; va_start (args, format); switch (level) { case LDPL_INFO: vfinfo (stdout, format, args, FALSE); putchar ('\n'); break; case LDPL_WARNING: vfinfo (stdout, format, args, TRUE); putchar ('\n'); break; case LDPL_FATAL: case LDPL_ERROR: default: { char *newfmt = ACONCAT ((level == LDPL_FATAL ? "%P%F: " : "%P%X: ", format, "\n", (const char *) NULL)); fflush (stdout); vfinfo (stderr, newfmt, args, TRUE); fflush (stderr); } break; } va_end (args); return LDPS_OK; }
static bool is_group (string_set *builtins, const char *name, const char *const *suffixes) { for (unsigned int i = 0; suffixes[i]; ++i) if (!builtins->contains (ACONCAT (("BUILT_IN_", name, suffixes[i], NULL)))) return false; return true; }
void *test(void) { int *i; return GET_IDENTIFIER (ACONCAT (("foo"))); }