PRINTFBA.DEF 2.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. (* Release 3.10 *)
  2. (*-------------------------------------------------------------------------*
  3. * *
  4. * PRINTFBA.DEF - COMMS Toolkit formatted i/o support *
  5. * *
  6. * COPYRIGHT (C) 1988..1992 Clarion Software Corporation. *
  7. * All Rights Reserved *
  8. * *
  9. *--------------------------------------------------------------------------*)
  10. DEFINITION MODULE PrintFBase;
  11. VAR
  12. Data : ADDRESS; (* A ptr to the value to be converted *)
  13. RightJustify, (* right justify if FieldWidth > 0, default FALSE *)
  14. AlwaysSigned : BOOLEAN; (* always output a sign, even when positive *)
  15. DataSize, (* the size in bytes of the data pointed to by Data *)
  16. FieldWidth, (* the requested total width of a field to be output *)
  17. Places : CARDINAL; (* the requested number of decimal places *)
  18. PadChar, (* the char to use for padding *)
  19. TypeChar, (* the type character used in the field specification *)
  20. Positive : CHAR; (* the character to use as the sign when positive, eg *)
  21. (* usually '+' or ' '. This char is not used when *)
  22. (* AlwaysSigned=FALSE *)
  23. DestString : ARRAY[0..255] OF CHAR;
  24. (* the result of all conversions should be placed in *)
  25. (* this string. *)
  26. PROCEDURE DoPrintF(VAR pat:ARRAY OF CHAR;VAR arg1,arg2,arg3,arg4,arg5:ARRAY OF BYTE;VAR dest:ARRAY OF CHAR;NumArgs:CARDINAL);
  27. PROCEDURE NewConversion(TypeChar:CHAR; ConvertRoutine:PROC);
  28. END PrintFBase.
  29.