boinc/samples/wrapper/regmagic.h

36 lines
1.3 KiB
C

/*
Copyright (c) 1986, 1993, 1995 by University of Toronto.
Written by Henry Spencer. Not derived from licensed software.
Permission is granted to anyone to use this software for any
purpose on any computer system, and to redistribute it in any way,
subject to the following restrictions:
1. The author is not responsible for the consequences of use of
this software, no matter how awful, even if they arise
from defects in it.
2. The origin of this software must not be misrepresented, either
by explicit claim or by omission.
3. Altered versions must be plainly marked as such, and must not
be misrepresented (by explicit claim or omission) as being
the original software.
*** THIS IS AN ALTERED VERSION. It was altered by Benoit
*** Goudreault-Emond, bge@videotron.ca, on 2002/01/03, to add \< and
*** \> for word matching, as well as pseudo character classes. It
*** also handles wide characters quite well now. Also, the API was
*** changed so an arbitrary number of parenthesized expressions can
*** be used (and so were the internals of the regexp engine).
***
*** In general, the new API should be more re-entrant.
4. This notice must not be removed or altered.
*/
/*
* The first byte of the regexp internal "program" is actually this magic
* number; the start node begins in the second byte.
*/
#define MAGIC 0234