showcase15lib.def 525 B

123456789101112131415161718
  1. DEFINITION MODULE Showcase15Lib;
  2. (* Showcase-15 helper: a small record + string/IOChan utilities,
  3. written as a classic DEFINITION/IMPLEMENTATION pair so the strict
  4. 235 signature checks apply. *)
  5. TYPE
  6. Point = RECORD
  7. x, y : INTEGER;
  8. END;
  9. PROCEDURE InitPoint (VAR p : Point; x, y : INTEGER);
  10. PROCEDURE SumPoint (p : Point) : INTEGER;
  11. PROCEDURE AppendInt (VAR s : ARRAY OF CHAR; n : INTEGER);
  12. (* Appends the decimal form of n to the NUL-terminated string s,
  13. truncating to s's capacity. *)
  14. END Showcase15Lib.