Generate arrays to match coding style.

Subversion-branch: /research
Subversion-revision: 1905
This commit is contained in:
Simon Howard 2010-04-18 18:31:40 +00:00
parent 7097480646
commit c69b00ee9f
2 changed files with 6 additions and 3 deletions

View file

@ -42,7 +42,8 @@ def format_func_offsets(offsets)
"{ " + formatted.join(", ") + " }"
end
puts "static hhe_action_pointer_t action_pointers[] = {"
puts "static hhe_action_pointer_t action_pointers[] ="
puts "{"
for name in action_func_names.sort
offsets = func_offsets(name)

View file

@ -68,7 +68,8 @@ def print_unsupported_strings(name, strings)
entry[0]
end
puts "static int #{name}[] = {"
puts "static int #{name}[] ="
puts "{"
numbers = 0
@ -101,7 +102,8 @@ good_strings = load_good_strings("good-strings.txt")
# Output list of supported strings with their offset for each version
puts "static hhe_string_t strings[] = {"
puts "static hhe_string_t strings[] ="
puts "{"
for string in good_strings