kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: p.ittershagen@googlemail.com (Philipp Ittershagen)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Include guard macro query
Date: Thu, 19 Apr 2012 09:10:33 +0200	[thread overview]
Message-ID: <20120419071033.GA9970@peter> (raw)
In-Reply-To: <CAE6Wm-tjXTDoi_hMNgLyuZcPSVags-9uKj5Nu_NDJTCA4tO=Sg@mail.gmail.com>

On Thu, Apr 19, 2012 at 12:24:42PM +0530, Pritam Bankar wrote:
> Hi,
> 
> In Linux code we add a guard macro to avoid multiple declarations of
> identifiers.
> But I see some macros defined with trailing underscores.
> e.g. In arch/x86/include/asm/
> 
> Normally it is defined like,
> 
>  #ifndef _ASM_X86_ALTERNATIVE_H
>  #define _ASM_X86_ALTERNATIVE_H
> 
> But in some files I see trailing underscore after H ,
> 
> e.g. arch/x86/include/asm/intel_scu_ipc.h
> 
> 
> #ifndef _ASM_X86_INTEL_SCU_IPC_H_
> #define  _ASM_X86_INTEL_SCU_IPC_H_
> 
> There are others files also
> arch/x86/include/asm/irqflags.h
> http://lxr.linux.no/#linux+v3.3.2/arch/x86/include/asm/probe_roms.h
> 
> 
> DOES THIS TRAILING UNDERSCORE HAS SPECIAL MEANING ???

My guess: No.

Greetings,

  Philipp

      reply	other threads:[~2012-04-19  7:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-19  6:54 Include guard macro query Pritam Bankar
2012-04-19  7:10 ` Philipp Ittershagen [this message]

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=20120419071033.GA9970@peter \
    --to=p.ittershagen@googlemail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).