Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | James Kuyper <jameskuyper@verizon.net> |
| Newsgroups | comp.lang.c |
| Subject | Re: Learning C by reading |
| Date | Thu, 28 Jun 2012 20:21:28 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 23 |
| Message-ID | <4FECF508.7070207@verizon.net> (permalink) |
| References | <87bok3u4lj.fsf@gmail.com> <jshdet$s4u$1@dont-email.me> <Va6Hr.395935$ME5.247721@fx22.am4> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| Injection-Info | mx04.eternal-september.org; posting-host="2P71cupDoazVVolqpw1jrw"; logging-data="9921"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/RAPqr/hZmvL/kwVR2TVkAztYWhJiuWKY=" |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111220 Thunderbird/9.0 |
| In-Reply-To | <Va6Hr.395935$ME5.247721@fx22.am4> |
| Cancel-Lock | sha1:1gd39/dTMmbM0tjffJhkWpeabu8= |
| Xref | csiph.com comp.lang.c:22958 |
Show key headers only | View raw
On 06/28/2012 07:56 PM, Andrew Cooper wrote: > On 28/06/2012 11:59, James Kuyper wrote: >> >> // You cannot use leading underscores like this: >> #ifdef _MYHEADER_H >> #define _MYHEADER_H >> // body of myheader.h >> #endif >> > > > Incorrect. You shouldn't, but you most definitely can. As is the way > with a large amount of C. OK - "You cannot ... with defined behavior." > Also, that should be an #ifndef, else you will never include the body of > myheader.h unless you explicitly define _MYHEADER_H somewhere else. I need a vacation. What I'm getting in about a month is 6000km road trip. I'm not sure that qualifies. :-}
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Learning C by reading Sergi Pasoev <s.pasoev@gmail.com> - 2012-06-28 14:13 +0400
Re: Learning C by reading James Kuyper <jameskuyper@verizon.net> - 2012-06-28 06:59 -0400
Re: Learning C by reading Andrew Cooper <amc96@cam.ac.uk> - 2012-06-29 00:56 +0100
Re: Learning C by reading James Kuyper <jameskuyper@verizon.net> - 2012-06-28 20:21 -0400
Re: Learning C by reading Johann Klammer <klammerj@NOSPAM.a1.net> - 2012-06-28 18:08 +0200
Re: Learning C by reading Aaron W. Hsu <arcfide@sacrideo.us> - 2012-06-28 15:00 -0500
Re: Learning C by reading Rui Maciel <rui.maciel@gmail.com> - 2012-06-29 02:48 +0100
Re: Learning C by reading rouben@shady.(none) (Rouben Rostamian) - 2012-06-29 08:55 +0000
Re: Learning C by reading Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2012-07-06 01:15 +0300
csiph-web