[comp.lang.modula2] TopSpeed Library error

Richard.Carter@p0.f20.n109.z1.fidonet.org (Richard Carter) (06/15/90)

The TopSpeed Modula-2 2.00 function GetDrive in the FIO module does not 
return the values documented in the User Manual or in the on-line 
help.  They report that GetDrive will return 0 if the current default 
dirve is A:, 1 if B:, etc...
 
After getting some errors, a quick peek in the source revealed that 
they are adding one to the return value.  Therefore, GetDrive returns 
1 if the current default drive is A:, 2 if B:, etc...
 
Please make a note of this in your User's Manual (page 254). 



--  
uucp: uunet!m2xenix!puddle!109!20.0!Richard.Carter
Internet: Richard.Carter@p0.f20.n109.z1.fidonet.org

Peter.M..Perchansky@f101.n273.z1.fidonet.org (Peter M. Perchansky) (06/15/90)

Hello Richard:

    I ran into the same problem with FIO.GetDrive.  You are correct that it returns 1 for A:, 2 for B:, etc.

    Also note the following changes:

    PROCEDURE WordFill (Dest: ADDRESS; WordCount: CARDINAL; Value: BYTE); in Lib should have Value: WORD.

    PROCEDURE SetReturnCode (code: CARDINAL); in Lib should have code: SHORTCARD;

    FIO.DirEntry = RECORD
                      ...
                       name : PathTail;
                   END;
    should be -> Name : PathTail;


P.S. Neils Jensen of JPI stated that new docs (by professional tech writers) is in the works.

---- Peter


--  
uucp: uunet!m2xenix!puddle!273!101!Peter.M..Perchansky
Internet: Peter.M..Perchansky@f101.n273.z1.fidonet.org