mirror of
https://github.com/chocolate-doom/research.git
synced 2024-11-24 13:01:04 +00:00
Generate arrays to match coding style.
Subversion-branch: /research Subversion-revision: 1905
This commit is contained in:
parent
7097480646
commit
c69b00ee9f
2 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue