Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #149866

Re: what does # mean?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups comp.lang.c
Subject Re: what does # mean?
Date Sat, 08 Feb 2020 13:38:29 -0800
Organization None to speak of
Lines 26
Message-ID <87eev4220a.fsf@nosuchdomain.example.com> (permalink)
References <r1l2nb$n2s$1@dont-email.me> <6dcd71aa-6b41-4193-8d53-813dbc198686@googlegroups.com> <jcD%F.118259$_R3.107762@fx36.iad>
Mime-Version 1.0
Content-Type text/plain
Injection-Info reader02.eternal-september.org; posting-host="d79a1035c6f8abb274c59d391f180cbc"; logging-data="419"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cgHoRTLTWDUnHiIW33jTp"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
Cancel-Lock sha1:t2TiZRIWeOTVBWd8VijDaZ4hRho= sha1:6A2LbmWZdN2X4imq9YLTK96e9to=
Xref csiph.com comp.lang.c:149866

Show key headers only | View raw


scott@slp53.sl.home (Scott Lurndal) writes:
> James Kuyper <jameskuyper@alumni.caltech.edu> writes:
>>On Friday, February 7, 2020 at 8:26:13 PM UTC-5, T wrote:
>>> Hi All
>>> 
>>> what does the "#" in
>>> 
>>>       #define GDK_SELECTION_SECONDARY  GDK_MAKE_ATOM (2)
>>> 
>>> mean?
>>> 
>>> And is "define" what others call a constant?
>>
>>The # does not mean anything on it's own, 
>
> Although to be strictly pedantic, in the days of early
> C compilers, the C pre-processor would only be run if
> the first byte of the source file was '#'.    One often
> saw source files where the first line was a naked octothorpe.

And a # on a line by itself is a "null directive".  It has no effect.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips Healthcare
void Void(void) { Void(); } /* The recursive call of the void */

Back to comp.lang.c | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

what does # mean? T <T@invalid.invalid> - 2020-02-07 17:26 -0800
  Re: what does # mean? luser droog <luser.droog@gmail.com> - 2020-02-07 17:51 -0800
    Re: what does # mean? T <T@invalid.invalid> - 2020-02-07 18:00 -0800
  Re: what does # mean? T <T@invalid.invalid> - 2020-02-07 18:00 -0800
  Re: what does # mean? James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-02-07 20:04 -0800
    Re: what does # mean? T <T@invalid.invalid> - 2020-02-08 00:10 -0800
    Re: what does # mean? scott@slp53.sl.home (Scott Lurndal) - 2020-02-08 18:35 +0000
      Re: what does # mean? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-02-08 13:38 -0800

csiph-web