1N/A/*********************************************************************** 1N/A* This software is part of the ast package * 1N/A* Copyright (c) 1985-2011 AT&T Intellectual Property * 1N/A* and is licensed under the * 1N/A* Common Public License, Version 1.0 * 1N/A* by AT&T Intellectual Property * 1N/A* A copy of the License is available at * 1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 1N/A* Information and Software Systems Research * 1N/A* Glenn Fowler <gsf@research.att.com> * 1N/A* David Korn <dgk@research.att.com> * 1N/A* Phong Vo <kpv@research.att.com> * 1N/A***********************************************************************/ 1N/A * posix regex state and alloc 1N/A * state shared by all threads 1N/A * the "funny" things get special treatment at ends of BRE 1N/A * BRE 0:normal 1:escaped 2:escaped-char-class 1N/A * ERE 3:normal 4:escaped 5:escaped-char-class 1N/A * ARE 6:normal 7:escaped 8:escaped-char-class 1N/A * SRE 9:normal 10:escaped 11:escaped-char-class 1N/A * KRE 12:normal 13:escaped 14:escaped-char-class 1N/A * interface compatible with vmresize() 1N/A * malloc(n) alloc(0,n) 1N/A * realloc(p,n) alloc(p,n) 1N/A * free(p) alloc(p,0)