home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!Sirius.dfn.de!gwdu03.gwdg.de!gwdgv1.gwdg.de!MOELLER
- From: moeller@gwdgv1.gwdg.de
- Subject: order of 'external' declarations
- Message-ID: <P438VUC@gwdu03.gwdg.de>
- Sender: news@gwdu03.gwdg.de (USENET News System)
- Nntp-Posting-Host: gwdgv1.gwdg.de
- Reply-To: moeller@gwdgv1.gwdg.de
- Organization: GWDG Goettingen, F.R.Germany
- Date: Fri, 20 Nov 1992 20:48:23 GMT
- Lines: 17
-
- I've just come across a supposedly ANSI-compatible C compiler that chokes on
-
- func()
- {
- extern char *var;
- ...
- }
-
- char *var = "some text";
-
- With functions, this kind of "forward" declaration is quite normal,
- so I think it should also be ok with data (for which you have
- to explicitly use 'extern'). Any opinions?
-
- Wolfgang J. Moeller, GWDG, D-3400 Goettingen, F.R.Germany | Disclaimer ...
- PSI%(0262)45050352008::MOELLER Phone: +49 551 201516 | No claim intended!
- Internet: moeller@gwdgv1.dnet.gwdg.de | This space intentionally left blank.
-