clash.red 716 B

12345678910111213141516171819202122232425262728293031
  1. % Identify clashes between function definitions...
  2. symbolic;
  3. load!-selected!-source();
  4. linelength 100;
  5. symbolic procedure remdups z;
  6. if null z then z
  7. else if member(car z, cdr z) then remdups cdr z
  8. else car z . remdups cdr z;
  9. << terpri();
  10. for each n in oblist() do <<
  11. z := get(n, 'load!-source);
  12. z := remdups z;
  13. % I know that fmprint and tmprint are near duplicates and so I will not
  14. % mention clashes that only involve exactly those two.
  15. if length z > 1 and
  16. not (z = '("fmprint" "tmprint") or
  17. z = '("tmprint" "fmprint")) then <<
  18. prin n; ttab 30; princ " defined in ";
  19. for each z1 in z do <<
  20. princ " "; princ z1>>;
  21. terpri() >> >> >>;
  22. quit;