| 30 | } |
| 31 | |
| 32 | boolean |
| 33 | regex_compile(const char *s, struct nhregex *re) |
| 34 | { |
| 35 | if (!re) |
| 36 | return FALSE; |
| 37 | if (re->pat) |
| 38 | free((genericptr_t) re->pat); |
| 39 | |
| 40 | re->pat = dupstr(s); |
| 41 | return TRUE; |
| 42 | } |
| 43 | |
| 44 | char * |
| 45 | regex_error_desc(struct nhregex *re UNUSED, char *errbuf) |