Changeset 704
- Timestamp:
- 02/24/10 10:01:00 (5 months ago)
- Location:
- trunk/data/_apt7
- Files:
-
- 1 added
- 1 moved
-
tornado.diff (moved) (moved from trunk/data/_apt7/vindication.diff) (3 diffs, 1 prop)
-
unique.diff (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/_apt7/tornado.diff
r703 r704 102 102 inline int name(const char *A,const char *AEnd,const char *B) {return func(A,AEnd,B,B+strlen(B));}; \ 103 103 inline int name(const string& A,const char *B) {return func(A.c_str(),A.c_str()+A.length(),B,B+strlen(B));}; \ 104 @@ -77,6 +77,7 @@ 105 inline int name(const string& A,const char *B,const char *BEnd) {return func(A.c_str(),A.c_str()+A.length(),B,BEnd);}; 106 107 #define APT_MKSTRCMP2(name,func) \ 108 +inline int name(const srkString &A,const char *B) {return func(A.Start,A.Start+A.Size,B,B+strlen(B));}; \ 109 inline int name(const char *A,const char *AEnd,const char *B) {return func(A,AEnd,B,B+strlen(B));}; \ 110 inline int name(const string& A,const char *B) {return func(A.begin(),A.end(),B,B+strlen(B));}; \ 111 inline int name(const string& A,const string& B) {return func(A.begin(),A.end(),B.begin(),B.end());}; \ 104 112 diff -Nru apt-0.7.25.3/apt-pkg/deb/deblistparser.cc apt-0.7.25.3+iPhone/apt-pkg/deb/deblistparser.cc 105 113 --- apt-0.7.25.3/apt-pkg/deb/deblistparser.cc 2010-02-24 08:53:52.000000000 +0000 … … 638 646 --- apt-0.7.25.3/apt-pkg/srkstring.h 1970-01-01 00:00:00.000000000 +0000 639 647 +++ apt-0.7.25.3+iPhone/apt-pkg/srkstring.h 2010-02-24 08:37:27.000000000 +0000 640 @@ -0,0 +1, 64@@648 @@ -0,0 +1,59 @@ 641 649 +// -*- mode: cpp; mode: fold -*- 642 650 +// Description /*{{{*/ … … 692 700 +}; 693 701 + 694 +int stringcasecmp(const char *lhsb, const char *lhse, const char *rhs);695 +inline int stringcasecmp(const srkString &lhs, const char *rhs) {696 + return stringcasecmp(lhs.Start, lhs.Start + lhs.Size, rhs);697 +}698 +699 702 +int stringcmp(const std::string &lhs, const char *rhsb, const char *rhse); 700 703 +inline bool operator ==(const std::string &lhs, const srkString &rhs) {
