tests/vendor/ceedling/lib/preprocessinator_includes_handler.rb
def extract_shallow_includes(make_rule)
    list = []
    header_extension = @configurator.extension_header

    headers = make_rule.scan(/(\S+#{'\\'+header_extension})/).flatten # escape slashes before dot file extension
    headers.uniq!
    headers.map! { |header| header.sub(/(@@@@)|(.+\/)/, '') }
    headers.sort!
    
    headers.each_with_index do |header, index|
      break if (headers.size == (index-1))
      list << header if (header == headers[index + 1])
    end

    return list
  end
# headers only; ignore any crazy .c includes
headers only; ignore any crazy .c includes
headers only ; ignore any crazy . c includes
def extract_shallow_includes(make_rule)
    list = []
    header_extension = @configurator.extension_header
    headers = make_rule.scan(/(\S+#{'\\'+header_extension})/).flatten 
    headers.uniq!
    headers.map! { |header| header.sub(/(@@@@)|(.+\/)/, '') }
    headers.sort!
    headers.each_with_index do |header, index|
      break if (headers.size == (index-1))
      list << header if (header == headers[index + 1])
    end
    return list
  end
def extract_shallow_includes ( make_rule ) list = [ ] header_extension = @configurator . extension_header headers = make_rule . scan ( / ( \S + #{ '\\' + header_extension } ) / ) . flatten headers . uniq! headers . map! { | header | header . sub ( / (@@@@)|(.+ \/ ) / , '' ) } headers . sort! headers . each_with_index do | header , index | break if ( headers . size == ( index - 1 ) ) list << header if ( header == headers [ index + 1 ] ) end return list end
headers only; ignore any crazy .c includes
headers only ; ignore any crazy . c includes
# escape slashes before dot file extension
make_rule