Mercurial > hg > octave-nkf > gnulib-hg
changeset 1383:a7627de5ef66
(PTR_TO_OFFSET): Alternate definition if not `emacs'.
author | Richard Stallman <rms@gnu.org> |
---|---|
date | Tue, 09 Jun 1998 20:12:44 +0000 |
parents | 894acce816ca |
children | 7b30d456ef71 |
files | regex.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/regex.c +++ b/regex.c @@ -27,11 +27,15 @@ #undef _GNU_SOURCE #define _GNU_SOURCE +#ifdef emacs /* Converts the pointer to the char to BEG-based offset from the start. */ #define PTR_TO_OFFSET(d) \ POS_AS_IN_BUFFER (MATCHING_IN_FIRST_STRING \ ? (d) - string1 : (d) - (string2 - size1)) #define POS_AS_IN_BUFFER(p) ((p) + (NILP (re_match_object) || BUFFERP (re_match_object))) +#else +#define PTR_TO_OFFSET(d) 0 +#endif #ifdef HAVE_CONFIG_H #include <config.h>