home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 5.ddi / MWHC.005 / Q3 < prev    next >
Encoding:
Text File  |  1992-12-09  |  544 b   |  15 lines

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