Mercurial > hg > CbC > CbC_xv6
changeset 363:5ff90ae1fa04
use easy regex captcha at find stub code gears
author | anatofuz |
---|---|
date | Fri, 26 Jun 2020 19:28:31 +0900 |
parents | 503256a74f1e |
children | 817b2f6e138e |
files | src/gearsTools/generate_context.pl |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gearsTools/generate_context.pl Fri Jun 26 19:08:13 2020 +0900 +++ b/src/gearsTools/generate_context.pl Fri Jun 26 19:28:31 2020 +0900 @@ -132,7 +132,7 @@ my ($filename) = @_; open my $fd,"<",$filename or die("can't open $filename $!"); while (<$fd>) { - if (/^__code (\w+)_stub\(struct *Context *\* *${context_name}\)/) { + if (/^__code (\w+)_stub\(/) { $codeGear{$1} = $filename; } elsif (/^(\w+)(\*)+ *create(\w+)\(([^]]*)\)/) { my $interface = $1;