Commit e098d82c authored by Aleksey R.'s avatar Aleksey R.

OS versions range

parent ecd9a55c
This diff is collapsed.
......@@ -108,7 +108,7 @@ def print_table(f, collected, function_name, enum_name):
values = values | set([ i for i in x.values[function_name] ])
f.write( "\n" )
f.write( "| | Started with | Maximum access mask | |\n" )
f.write( "| | Windows version | Maximum access mask | |\n" )
f.write( "| --- | --- | --- | --- |\n" )
for i in sorted(values): # for each InfoClass value
......@@ -117,6 +117,7 @@ def print_table(f, collected, function_name, enum_name):
maximum_am = 0
started = ""
ended = ""
used_icons = set()
with open(".\\{}.md".format(file_name), "w") as subf:
......@@ -147,6 +148,8 @@ def print_table(f, collected, function_name, enum_name):
elif i < max([ j for j in x.values[function_name] ]):
am = Icon.cancel
used_icons = used_icons.union([Icon.cancel, ])
if not ended:
ended = ver
else:
color = Icon.clock
used_icons = used_icons.union([Icon.clock, ])
......@@ -168,13 +171,13 @@ def print_table(f, collected, function_name, enum_name):
subf.write( "[Main table](README.md)\n" )
subf.write( "\n" )
f.write( "| {} | {} | {}{} | [History]({}.md) |\n".format( " / ".join(names),
started,
Icon.cancel + " " if Icon.cancel in used_icons else "",
format_file_access_masks(maximum_am),
file_name ) )
f.write( "| {} | {}{}{} | {}{} | [History]({}.md) |\n".format( " / ".join(names),
started,
" : " if started or ended else "",
ended,
Icon.cancel + " " if Icon.cancel in used_icons else "",
format_file_access_masks(maximum_am),
file_name ) )
f.write( "\n" )
......@@ -224,14 +227,7 @@ def main():
f.write( "# NtSetVolumeInformationFile\n" )
print_table( f, collected, "NtSetVolumeInformationFile", "FSINFOCLASS" )
f.write( "# Legend\n" )
f.write( "\n" )
f.write( "| Icon | Description |\n" )
f.write( "| --- | --- |\n" )
f.write( "| {} | {} |\n".format(Icon.cancel, Icon.descriptions[Icon.cancel]) )
f.write( "\n" )
f.write( "# How to generate README.md\n" )
f.write( "# How to generate README.md and childrens\n" )
f.write( "\n" )
f.write( "```\n" )
f.write( "> python ioam.py\n" )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment