delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW |
X-Spam-Check-By: | sourceware.org |
Received-SPF: | pass (google.com: domain of eboyd53sf AT gmail DOT com designates 10.52.20.78 as permitted sender) client-ip=10.52.20.78; |
Authentication-Results: | mr.google.com; spf=pass (google.com: domain of eboyd53sf AT gmail DOT com designates 10.52.20.78 as permitted sender) smtp.mail=eboyd53sf AT gmail DOT com; dkim=pass header.i=eboyd53sf AT gmail DOT com |
MIME-Version: | 1.0 |
In-Reply-To: | <CAEhDDbBxz115C9r78NWS77_WrLFB6s8ViRqs-Jhz1rzQQiQ+ng@mail.gmail.com> |
References: | <1329589939 DOT 95502 DOT YahooMailNeo AT web120301 DOT mail DOT ne1 DOT yahoo DOT com> <loom DOT 20120219T012137-323 AT post DOT gmane DOT org> <CAEhDDbBxz115C9r78NWS77_WrLFB6s8ViRqs-Jhz1rzQQiQ+ng AT mail DOT gmail DOT com> |
Date: | Mon, 20 Feb 2012 08:01:03 -0500 |
Message-ID: | <CA+sc5mkeLSKj+YHpC521J2TxWZ0o=eXvYH3qAvb_T8aDZhF--Q@mail.gmail.com> |
Subject: | Re: strange bug that doesn't occur in Linux, OpenBSD or ITS |
From: | Earnie Boyd <earnie AT users DOT sourceforge DOT net> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id q1KD1kd3022330 |
On Mon, Feb 20, 2012 at 3:48 AM, Csaba Raduly wrote: > On Sun, Feb 19, 2012 at 1:29 AM, Mark Geisert  wrote: >> >> 4. You've coded functions nested inside main().  I haven't seen that practice >> in C language before but apparently it works.  Color me impressed. > > It's a non-portable GCC extension: > > http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html#Nested-Functions > An idea borrowed from other languages that allow it. Using "non-portable" and in this case non-standard methods for C is not advisable. Those coming after you will curse your name. Standardization is one key to maintainability. -- Earnie -- https://sites.google.com/site/earnieboyd -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |