All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] Why cmd_tbl_t is referenced as extern in defining __u_boot_cmd_start?
Date: Tue, 9 Nov 2010 09:20:25 -0500	[thread overview]
Message-ID: <201011090920.25918.vapier@gentoo.org> (raw)
In-Reply-To: <30115036.post@talk.nabble.com>

On Tuesday, November 02, 2010 11:56:31 legendbb wrote:
> line 64 and 65 in include/command.h
> 
> extern cmd_tbl_t  __u_boot_cmd_start;
> extern cmd_tbl_t  __u_boot_cmd_end;
> 
> definition of cmd_tbl_t is just one line above these. Why "extern" is used?

basic C question ?  if you dont have the extern, you'd be declaring storage 
for two variables instead of references to the symbols elsewhere.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101109/31e53fee/attachment.pgp 

      reply	other threads:[~2010-11-09 14:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-02 15:56 [U-Boot] Why cmd_tbl_t is referenced as extern in defining __u_boot_cmd_start? legendbb
2010-11-09 14:20 ` Mike Frysinger [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=201011090920.25918.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=u-boot@lists.denx.de \
    /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.