home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c220 / 4.ddi / LIB / SRC / SORTS.PF < prev    next >
Encoding:
Text File  |  1990-12-16  |  466 b   |  13 lines

  1. pragma C_include('implement.pf');
  2. package Sorts;
  3.    pragma Routine_aliasing_convention(Implement.RTE_aliasing);
  4.    { Sort items L..H.  Less_than returns whether item I is less than item    }
  5.    { J.  Swap swaps items I and J.  After the sort,            }
  6.    {    item I <= item J    for L <= I < J <= H.            }
  7.  
  8.    procedure Qsort(L,H: Unsigned;
  9.                 function Less_than(I,J: Unsigned): Boolean;
  10.                procedure Swap(I,J: Unsigned));   external;
  11.  
  12.    end;
  13.