🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Jeff Treece Fri, 29 Sep 1989 13:43
bit fields in make-3.56
#457
Author: Jeff Treece
Date: Fri, 29 Sep 1989 13:43
15 lines
1160 bytes
Hello,
I noticed that the file structure in make-3.56's file.h now uses bit
fields (in particular: int update_status:2;).  I think that this causes
problems on some compilers (because some compilers may treat bit fields
as unsigned).  For example, in file.c, there is a switch(f->update_status),
which can have a value of -1.  If the compiler treats the variable as
unsigned, it will be considered to have the value 3, and make will
abort on line 378.  This is exactly what happens when I compile make-3.56
with the cc supplied with our Alliant FX/4.  It runs fine, however,
under gcc.

Jeff Treece
Sabbagh Associates
treece@sabbagh.com   ...iuvax.cs.indiana.edu!sabbagh!treece
(812) 339-8273
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads