From owner-freebsd-chat Tue Mar 7 14:32:34 2000 Delivered-To: freebsd-chat@freebsd.org Received: from shell.webmaster.com (mail.webmaster.com [209.133.28.73]) by hub.freebsd.org (Postfix) with ESMTP id F3CA037BAFC for ; Tue, 7 Mar 2000 14:32:30 -0800 (PST) (envelope-from davids@webmaster.com) Received: from whenever ([209.133.29.2]) by shell.webmaster.com (Post.Office MTA v3.5.3 release 223 ID# 0-12345L500S10000V35) with SMTP id com; Tue, 7 Mar 2000 14:32:29 -0800 From: "David Schwartz" To: "Terry Lambert" Cc: Subject: RE: how to do this C preprocessor trick? Date: Tue, 7 Mar 2000 14:32:29 -0800 Message-ID: <000401bf8885$056f6e80$021d85d1@youwant.to> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 In-Reply-To: <200003072222.PAA01371@usr09.primenet.com> Importance: Normal Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > For blocks of code, it makes it real easy to include more than > the 10 lines of code allowed by the (L)GPL by innocently > including a header file, and not realizing that it's a block > macro instead of a simple macro, or that it's a macro instead > of a library function, etc.. It the macro expands to more than 10 lines of code, the header file it was in that you've already included has to be more than 10 lines. If there's some difference in principle between these two things, I can't imagine what it could be. In both cases, the included code isn't actually in your code at first. In both cases, the included code gets mixed in with your code by the preprocessor. In both cases, the output from the compiler contains bits of boths in sizes that can't be measured in lines. DS To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message