From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <368d2b2234e3869e64c2d6c45c53b878@terzarima.net> From: Charles Forsyth Date: Tue, 3 Mar 2009 00:42:11 +0000 To: 9fans@9fans.net In-Reply-To: <307e6ea2aed293668f8a7caacb1b5e2b@quintile.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-jgipvrxgbabanrvvuzxtddgpkb" Subject: Re: [9fans] type signatures Topicbox-Message-UUID: abf20200-ead4-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-jgipvrxgbabanrvvuzxtddgpkb Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit that seems correct. if you want an incomplete type, you can specify that (with pragma incomplete). --upas-jgipvrxgbabanrvvuzxtddgpkb Content-Type: message/rfc822 Content-Disposition: inline Received: from gouda.swtch.com ([67.207.142.3]) by lavoro; Mon Mar 2 22:09:46 GMT 2009 Received: from localhost ([127.0.0.1] helo=gouda.swtch.com) by gouda.swtch.com with esmtp (Exim 4.67) (envelope-from <9fans-bounces@9fans.net>) id 1Le9z9-0006nC-NK; Mon, 02 Mar 2009 15:23:16 +0000 Received: from honeysuckle.london.02.net ([87.194.255.144]) by gouda.swtch.com with esmtp (Exim 4.67) (envelope-from ) id 1Le9z5-0006n7-2h for 9fans@9fans.net; Mon, 02 Mar 2009 15:23:11 +0000 Received: from quintile.net (87.194.128.219) by honeysuckle.london.02.net (8.5.016.1) id 497A2AF000AD9DA5 for 9fans@9fans.net; Mon, 2 Mar 2009 15:23:02 +0000 Message-ID: <307e6ea2aed293668f8a7caacb1b5e2b@quintile.net> From: "Steve Simon" Date: Mon, 2 Mar 2009 15:23:01 +0000 To: 9fans@9fans.net MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] type signatures X-BeenThere: 9fans@9fans.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.9fans.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces@9fans.net Errors-To: 9fans-bounces+forsyth=terzarima.net@9fans.net Hi, I get a different type sygnature depending on weather the arg to a function contains members which are in scope or not - is this expected or a bug? for example: /* junk.c */ typedef struct unknown unknown; #ifdef DEF struct unknown { int a; }; #endif typedef struct arg arg; struct arg { unknown *u; // Note pointer, not instance }; void func(arg a) { USED(a); } larch% 8c -T t.c && nm -T junk.8 b0b8ed37 T func larch% 8c -T -DDEF t.c && nm -T junk.8 763b103c T func -Steve --upas-jgipvrxgbabanrvvuzxtddgpkb--