SDLUtils.def 432 B

12345678910111213141516
  1. DEFINITION MODULE SDLUtils ;
  2. (*
  3. m2SDL - small pure-Modula-2 helpers over the FOR "C" bindings.
  4. Copies NUL-terminated C strings (ADDRESS) into Modula-2 CHAR
  5. arrays (NUL-terminated, truncated to the destination length).
  6. *)
  7. FROM SYSTEM IMPORT ADDRESS;
  8. EXPORT UNQUALIFIED CStrToM2, GetErrorString;
  9. PROCEDURE CStrToM2 (src: ADDRESS; VAR dst: ARRAY OF CHAR);
  10. PROCEDURE GetErrorString (VAR buf: ARRAY OF CHAR);
  11. END SDLUtils.