Lines Matching refs:name
43 def __init__(self, name):
44 self.name = name
47 if self.name == "pointer": # pointers map to the INT64 DataType
49 return self.name.upper()
52 if self.name == "void":
54 elif self.name == "char" or self.name == "byte" \
55 or self.name == "enum":
57 elif self.name == "pointer":
59 elif self.name == "int":
61 elif self.name == "float":
63 elif self.name == "bool":
65 elif self.name == "int64":
68 raise ValueError("Unknown value type %s" % self.name)
224 """ Split declaration of a variable to a tuple of (variable name, DataType).
227 name = None
229 name = " ".join(elements[-1:]).strip() # last element is the name
232 # if name is a pointer (e.g. "*ptr"), then remove the "*" from the name
234 pointersInName = name.count("*")
236 name = name.replace("*", "")
239 # if name is an array (e.g. "array[10]"), then remove the "[X]" from the name
241 arraysInName = name.count("[")
243 name = name.split('[')[0]
247 return (name, getDataTypeFromKw(dataType))
250 """ Parse the argument list into a list of (var name, DataType) tuples """
253 argtypelist = map(getNameTypePair, args) # split arg into arg type and arg name
255 (name, argtype) = argtypelist[0]
330 '''Extract the function name from the CALL_GL_API specification'''
358 for name, specfile in specs:
359 a = getApis(specfile, name)
360 print 'Parsed %s APIs from %s, # of entries = %d' % (name, specfile, len(a))
369 multiple functions with the same name.'''