From owner-freebsd-hackers Thu Mar 15 10:59: 2 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id D091437B718 for ; Thu, 15 Mar 2001 10:58:55 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p60-dn02kiryunisiki.gunma.ocn.ne.jp [211.0.245.125]) by peach.ocn.ne.jp (8.9.1a/OCN/) with ESMTP id DAA25054; Fri, 16 Mar 2001 03:58:45 +0900 (JST) Message-ID: <3AB1102F.D7190894@newsguy.com> Date: Fri, 16 Mar 2001 03:55:43 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR MIME-Version: 1.0 To: milunovic Cc: hackers@FreeBSD.ORG Subject: Re: Little confused References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG milunovic wrote: > > I'm reading kernel source,but I don't understand something like this -> > > example: > #define GG(x,y) \ > static void * const blabla_##x_blabla_##y = &y; > > As I see this should make something like this > > GG(foo,bar) should make > static void * const blabla_foo_blabla_bar = &bar; > > I never saw something like this in programs.Does anybody have any link > where I could find more about this kind of making macros? That's standard C. Kernighan&Ritchie (double sp?) comes to mind. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@the.secret.bsdconspiracy.net It's a rewarding life, but hey, somebody has to have all the fun, right? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message