コード例 #1
0
ファイル: dfasearch.c プロジェクト: adityavs/grep
/* For now, the sole dfawarn-eliciting condition (use of a regexp
   like '[:lower:]') is unequivocally an error, so treat it as such,
   when possible.  */
void
dfawarn (char const *mesg)
{
  static enum { NONE = 0, POSIX, GNU } mode;
  if (mode == NONE)
    mode = (getenv ("POSIXLY_CORRECT") ? POSIX : GNU);
  if (mode == GNU)
    dfaerror (mesg);
}
コード例 #2
0
ファイル: dfasearch.c プロジェクト: mihaicarabas/dragonfly
/* For now, the sole dfawarn-eliciting condition (use of a regexp
   like '[:lower:]') is unequivocally an error, so treat it as such,
   when possible.  */
void
dfawarn (char const *mesg)
{
  static enum { DW_NONE = 0, DW_POSIX, DW_GNU } mode;
  if (mode == DW_NONE)
    mode = (getenv ("POSIXLY_CORRECT") ? DW_POSIX : DW_GNU);
  if (mode == DW_GNU)
    dfaerror (mesg);
}
コード例 #3
0
ファイル: regexp.c プロジェクト: agordon/sed
void
dfawarn (char const *mesg)
{
  if (!getenv ("POSIXLY_CORRECT"))
    dfaerror (mesg);
}