home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 375.lha / IncrStorageManager_v1.0 / Storage.def < prev    next >
Text File  |  1990-05-02  |  1KB  |  44 lines

  1. DEFINITION MODULE Storage;
  2.  
  3. (* Product: Incremental Storage Manager
  4.  
  5.    Version: 1.0
  6.  
  7.    Author:
  8.         Daniel B. Hankins
  9.         143 Montgomery Street
  10.         Poughkeepsie, NY 12601
  11.         dan-hankins@cup.portal.com
  12.  
  13.    Creation Date: 1989
  14.  
  15.    Release  Date: November 21, 1989
  16.  
  17.    Notice of Intellectual Property:
  18.         This material is *NOT COPYRIGHTED*.  By this notice, I hereby place
  19.    this program and all its parts in the public domain, under the definitions
  20.    and restrictions of United States law.
  21.  
  22.    History of Revisions:
  23.         None yet.
  24. *)
  25.  
  26. FROM SYSTEM IMPORT ADDRESS;
  27.  
  28. PROCEDURE ALLOCATE(VAR addr: ADDRESS; amount: LONGCARD);
  29. (* allocate storage from the operating system.
  30.  
  31.    addr: returns where the memory portion was allocated, word aligned.
  32.          returns NIL if no block of the requisite size could be found.
  33.    amount: the number of bytes to allocate, will be a word multiple.
  34. *)
  35.  
  36. PROCEDURE DEALLOCATE(VAR addr: ADDRESS; amount: LONGCARD);
  37. (* return storage to the operating system.
  38.  
  39.    addr: the portion of memory returned by ALLOCATE.
  40.    amount: the size of the block given to ALLOCATE.
  41. *)
  42.  
  43. END Storage.
  44.