Skip to content

Commit

Permalink
Fix const generator to account for PPC enum style
Browse files Browse the repository at this point in the history
  • Loading branch information
danghvu committed Jan 4, 2014
1 parent 5cd6b34 commit 5611de0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bindings/const_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

INCL_DIR = '../include/'

include = [ 'arm.h', 'arm64.h', 'mips.h', 'x86.h' ]
include = [ 'arm.h', 'arm64.h', 'mips.h', 'x86.h', 'ppc.h' ]

template = {
'java': {
Expand All @@ -18,6 +18,7 @@
'arm64.h': 'Arm64',
'mips.h': 'Mips',
'x86.h': 'X86',
'ppc.h': 'Ppc',
'comment_open': '\t//',
'comment_close': '',
},
Expand All @@ -31,6 +32,7 @@
'arm64.h': 'arm64',
'mips.h': 'mips',
'x86.h': 'x86',
'ppc.h': 'ppc',
'comment_open': '#',
'comment_close': '',
}
Expand Down Expand Up @@ -74,7 +76,7 @@ def gen(templ):
print "Error: Unable to convert %s" % f
continue
elif len(f) > 1 and f[1] == '=':
rhs = f[2]
rhs = ''.join(f[2:])
else:
rhs = str(count)
count += 1
Expand Down

0 comments on commit 5611de0

Please sign in to comment.