diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-03-22 22:21:54 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-03-22 22:21:54 +0000 |
commit | c3259e746e9a16eaab56dc090af25ee8b1dccf28 (patch) | |
tree | 51228d07de1d2aacc995870b15e5066cf6944355 /regcomp.c | |
parent | a1ad65530dc2cbd7005009977b9830f483720573 (diff) | |
download | perl-c3259e746e9a16eaab56dc090af25ee8b1dccf28.tar.gz |
Can use memEQ instead of strnEQ in CHECK_WORD()
p4raw-id: //depot/perl@30700
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4956,7 +4956,7 @@ S_reg_scan_name(pTHX_ RExC_state_t *pRExC_state, U32 flags) { /* this idea is borrowed from STR_WITH_LEN in handy.h */ #define CHECK_WORD(s,v,l) \ - (((sizeof(s)-1)==(l)) && (strnEQ(start_verb, (s ""), (sizeof(s)-1)))) + (((sizeof(s)-1)==(l)) && (memEQ(start_verb, (s ""), (sizeof(s)-1)))) STATIC regnode * S_reg(pTHX_ RExC_state_t *pRExC_state, I32 paren, I32 *flagp,U32 depth) |