aboutsummaryrefslogtreecommitdiff
path: root/scripts/threading_generator.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/threading_generator.py')
-rw-r--r--scripts/threading_generator.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/scripts/threading_generator.py b/scripts/threading_generator.py
index 174b0115..fd88909c 100644
--- a/scripts/threading_generator.py
+++ b/scripts/threading_generator.py
@@ -22,6 +22,7 @@
import os,re,sys
from generator import *
+from common_codegen import *
# ThreadGeneratorOptions - subclass of GeneratorOptions.
#
@@ -67,34 +68,34 @@ class ThreadGeneratorOptions(GeneratorOptions):
defaultExtensions = None,
addExtensions = None,
removeExtensions = None,
+ emitExtensions = None,
sortProcedure = regSortFeatures,
prefixText = "",
genFuncPointers = True,
protectFile = True,
protectFeature = True,
- protectProto = None,
- protectProtoStr = None,
apicall = '',
apientry = '',
apientryp = '',
indentFuncProto = True,
indentFuncPointer = False,
- alignFuncParam = 0):
+ alignFuncParam = 0,
+ expandEnumerants = True):
GeneratorOptions.__init__(self, filename, directory, apiname, profile,
versions, emitversions, defaultExtensions,
- addExtensions, removeExtensions, sortProcedure)
+ addExtensions, removeExtensions, emitExtensions, sortProcedure)
self.prefixText = prefixText
self.genFuncPointers = genFuncPointers
self.protectFile = protectFile
self.protectFeature = protectFeature
- self.protectProto = protectProto
- self.protectProtoStr = protectProtoStr
self.apicall = apicall
self.apientry = apientry
self.apientryp = apientryp
self.indentFuncProto = indentFuncProto
self.indentFuncPointer = indentFuncPointer
self.alignFuncParam = alignFuncParam
+ self.expandEnumerants = expandEnumerants
+
# ThreadOutputGenerator - subclass of OutputGenerator.
# Generates Thread checking framework
@@ -291,6 +292,7 @@ class ThreadOutputGenerator(OutputGenerator):
# Accumulate includes, defines, types, enums, function pointer typedefs,
# end function prototypes separately for this feature. They're only
# printed in endFeature().
+ self.featureExtraProtect = GetFeatureProtect(interface)
self.sections = dict([(section, []) for section in self.ALL_SECTIONS])
#write('// ending beginFeature', file=self.outFile)
def endFeature(self):