home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Editor / DVD!FX17.LHA / FrexxEd / fpl / SimpleDiff.FPL < prev    next >
Encoding:
Text File  |  1994-11-18  |  458 b   |  27 lines

  1. export int SimpleDiff()
  2. {
  3.   int inputid=GetEntryID();        // Current entry
  4.   int nextview=NextView();
  5.   string line;
  6.   int diff;
  7.  
  8.   Visible(0);
  9.   do {
  10.     CurrentBuffer(inputid);
  11.     if (!CursorDown()) {
  12.       return;
  13.     }
  14.     line=GetLine();
  15.     CurrentBuffer(nextview);
  16.     CursorDown();
  17.     diff=strcmp(GetLine(), line);
  18.   } while (!diff);
  19.   Visible(1);
  20.   if (diff)
  21.     InverseLine();
  22.  
  23.   CurrentBuffer(inputid);
  24. }
  25.  
  26. AssignKey("SimpleDiff();", "Alt '0x2e'");
  27.