Esempio n. 1
0
/* 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);
}
Esempio n. 2
0
/* 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);
}
Esempio n. 3
0
File: regexp.c Progetto: agordon/sed
void
dfawarn (char const *mesg)
{
  if (!getenv ("POSIXLY_CORRECT"))
    dfaerror (mesg);
}