Plan 9 from Bell Labs’s /n/sources/patch/applied/regexpclass/readme

Copyright © 2009 Alcatel-Lucent.
Distributed under the Lucent Public License version 1.02.
Download the Plan 9 distribution.


1.  NCCRUNE was too large by sizeof(Reclass.end)/sizeof(Rune).
use enum of NSPANS in <regexp.h> to size Reclass.spans
and NCCLASS to size Reprog.class.

could use nelem(yyclassp->spans) and nelem(classp->class)
instead, but that seems a tad confusing.

2.  a too-large character class didn't compile correctly and did not
yield an error.  error out if character class is too large.

3.  use NSPANS=128 and not NSPANS=64/2.

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2009 Alcatel-Lucent. All Rights Reserved.
Comments to webmaster@plan9.bell-labs.com.