Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.5 KiB

  1. #ifndef IComp_hxx
  2. #define IComp_hxx 1
  3. //--- Additional includes ----------------------------------------------
  4. #include "types.h"
  5. #include "array.hxx"
  6. #include "windows.h"
  7. //--- Class, Enum, Struct and Union Declarations -----------------------
  8. class CCompareInterface
  9. {
  10. public:
  11. CCompareInterface(char* pCurBuf, char* pRefBuf, HANDLE fileDiff, char* szIntName,
  12. BLOCK_TYPE blockType, char* pszMethodAttr);
  13. ~CCompareInterface();
  14. void FindAdditionsAndChanges();
  15. void FindRemovals();
  16. private:
  17. char* _pCurBuf;
  18. char* _pRefBuf;
  19. HANDLE _fileDiff;
  20. char* _pszIntName;
  21. CAutoArray<LINEINFO>* _pCurList;
  22. CAutoArray<LINEINFO>* _pRefList;
  23. bool _bFirstTime;
  24. BLOCK_TYPE _blockType;
  25. char * _pszMethodAttr;
  26. char _szLogBuff[128];
  27. void CreateLineIndex( CAutoArray<LINEINFO>* pList, char* pBuf );
  28. void CompareMethodAttributes( LINEINFO* pRef, LINEINFO* pCur );
  29. void CompareMethodParameters( LINEINFO* pRef, LINEINFO* pCur );
  30. BOOL IsAttributeBreaker( char * pszAttrList, char * pszAttr, unsigned long ulAttrLen );
  31. void TokenizeParameters( char* pBuf, unsigned long nCnt, CAutoArray<PARAMINFO>* pList );
  32. void EnsureTitle( BOOL bAddition );
  33. void WriteAttrChangeString( char* pBuf, unsigned long ulAttrStart, unsigned long ulAttrLength, char* szChangeType );
  34. };
  35. #endif // IComp_Hxx