コード例 #1
0
ファイル: c-errors.c プロジェクト: AhmadTux/DragonFlyBSD
void
pedwarn_c90 (const char *gmsgid, ...)
{
  diagnostic_info diagnostic;
  va_list ap;

  va_start (ap, gmsgid);
  diagnostic_set_info (&diagnostic, gmsgid, &ap, input_location,
                       flag_isoc99 ? DK_WARNING : pedantic_error_kind ());
  report_diagnostic (&diagnostic);
  va_end (ap);
}
コード例 #2
0
ファイル: c-errors.c プロジェクト: Akheon23/nvopencc
void
pedwarn_c99 VPARAMS ((const char *msgid, ...))
{
  diagnostic_info diagnostic;
#ifndef SGI_MONGOOSE
  VA_OPEN (ap, msgid);
  VA_FIXEDARG (ap, const char *, msgid);
#else
  va_list ap;

  VA_START (ap, msgid);
#endif /* SGI_MONGOOSE */

  diagnostic_set_info (&diagnostic, msgid, &ap, input_filename, lineno,
                       flag_isoc99 ? pedantic_error_kind () : DK_WARNING);
  report_diagnostic (&diagnostic);
#ifndef SGI_MONGOOSE
  VA_CLOSE (ap);
#else
  va_end (ap);
#endif /* SGI_MONGOOSE */
}

/* Issue an ISO C90 pedantic warning MSGID.  This function is supposed to
   be used for matters that are allowed in ISO C99 but not supported in
   ISO C90, thus we explicitly don't pedwarn when C99 is specified.
   (There is no flag_c90.)  */

void
pedwarn_c90 (const char *msgid, ...)