WG15 Defect Report Ref: 9945-2-44
Topic: regular expression error codes


This is an approved interpretation of 9945-2:1993.

.

Last update: 1997-05-20


								9945-2-44

 _____________________________________________________________________________


	Topic:			regular expression error codes
	Relevant Sections:	Table B-10
	Classification:		Unaddressed issue.


Defect Report:
-----------------------

(from Andrew Hume Doug McIlroy)

Interface Issues

Issue E

	    ________________________________________

 [16] Must the regular-expression error	codes  be  distinct?
     [Table B-10]

Proposed Solution:

     The values	in Table B-10, along with any  other	REG_
values	defined	 by the	implementation (line 430, page 730),
must all be different.

Rationale:

     A conforming  regcomp() could return    REG_BADPAT	 for
every  syntax error.  Nevertheless, it is important that the
other codes be distinct, lest a	C switch  on  the  codes  be
illegal.


WG15 response for 9945-2:1993 
-----------------------------------

The standard does not speak to this issue, and no conformance
distinction can be made between alternative implementations
based on this. This is being referred to the sponsor.
        

Rationale for Interpretation:
-----------------------------
None

 _____________________________________________________________________________