Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!utrcu1!mi1!klamer From: klamer@mi.eltn.utwente.nl (Klamer Schutte -- Universiteit Twente) Newsgroups: comp.os.minix Subject: Re: use only short and long (not int) in struct message Message-ID: Date: 8 Jan 91 12:39:51 GMT References: <40933@nigel.ee.udel.edu> Sender: news@utrcu1.UUCP Lines: 21 HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen) writes: >If struct messages contains only short and long (no 'int'), >various parts of the system (user code, FS, MM, Kernel etc) can >communicate irrespective of wether they are compiled in 16-bit or >32-bit mode. Why include the assumption that short == 16 bits and long == 32 bits? Please use something like int16 and int32 when you mean that. This will save you when using a machine where short=16, int=32 and long=64 bits. These names should be typedef'ed somewhere. Comments? Klamer -- Klamer Schutte Faculty of electrical engineering -- University of Twente, The Netherlands klamer@mi.eltn.utwente.nl {backbone}!mcsun!utrcu1!utep!utelmi01!klamer