home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 229.lha / Calc_v1.01 / sources / CalcValidate.def < prev    next >
Text File  |  1989-04-04  |  690b  |  32 lines

  1. DEFINITION MODULE CalcValidate;
  2.  
  3.  
  4. FROM SYSTEM IMPORT LONGWORD, STRPTR;
  5.  
  6.  
  7. (* Validate operations taking into account the current bit size and the
  8.  * current setting for signed/unsigned. If they fail the test, then return
  9.  * FALSE and prepare a message string to display to the user.
  10.  *)
  11.  
  12.  
  13. VAR
  14.   (* When an error occurs, this will point to an error string that can be
  15.    * displayed to the user.
  16.    *)
  17.   errorString : STRPTR;
  18.  
  19.  
  20. PROCEDURE Addition(val1,val2:LONGWORD): BOOLEAN;
  21.  
  22. PROCEDURE Subtraction(val1,val2:LONGWORD): BOOLEAN;
  23. (* val1-val2 *)
  24.  
  25. PROCEDURE Multiplication(val1,val2:LONGWORD): BOOLEAN;
  26.  
  27. PROCEDURE Division(val1,val2:LONGWORD): BOOLEAN;
  28. (* val1 DIV val2 *)
  29.  
  30.  
  31. END CalcValidate.
  32.