/* 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); }
/* 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); }
void dfawarn (char const *mesg) { if (!getenv ("POSIXLY_CORRECT")) dfaerror (mesg); }