ref: 0da525ae9a5e9e708d81a02e81be0fb773e1ca47
parent: 3bf6ef0196645fabb0d45c92462753c4554c9fd8
author: ben <ben@rana>
date: Wed Apr 27 15:56:39 EDT 2016
check program size
--- a/sys/src/libregexp/regcomp.c
+++ b/sys/src/libregexp/regcomp.c
@@ -188,6 +188,7 @@
parsetr = node(&plex, TSUB, e0(&plex), nil);
// prtree(parsetr, 0, 1);
+// fprint(2, "Program size %ld\n", sizeof(Reprog) + sizeof(Reinst) * plex.instrs + sizeof(Rethread) * maxthr);
reprog = malloc(sizeof(Reprog) +
sizeof(Reinst) * plex.instrs +
sizeof(Rethread) * maxthr);