patch-modelgen_ap_h 607 B

123456789101112131415
  1. $OpenBSD: patch-modelgen_ap_h,v 1.1 2017/05/01 19:29:26 espie Exp $
  2. Index: modelgen/ap.h
  3. --- modelgen/ap.h.orig
  4. +++ modelgen/ap.h
  5. @@ -103,7 +103,8 @@ class CS { (public)
  6. bool match1(char c)const{return (peek()==c);}
  7. bool match1(const std::string& c)const
  8. {return ns_more() && strchr(c.c_str(),peek());}
  9. - int find1(const std::string& c)const
  10. + std::string::size_type
  11. + find1(const std::string& c)const
  12. {return ((ns_more()) ? c.find_first_of(peek()) : std::string::npos);}
  13. bool is_xdigit()const
  14. {untested(); return (match1("0123456789abcdefABCDEF"));}