From owner-freebsd-questions Sun Aug 22 17:41: 9 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp1.vnet.net (smtp1.vnet.net [166.82.1.31]) by hub.freebsd.org (Postfix) with ESMTP id D066D15515 for ; Sun, 22 Aug 1999 17:41:04 -0700 (PDT) (envelope-from rivers@dignus.com) Received: from dignus.com (ponds.vnet.net [166.82.177.48]) by smtp1.vnet.net (8.9.1a/8.9.1) with ESMTP id UAA19060; Sun, 22 Aug 1999 20:39:55 -0400 (EDT) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.9.2/8.8.5) with ESMTP id UAA18164; Sun, 22 Aug 1999 20:39:54 -0400 (EDT) Received: (from rivers@localhost) by lakes.dignus.com (8.9.2/8.6.9) id UAA23753; Sun, 22 Aug 1999 20:39:53 -0400 (EDT) Date: Sun, 22 Aug 1999 20:39:53 -0400 (EDT) From: Thomas David Rivers Message-Id: <199908230039.UAA23753@lakes.dignus.com> To: freebsd-questions@FreeBSD.ORG, tim@desert.net Subject: Re: ctype.h: #define _T 0x00100000L: how should it work? In-Reply-To: <19990822162657.A14046@desert.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 1) Who is right? Is it proper for omniORB to be using _T in their > code? Or is it right for FreeBSD to have _T defined in ctype.h? > Or both, somehow? is part of the ANSI C standard. The standard says that names which begin with either two underscores, or one underscore followed by a capital letter belong to the implementation. So, by the standard, the implementation is free to use those names in the implementation of . Technically, omniORB is incorrect; they should not use names which "belong" to the implementation. > 2) What, in the short term, is the best way to fix the problem? I > could add #ifdef SOME_IDENTIFIER ... #endif around that block of > #defines in ctype.h. I could add #undefs to the omniORB2 source > code. What have other people done for this type of thing? > 3) What is the best long-term solution? I believe the best long-term solution would be reparation of omniORB. - Dave Rivers - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message