Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753571AbYJaJQr (ORCPT ); Fri, 31 Oct 2008 05:16:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753453AbYJaJQa (ORCPT ); Fri, 31 Oct 2008 05:16:30 -0400 Received: from harold.telenet-ops.be ([195.130.133.65]:57060 "EHLO harold.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753744AbYJaJQ3 (ORCPT ); Fri, 31 Oct 2008 05:16:29 -0400 Date: Fri, 31 Oct 2008 10:16:27 +0100 (CET) From: Geert Uytterhoeven To: =?utf-8?B?SsO2cm4=?= Engel cc: Christian Borntraeger , Pavel Machek , linux-kernel@vger.kernel.org Subject: Re: [RFC] B+Tree library In-Reply-To: <20081031073507.GB18182@logfs.org> Message-ID: References: <20081026124643.GA1328@logfs.org> <20081030174300.GA1773@ucw.cz> <20081030175844.GC7157@logfs.org> <200810310738.46326.borntraeger@de.ibm.com> <20081031073507.GB18182@logfs.org> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463808415-883735743-1225444587=:22521" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1466 Lines: 40 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463808415-883735743-1225444587=:22521 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Fri, 31 Oct 2008, Jörn Engel wrote: > On Fri, 31 October 2008 07:38:46 +0100, Christian Borntraeger wrote: > > Am Donnerstag, 30. Oktober 2008 schrieb Jörn Engel: > > > Except that min/max in include/linux/kernel.h have some type-safety > > > added. In this particular case that is actually a disadvantage: > > > > So what about min_t and max_t from include/linux/kernel.h? Can that be used? > > Sorry, no. The problems comes from using MAX in structure initializers. > > struct btree_geo btree_geo32 = { > .keylen = 1, > .no_pairs = NODESIZE / sizeof(long) / 2, > }; Where's the MIN/MAX? ;-) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ---1463808415-883735743-1225444587=:22521-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/