All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Fasheh <mark.fasheh@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH]2.6 mechanism for holding private inode data
Date: Mon Mar 15 15:55:03 2004	[thread overview]
Message-ID: <20040315215457.GC20057@ca-server1.us.oracle.com> (raw)
In-Reply-To: <50D19C3AC815734C9E19FE4C4F6128A617804B@orsmsx403.jf.intel.com>

On Fri, Mar 12, 2004 at 03:39:42PM -0800, Villalovos, John L wrote:
> Just curious on why you would ever want to use macros over inline
> functions?  I'll be honest and express my prejudice against macros right
> here and now :)  Since the compiler will convert an inline function into
> the exact same thing as a macro and you get type checking and
> predicatable behavior with a inline function.
Well, better a prejudice against macros, than a bias *towards* using them.
I've seen that before, and it ain't pretty :)
Mainly, for one liners which don't require typechecking, I find macros
easier to read -- there's less on the page there, especially when you've got
a bunch of said macros defined right after another -- compare Rusty's older
inode patch against the macro definitions we've got. Ok, maybe *those*
particular macros aren't the best example, but you get my point!  :)

Also, Manish tells me that using a macro in that case reduces gcc's working
set (though that's not really much of an issue).
	--Mark

--
Mark Fasheh
Software Developer, Oracle Corp
mark.fasheh@oracle.com

  reply	other threads:[~2004-03-15 15:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-12 17:40 [Ocfs2-devel] [PATCH]2.6 mechanism for holding private inode data Villalovos, John L
2004-03-15 15:55 ` Mark Fasheh [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-03-10 22:49 Rusty Lynch
2004-03-11 15:53 ` Rusty Lynch
2004-03-12 14:47   ` Mark Fasheh
2004-03-12 15:07     ` Rusty Lynch
2004-03-12 18:09       ` Mark Fasheh
2004-03-13 12:40         ` Rusty Lynch
2004-03-13 12:44           ` Wim Coekaerts
2004-03-14 16:34         ` Rusty Lynch
2004-03-15 16:16           ` Mark Fasheh
2004-03-15 16:40             ` Rusty Lynch
2004-03-16 18:35             ` Mark Fasheh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040315215457.GC20057@ca-server1.us.oracle.com \
    --to=mark.fasheh@oracle.com \
    --cc=ocfs2-devel@oss.oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.