Don't use memmem in the lexer
commite3d251e940cec5a51602fa371d9b5175e825ce5f
authorChristopher Dykes <cdykes@fb.com>
Wed, 23 Mar 2016 21:37:49 +0000 (23 14:37 -0700)
committerHhvm Bot <hhvm-bot-bot@fb.com>
Wed, 23 Mar 2016 22:00:47 +0000 (23 15:00 -0700)
tree2e9ba03bcd6584efd240d233c6c1fcc1b5d449b1
parent3db945ce03ef27f78289cfd9c1f2b706216b212e
Don't use memmem in the lexer

Summary: `memmem` was only used in two places in the lexer, and it isn't worth maintaining a portability implementation for it, so inline an implementation for these 2 character strings.

Reviewed By: markw65

Differential Revision: D3053498

fb-gh-sync-id: 448757ca9979cdf3483a684fd03e026f9b7e15ef
shipit-source-id: 448757ca9979cdf3483a684fd03e026f9b7e15ef
hphp/parser/hphp.ll
hphp/parser/lex.yy.cpp