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

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
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 © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.