(file) Return to Buffer.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/Buffer.h between version 1.1.2.1 and 1.1.2.2

version 1.1.2.1, 2005/09/29 16:13:44 version 1.1.2.2, 2005/09/30 20:35:55
Line 238 
Line 238 
     return memcmp(x.getData(), y.getData(), x.size()) == 0;     return memcmp(x.getData(), y.getData(), x.size()) == 0;
 } }
  
   struct Lit
   {
       Lit(const char* s, size_t n) : str(s), size(n) { }
       const char* str;
       const size_t size;
   };
   
   #define LIT(STR) Lit(STR, sizeof(STR))
   
   inline Buffer& operator<<(Buffer& out, const Lit& x)
   {
       out.append(x.str, x.size-1);
       return out;
   }
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  
 #endif /* Pegasus_Buffer_h */ #endif /* Pegasus_Buffer_h */


Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2