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.

14 lines
328 B

  1. # This strips out serial numbers and ref-count numbers from tree-dumps
  2. # to make them comparable with windiff.
  3. #
  4. # Oh yeah, you need to use perl.
  5. while( <> )
  6. {
  7. s/\[P\d+\]/[P]/g;
  8. s/\[E\d+ N\d+]/[E N]/g;
  9. s/ERefs=-?\d+/ERefs=/g;
  10. s/EAllRefs=-?\d+/EAllRefs=/g;
  11. s/NRefs=.*?,/NRefs=,/g;
  12. print;
  13. }