# HG changeset patch # User anatofuz # Date 1579002861 -32400 # Node ID 06bf68d3b83be6a7b23e61103d9bddbfc2a6b18a # Parent 5de948efb67808cf90ce0bb3bca1efce55e27723 tweak diff -r 5de948efb678 -r 06bf68d3b83b src/gearsTools/trans_impl.pl --- a/src/gearsTools/trans_impl.pl Tue Jan 14 17:10:32 2020 +0900 +++ b/src/gearsTools/trans_impl.pl Tue Jan 14 20:54:21 2020 +0900 @@ -75,15 +75,15 @@ EOF for my $datum (@impl_data) { - if ($datum =~ /\w+ \w+\* (\w+)/) { + if ($datum =~ /\w+\s\w+\*\s(\w+)/) { print $out " ${instance_impl}->$1 = NULL;\n"; next; } - if ($datum =~ /\w+ \w+ (\w+)/) { + if ($datum =~ /\w+\s\w+\s(\w+)/) { print $out " ${instance_impl}->$1 = 0;\n"; } - if ($datum =~ /\w+(\*)? (\w+)/) { + if ($datum =~ /\w+(\*)?\s(\w+)/) { my $is_pointer = $1; my $var_name = $2; if ($1) { @@ -95,15 +95,15 @@ } for my $datum (@inter_data) { - if ($datum =~ /\w+ \w+\* (\w+)/) { + if ($datum =~ /\w+\s\w+\*\s(\w+)/) { print $out " ${instance_inter}->$1 = NULL;\n"; next; } - if ($datum =~ /\w+ \w+ (\w+)/) { + if ($datum =~ /\w+\s\w+\s(\w+)/) { print $out " ${instance_inter}->$1 = 0;\n"; next; } - if ($datum =~ /\w+(\*)? (\w+)/) { + if ($datum =~ /\w+(\*)?\s(\w+)/) { my $is_pointer = $1; my $var_name = $2; if ($1) { diff -r 5de948efb678 -r 06bf68d3b83b src/impl/pipe.h --- a/src/impl/pipe.h Tue Jan 14 17:10:32 2020 +0900 +++ b/src/impl/pipe.h Tue Jan 14 20:54:21 2020 +0900 @@ -1,4 +1,4 @@ -typedef struct pipe Impl file { +typedef struct pipe impl file { #define PIPESIZE 512 struct spinlock lock; char data[PIPESIZE];