From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 28 Aug 2001 07:07:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 28 Aug 2001 07:07:50 -0400 Received: from lightning.swansea.linux.org.uk ([194.168.151.1]:5134 "EHLO the-village.bc.nu") by vger.kernel.org with ESMTP id ; Tue, 28 Aug 2001 07:07:39 -0400 Subject: Re: [IDEA+RFC] Possible solution for min()/max() war To: torvalds@transmeta.com (Linus Torvalds) Date: Tue, 28 Aug 2001 12:10:12 +0100 (BST) Cc: viro@math.psu.edu (Alexander Viro), linux-kernel@vger.kernel.org In-Reply-To: from "Linus Torvalds" at Aug 27, 2001 10:51:05 PM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: From: Alan Cox Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > Or, with the 2.4.9 approach, it's just a single macro (well, and another > one for "max()"). And when somebody needs a new type, he doesn't have to > worry about creating a new instantiation of the macro. The unfortunate thing is that its min and max as opposed to typed_min and typed_max (with min/max set up to error), since its now a nightmare to maintain compatibility between two allegedly stable releases of the same kernel, as well as with 2.2 Had it been typed_min(a,b,c) then 2.2 could have stayed compatible and the glue would have been simple