* lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 17 Mar 2006 07:26:42 +0000 (07:26 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 17 Mar 2006 07:26:42 +0000 (07:26 +0000)
commitc0174c2f816fce8bf8a3d16c633e5d46f75cc4c2
treea395cb24caf95e81eceda520345c41d1ad950012
parent56a074b53a521e60033888881c251acfa8d29b1a
* lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
Typedef to long int, not to off_, as POSIX will likely change
in that direction.

* m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
no longer needs it.  Instead, check that regoff_t is as least
as wide as ptrdiff_t.

Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
so that our regex.h stays compatible with the installed regex.
This is helpful for installers who configure --without-included-regex.
Problem reported by Emanuele Giaquinta.
lib/ChangeLog
lib/regex.h
m4/ChangeLog
m4/regex.m4