/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/regex.c,v 1.2 1987/07/15 22:10:56 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/regex.c,v 1.3 1987/07/21 04:33:17 cph Rel $
Copyright (c) 1987 Massachusetts Institute of Technology
}
\f
#define RE_MATCH_WORD_BOUND(word_bound_p) \
- { \
- if ((match_pc == gap_end) \
- ? (word_bound_p \
- (((gap_start != (buffer -> text_start)) && \
- (WORD_CONSTITUENT_P (TRANSLATE_CHAR (gap_start [-1])))), \
- ((gap_end != (buffer -> text_end)) && \
- (WORD_CONSTITUENT_P (TRANSLATE_CHAR (gap_end [0])))))) \
- : (word_bound_p \
- (((match_pc != (buffer -> text_start)) && \
- (WORD_CONSTITUENT_P (TRANSLATE_CHAR (match_pc [-1])))), \
- ((match_pc != (buffer -> text_end)) && \
- (WORD_CONSTITUENT_P (TRANSLATE_CHAR (match_pc [0]))))))) \
- goto re_match_loop; \
- goto re_match_fail; \
- }
+ if ((match_pc == gap_end) \
+ ? (word_bound_p (((gap_start != (buffer -> text_start)) && \
+ (WORD_CONSTITUENT_P (TRANSLATE_CHAR (gap_start [-1])) \
+ )), \
+ ((gap_end != (buffer -> text_end)) && \
+ (WORD_CONSTITUENT_P (TRANSLATE_CHAR (gap_end [0]))) \
+ ))) \
+ : (word_bound_p (((match_pc != (buffer -> text_start)) && \
+ (WORD_CONSTITUENT_P (TRANSLATE_CHAR (match_pc [-1]))) \
+ ), \
+ ((match_pc != (buffer -> text_end)) && \
+ (WORD_CONSTITUENT_P (TRANSLATE_CHAR (match_pc [0]))) \
+ )))) \
+ goto re_match_loop; \
+ goto re_match_fail
case regexpcode_word_bound:
#define WORD_BOUND_P(left_p, right_p) ((left_p) != (right_p))
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/rgxprim.c,v 1.2 1987/07/15 22:09:57 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/rgxprim.c,v 1.3 1987/07/21 04:32:56 cph Rel $
Copyright (c) 1987 Massachusetts Institute of Technology
for (i = 0; (i < RE_NREGS); i += 1) \
{ \
index = ((registers . start) [i]); \
- User_Vector_Set \
- (vector, \
- i, \
- ((index == -1) \
- ? NIL \
- : (C_Integer_To_Scheme_Integer (index)))); \
+ User_Vector_Set (vector, \
+ i, \
+ ((index == -1) \
+ ? NIL \
+ : (C_Integer_To_Scheme_Integer (index)))); \
index = ((registers . end) [i]); \
- User_Vector_Set \
- (vector, \
- (i + RE_NREGS), \
- ((index == -1) \
- ? NIL \
- : (C_Integer_To_Scheme_Integer (index)))); \
+ User_Vector_Set (vector, \
+ (i + RE_NREGS), \
+ ((index == -1) \
+ ? NIL \
+ : (C_Integer_To_Scheme_Integer (index)))); \
} \
} \
return (C_Integer_To_Scheme_Integer (result)); \