Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: C pointer semantics with dynamically allocated struct Date: Thu, 20 Aug 2015 09:09:16 -0700 Organization: None to speak of Lines: 19 Message-ID: References: <79d68564-6e2e-447d-a73b-7b19d4e8bc66@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="8086"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19j6fq39XgUvrFb3ASDshmV" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:URxOxflGyg4MlDUuUuWwmcleXBI= sha1:s9FDKbQHoUu44EXB9D9KqtpT9gk= Xref: csiph.com comp.lang.c:67886 "Morten W. Petersen" writes: [...] > It was mentioned earlier that configure() would be run before > compilation. This already exists, and is very common. Many software packages have a script called "configure" (not a C function, though I suppose it could be implemented in C) that can, for example, generate a C header file containing macro definitions. The C source code is then compiled using that generated header file. There's no need to change the language to support pre-compile-time configuration. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"