Skip to content

Commit

Permalink
Support WATCOM regexec.
Browse files Browse the repository at this point in the history
Add install-strip target.
  • Loading branch information
gwsw committed Aug 30, 1999
1 parent 932c691 commit 4dcca98
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ install: all ${srcdir}/less.nro ${srcdir}/lesskey.nro installdirs
${INSTALL_DATA} ${srcdir}/less.nro ${mandir}/man${manext}/${manprefix}less.${manext}
${INSTALL_DATA} ${srcdir}/lesskey.nro ${mandir}/man${manext}/${manprefix}lesskey.${manext}

install-strip:
${MAKE} INSTALL_PROGRAM='${INSTALL_PROGRAM} -s' install

installdirs: mkinstalldirs
${srcdir}/mkinstalldirs ${bindir} ${mandir}/man${manext}

Expand Down
5 changes: 5 additions & 0 deletions search.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,13 @@ match_pattern(line, sp, ep, notbol)
matched = !regexec(regpattern, line, 1, &rm, flags);
if (!matched)
return (0);
#ifndef __WATCOMC__
*sp = line + rm.rm_so;
*ep = line + rm.rm_eo;
#else
*sp = rm.rm_sp;
*ep = rm.rm_ep;
#endif
}
#endif
#if HAVE_RE_COMP
Expand Down

0 comments on commit 4dcca98

Please sign in to comment.