mirror of
https://gitlab.freedesktop.org/xorg/lib/libxcb-errors.git
synced 2026-05-02 10:47:57 +02:00
extensions.py: do away with a few more globals
This commit is contained in:
parent
cd3b9f5851
commit
f25753ddd0
1 changed files with 3 additions and 3 deletions
|
|
@ -70,9 +70,8 @@ class Module(object):
|
|||
names[key] = entries[key]
|
||||
return names
|
||||
|
||||
modules = []
|
||||
xproto = None
|
||||
def parseFile(filename):
|
||||
def parseFile(filename, modules):
|
||||
global xproto
|
||||
mod = Module(filename)
|
||||
if mod.is_ext:
|
||||
|
|
@ -113,8 +112,9 @@ def emit_module(module, output):
|
|||
def main():
|
||||
# Parse the xml file
|
||||
output_file = sys.argv[1]
|
||||
modules = []
|
||||
for input_file in sys.argv[2:]:
|
||||
parseFile(input_file)
|
||||
parseFile(input_file, modules)
|
||||
|
||||
assert xproto != None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue