From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from www.sonnenberger.org (www.sonnenberger.org [92.79.50.50]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o4UBjnnC032190 for ; Sun, 30 May 2010 07:45:50 -0400 (EDT) Received: from britannica.bec.de (www.sonnenberger.org [192.168.1.10]) by www.sonnenberger.org (Postfix) with ESMTP id 1BF4B6679A for ; Sun, 30 May 2010 13:45:44 +0200 (CEST) Received: by britannica.bec.de (Postfix, from userid 1000) id B6E6815086; Sun, 30 May 2010 13:43:35 +0200 (CEST) Date: Sun, 30 May 2010 13:43:35 +0200 From: Joerg Sonnenberger To: "source@mdocml.bsd.lv" Subject: Re: mdocml: Made `Dt' default to LOCAL and UNKNOWN instead of local and Message-ID: <20100530114334.GA160@britannica.bec.de> Mail-Followup-To: "source@mdocml.bsd.lv" References: <201005301100.o4UB0rG4013727@krisdoz.my.domain> <20100530110326.GA2918@britannica.bec.de> <4C02485F.70201@bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C02485F.70201@bsd.lv> User-Agent: Mutt/1.5.20 (2009-06-14) On Sun, May 30, 2010 at 01:13:35PM +0200, Kristaps Dzonsons wrote: > >> static int > >>-pre_dt(PRE_ARGS) > >>+post_dt(POST_ARGS) > >> { > >>+ const struct mdoc_node *nn; > >>+ const char *p; > >>+ > >>+ if (NULL != (nn = mdoc->last->child)) > >>+ for (p = nn->string; *p; p++) { > >>+ if ( ! isalpha((u_char)*p)) > >>+ continue; > >>+ if (isupper((u_char)*p)) > >>+ continue; > > > >if (toupper((u_char)*p) != *p) > > > >should do the same and make it easier to just enforce it automatically? > > Is this guaranteed behaviour for toupper() across the melange of > systems we're supposed to support? It is ISO C90 behavior. I expect platforms to have bigger issues if they break this. Joerg -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv