OF WORD and OF INTEGER converted

This commit is contained in:
Rick Parrish 2013-02-07 14:17:50 -05:00
parent 37ffa5ebff
commit 19e2dcdab0
6 changed files with 13 additions and 8 deletions

View File

@ -15,16 +15,17 @@ TODO list:<br />
<ul>
<li>WORD in RECORD to SMALLWORD</li>
<li>INTEGER in RECORD to SMALLINT</li>
<li>TYPEs of OF WORD to OF SMALLWORD (just in case they're used in a RECORD)</li>
<li>TYPEs of OF INTEGER to OF SMALLINT (just in case they're used in a RECORD)</li>
<li>Implement any REETODOs that appear in compiled executables</li>
<li>Anything passing 0 for the Attr parameter to FindFirst should pass AnyFile instead (VP returns no files when 0 is passed for Attr)</li>
<li>Investigate FILEMODE usage to see if FILEMODEREADWRITE, TEXTMODEREAD or TEXTMODEREADWRITE should be used</li>
<li>Find/correct any usage of FOR loop variables after the loop (since they are 1 greater in VP than in BP</li>
<li>Find/correct any file i/o on untyped files where Words or LongInts are being read</li>
</ul>
Completed list<br />
<ul>
<li>IFDEF out anything that doesn't compile and make a WIN32 placeholder that does a "WriteLn('REETODO UNIT FUNCTION'); Halt;" (then you can grep the executables for REETODO to see which REETODOs actually need to be implemented)</li>
<li>IFDEF out any ASM code blocks and handle the same as above</li>
<li>TYPEs of OF WORD to OF SMALLWORD (just in case they're used in a RECORD)</li>
<li>TYPEs of OF INTEGER to OF SMALLINT (just in case they're used in a RECORD)</li>
</ul>

View File

@ -161,7 +161,7 @@ TYPE
ConferenceKeyType = SET OF '@'..'Z';
CompArrayType = ARRAY[0..1] OF INTEGER;
CompArrayType = ARRAY[0..1] OF SMALLINT;
CONST
MCIBuffer: MCIBufferPtr = NIL;

View File

@ -671,7 +671,7 @@ END;
PROCEDURE ReadMail;
TYPE
MessageArrayType = ARRAY [1..255] OF Word;
MessageArrayType = ARRAY [1..255] OF SmallWord;
VAR
MessageArray: MessageArrayType;
User: UserRecordType;

View File

@ -50,7 +50,7 @@ USES
TimeFunc;
TYPE
DownLoadArrayType = ARRAY [0..99] OF Integer;
DownLoadArrayType = ARRAY [0..99] OF SmallInt;
VAR
DLArray: DownloadArrayType;

View File

@ -46,6 +46,10 @@ CONST
User_Phone_None = ''; {None for user phone fields}
TYPE
{$IFDEF MSDOS}
SmallInt = Integer;
SmallWord = Word;
{$ENDIF}
AStr = STRING[160];
Str1 = STRING[1];
Str2 = STRING[2];

View File

@ -68,7 +68,7 @@ VAR
FidoFile: FILE;
HiWaterF: FILE OF Word;
HiWaterF: FILE OF SmallWord;
General: GeneralRecordType;
@ -719,7 +719,7 @@ END;
PROCEDURE GetMsgLst(MemMsgPath: STRING; VAR LowMsg,HighMsg: Word);
VAR
FidoMsgNum,
HiWater: Word;
HiWater: SmallWord;
BEGIN
HiWater := 1;
IF (NOT IsNetMail) THEN
@ -797,7 +797,7 @@ BEGIN
LowMsg := 2;
END;
PROCEDURE UpdateHiWater(MemMsgPath: STRING; HighWater: Word);
PROCEDURE UpdateHiWater(MemMsgPath: STRING; HighWater: SmallWord);
BEGIN
Assign(HiWaterF,MemMsgPath+'HI_WATER.MRK');
{$I-} ReWrite(HiWaterF); {$I+}