Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 5 Jul 2001 16:58:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 5 Jul 2001 16:58:35 -0400 Received: from sncgw.nai.com ([161.69.248.229]:51593 "EHLO mcafee-labs.nai.com") by vger.kernel.org with ESMTP id ; Thu, 5 Jul 2001 16:58:21 -0400 Message-ID: X-Mailer: XFMail 1.4.7 on Linux X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_=XFMail.1.4.7.Linux:20010705135733:704=_" Date: Thu, 05 Jul 2001 13:57:33 -0700 (PDT) From: Davide Libenzi To: linux-kernel@vger.kernel.org Subject: linux/macros.h(new) and linux/list.h(mod) ... Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format --_=XFMail.1.4.7.Linux:20010705135733:704=_ Content-Type: text/plain; charset=us-ascii This patch add a new linux/macros.h that is supposed to host utility macros that otherwise developers are forced to define in their files. This version contain only min(), max() and abs(). The other change is to linux/list.h by adding two members list_first() and list_last(). - Davide --_=XFMail.1.4.7.Linux:20010705135733:704=_ Content-Disposition: attachment; filename="misc.diff" Content-Transfer-Encoding: base64 Content-Description: misc.diff Content-Type: application/octet-stream; name=misc.diff; SizeOnDisk=1077 ZGlmZiAtTkJicnUgbGludXgtMi40LjYudmFuaWxsYS9pbmNsdWRlL2xpbnV4L2xpc3QuaCBsaW51 eC0yLjQuNi9pbmNsdWRlL2xpbnV4L2xpc3QuaAotLS0gbGludXgtMi40LjYudmFuaWxsYS9pbmNs dWRlL2xpbnV4L2xpc3QuaAlGcmkgRmViIDE2IDE2OjA2OjE3IDIwMDEKKysrIGxpbnV4LTIuNC42 L2luY2x1ZGUvbGludXgvbGlzdC5oCU1vbiBKdWwgIDIgMTY6MTQ6MjcgMjAwMQpAQCAtMTQ4LDYg KzE0OCwxMCBAQAogICovCiAjZGVmaW5lIGxpc3RfZm9yX2V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WYK --_=XFMail.1.4.7.Linux:20010705135733:704=_-- End of MIME message - 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/