🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1383

Re: pointer to incomplete type?

#1383
From: Doug Gwyn
Date: Mon, 04 Jun 1990 16:53
16 lines
1184 bytes
In article <1680@mcrware.UUCP> jejones@mcrware.UUCP (James Jones) writes:
-how can one safely declare a pointer to an incomplete structure, union, or
-enumerated type?

The type must be complete before any use that depends on it.

-(For that last case, the interpretation of "each enumerated
-type shall be compatible with an integer type" may make a difference--is that
-intended to be
-	"for all enumerated types, there exists an integer type such that..."
-or	"there exists an integer type such that for all enumerated types,..."?)

Each enumerated type is compatible with SOME integer type, but possible
different integer types for different enumerations.  For example, an
enumeration of fewer than 255 members might be implemented using one
byte rather than a full word.
Technical Details
Message-ID: <13048@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ames!haven!ncifcrf!nlm-mcs!adm!smoke!gwyn
References: <1680@mcrware.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ames!haven!ncifcrf!nlm-mcs!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: pointer to incomplete type?
Message-ID: <13048@smoke.BRL.MIL>
Date: 4 Jun 90 16:53:20 GMT
References: <1680@mcrware.UUCP>
Organization: U.S. Army Ballistic Research Laboratory, APG, MD.
Lines: 16