REG_STARTEND macro, it doesn't work as expected. A simple test case is:
printf '\0\n\0\n' | nbsed /a/d
This test does not yet work as expected, but at least it doesn't cause
segmentation faults anymore. Handling of '\0' bytes must be improved.
and getprogname.
We're using libnbcompat, so we know they exist. (If we were to check again,
then we'd mess up definitions set in the nbcompat headers.)
jlam's last change, since we use libnbcompat. (If we left these checks in,
configure would test for them, find them and set HAVE_GETPROGNAME, subsequently
breaking 'getprogname', as nbcompat.h wouldn't work since HAVE_GETPROGNAME
is then defined.)
Changes from the previous version include:
- Adding a sed2nbcompat script to ease importing from src HEAD into
pkgsrc.
- Make this package depend on libnbcompat since it needs a regex
implementation and it's also a bootstrap package.
* s/xmalloc/xrealloc/ so that large (greater than _POSIX2_LINE_MAX*2-1)
multi line text can be added.
- test for __inline/inline, de-mangle the corresponding hack in
process.c to reduce the diff to NetBSD-current source
- move some autoconf-y bits to configure.ac
fixes build on Solaris with SunPro.
The 'inline' keyword is a nonstandard extension of GCC, AFAIK.
MipsPro does not like it, so remove it.
Add fgetln prototype ifndef HAVE_FGETLN.
This makes this compile on Irix with the MipsPro Compiler as well as gcc.