From willemw@ace.ace.nl  Thu Feb 26 17:20:21 2004
Received: from ace.ace.nl (ace.ace.nl [193.78.104.92])
	by dkuug.dk (8.12.10/8.9.2) with ESMTP id i1QGKG1S074699
	for <embedded-c@dkuug.dk>; Thu, 26 Feb 2004 17:20:18 +0100 (CET)
	(envelope-from willemw@ace.ace.nl)
Received: from rice.ace.nl (rice.ace.nl [193.78.104.122])
	by ace.ace.nl (8.11.6/8.11.6) with ESMTP id i1QGKeW06035
	for <embedded-c@dkuug.dk>; Thu, 26 Feb 2004 17:20:40 +0100
Received: from rice.ace.nl (willemw@localhost)
	by rice.ace.nl (8.11.6/8.9.3) with ESMTP id i1QGKeq21227
	for <embedded-c@dkuug.dk>; Thu, 26 Feb 2004 17:20:40 +0100
X-Authentication-Warning: rice.ace.nl: willemw owned process doing -bs
To: "Embedded-C" <embedded-c@dkuug.dk>
Subject: TR 18037
From: Willem Wakker <willemw@ace.nl>
Reply-To: Willem Wakker <willemw@ace.nl>
Date: Thu, 26 Feb 2004 17:20:40 +0100
Message-ID: <21226.1077812440@rice.ace.nl>
Sender: willemw@ace.ace.nl
X-Spam-Score: 0.633 () LARGE_HEX

Hi,

Two pieces of news.

The good news is that TR 18037 - Extensions for the Programming
Language C to support embedded processors - is approved for
publication; during the final JTC1 ballot only one No vote
was issued (from Switzerland, to a large extend the same vote as
during the previous ballot).

The bad news is that John Benito discovered the first genuine
Embedded-C defect. The source of this defect is as follows:
we have suffixes for the various fixed-point types and use
these suffixes also to identify the return type of various functions.
The suffix for the accum type used to be the letter 'q', but this
was changed (based on comment UK-3, discussed and decided on in
Santa Cruz, see n990) to 'k'. This implied that the name of the
function to convert a string to an accum value 'strtoq' was changed
to 'strtok', and we did not noticed that this clashes with the
string.h function of the same name (see 7.21.5.8).

Solutions? Don't know yet.
Possible options:
- leave as is; this would imply that string.h and stdfix.h cannot
be used simultaneously.
- change the 'k' back to 'q'; a rather big change but, if done
quickly, would not hurt too many implementations ...
- invent a new name for this specific case ('strtokk'?): not nice
but simple to do.

My favourite is to remove 7.21.5.8 from the standard (who would
use this anyway?) but I don't think that this is a real option.

Suggestions? The quicker we react, the less damage is done ...

- Willem.

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Willem Wakker					 email: <willemw@ace.nl>
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
ACE Consulting bv				  tel: +31 20 6646416
van Eeghenstraat 100				  fax: +31 20 6750389
1071 GL  Amsterdam, The Netherlands		  www: http://www.ace.nl
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
