better usage of find()
				
					
				
			This commit is contained in:
		
							parent
							
								
									5246c7de64
								
							
						
					
					
						commit
						18c00ddcd6
					
				| @ -135,9 +135,7 @@ MARKER | |||||||
| /* commit time: $Format:%ai$ */ | /* commit time: $Format:%ai$ */ | ||||||
| MARKER | MARKER | ||||||
|   my @all_files; |   my @all_files; | ||||||
|   find({ wanted=> sub { push @all_files, $_ if $_ =~ /\.(c|h)$/ }, no_chdir=>1 }, 'src'); |   find({ wanted=> sub { push @all_files, $_ if $_ =~ /\.(c|h)$/ }, no_chdir=>1 }, 'demos', 'src', 'tests'); | ||||||
|   find({ wanted=> sub { push @all_files, $_ if $_ =~ /\.(c|h)$/ }, no_chdir=>1 }, 'demos'); |  | ||||||
|   find({ wanted=> sub { push @all_files, $_ if $_ =~ /\.(c|h)$/ }, no_chdir=>1 }, 'tests'); |  | ||||||
|   for my $f (@all_files) { |   for my $f (@all_files) { | ||||||
|     my $txt = read_file($f); |     my $txt = read_file($f); | ||||||
|     if ($txt !~ /^\Q$first_comment\E/s) { |     if ($txt !~ /^\Q$first_comment\E/s) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user