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.

46 lines
838 B

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. DIFF.INL
  5. History:
  6. --*/
  7. inline
  8. CDifference::~CDifference()
  9. {
  10. }
  11. inline
  12. CDelta::~CDelta()
  13. {
  14. }
  15. inline
  16. CDiffAlgorithm::~CDiffAlgorithm()
  17. {
  18. }
  19. //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  20. // Calculates the delta following the given algorithm and then traverses
  21. // the delta and calls back the delta visitor for each difference in the delta.
  22. //------------------------------------------------------------------------------
  23. inline
  24. void
  25. CDiffEngine::Diff(
  26. CDiffAlgorithm & diffalg,
  27. const wchar_t * seq1, // [in] old sequence
  28. const wchar_t * seq2, // [in] new sequence
  29. const CDeltaVisitor & dv)
  30. {
  31. CDelta * d;
  32. d = diffalg.CalculateDelta(seq1, seq2);
  33. d->Traverse(dv);
  34. delete d;
  35. }