Add POSIX implementation of regex.

This also includes documentation of the regex engine in posixregex.c,
because I couldn't think of anywhere better to put it.
This commit is contained in:
Sean Hunt
2015-04-09 10:38:15 -04:00
parent 302ad5025f
commit c7578b7c34
3 changed files with 99 additions and 4 deletions

View File

@@ -1,11 +1,12 @@
/* NetHack 3.5 cppregex.cpp $NHDT-Date$ $NHDT-Branch$:$NHDT-Revision$ */
/* NetHack 3.5 cppregex.cpp $Date: 2009/05/06 10:44:33 $ $Revision: 1.4 $ */
/* Copyright (c) Sean Hunt 2015. */
/* NetHack may be freely redistributed. See license for details. */
#include <regex>
#include <memory>
/* nhregex interface documented in sys/share/posixregex.c */
extern "C" {
#include <hack.h>