vishapoberon / compiler

vishap oberon compiler
http://oberon.vishap.am
GNU General Public License v3.0
186 stars 25 forks source link

Remove limit on numeric value of OS handles from Files.Mod #37

Closed dcwbrown closed 7 years ago

dcwbrown commented 7 years ago

Files.Mod was recording files with OS handles in a table indexed by handle value. It was lucky that most often on Unix based systems handles did have a small value. However the Files.Mod code included extra compilcation to close and reopen files if the handle it received was numerically larger than the file table. This change repaces the file table with a singly linked file list, removed the retry code, and turns out to be simpler in general.