def METHOD_NAME(test_files, syntax='c-src'):
    global files_checked
    global unmatched_ifdefs, unmatched_elses, outoforder_elses, unmatched_endifs
    global unmatched_lcurly_braces, unmatched_rcurly_braces
    if syntax == 'c-src':
        ifdef_regex = CSRC_STYLE_IFDEF_REGEX
        else_regex = CSRC_STYLE_ELSE_REGEX
        endif_regex = CSRC_STYLE_ENDIF_REGEX
        lcurly_regex = CSRC_CURLYBRACE_OPEN_REGEX
        rcurly_regex = CSRC_CURLYBRACE_CLOSE_REGEX
    elif syntax == 'kam-cfg':
        ifdef_regex = KAMCFG_STYLE_IFDEF_REGEX
        else_regex = KAMCFG_STYLE_ELSE_REGEX
        endif_regex = KAMCFG_STYLE_ENDIF_REGEX
        lcurly_regex = KAMCFG_CURLYBRACE_OPEN_REGEX
        rcurly_regex = KAMCFG_CURLYBRACE_CLOSE_REGEX
    else:
        return False
    for test_file in test_files:
        with open(test_file, 'rb') as fp:
            i = 1
            for line in fp:
                if ifdef_regex.match(line):
                    unmatched_ifdefs.append([test_file,i,line])
                elif else_regex.match(line):
                    if len(unmatched_ifdefs) == 0:
                        outoforder_elses.append([test_file,i,line])
                    else:
                        unmatched_elses.append([test_file,i,line])
                elif endif_regex.match(line):
                    try:
                        unmatched_elses.pop()
                    except IndexError:
                        pass
                    try:
                        unmatched_ifdefs.pop()
                    except IndexError:
                        unmatched_endifs.append([test_file,i,line])
                elif lcurly_regex.match(line):
                    unmatched_lcurly_braces.append([test_file,i,line])
                elif rcurly_regex.match(line):
                    unmatched_rcurly_braces.append([test_file,i,line])
                i += 1
        files_checked += 1
        if len(unmatched_ifdefs) + len(outoforder_elses) + len(unmatched_elses) + len(unmatched_endifs) + \
        len(unmatched_lcurly_braces) + len(unmatched_rcurly_braces) != 0:
            return False
    return True