1433d6423SLionel Sambuc #include <stdio.h> 2433d6423SLionel Sambuc #include "regexp.h" 3433d6423SLionel Sambuc #include "proto.h" 4433d6423SLionel Sambuc regerror(char * s)5*d9494baaSJacob Adamsvoid regerror(char *s) { 6433d6423SLionel Sambuc #ifndef DOSPORT 7433d6423SLionel Sambuc #ifdef ERRAVAIL 8433d6423SLionel Sambuc error("regexp: %s", s); 9433d6423SLionel Sambuc #else 10433d6423SLionel Sambuc fprintf(stderr, "regexp(3): %s", s); 11433d6423SLionel Sambuc exit(1); 12433d6423SLionel Sambuc #endif 13433d6423SLionel Sambuc /* NOTREACHED */ 14433d6423SLionel Sambuc #endif /* ifdef'd out for less's sake when reporting error inside less */ 15433d6423SLionel Sambuc } 16