equal
deleted
inserted
replaced
228 texts["suffixe"] = "" |
228 texts["suffixe"] = "" |
229 texts["type_suffixe"] = "" |
229 texts["type_suffixe"] = "" |
230 texts["length"] = values[0] |
230 texts["length"] = values[0] |
231 if index in variablelist: |
231 if index in variablelist: |
232 texts["name"] = FormatName(entry_infos["name"]) |
232 texts["name"] = FormatName(entry_infos["name"]) |
233 strDeclareHeader += "extern %(subIndexType)s%(type_suffixe)s %(name)s[];\t\t/* Mapped at index 0x%(index)04X, subindex 0x01 - 0x%(length)02X */\n"%texts |
233 texts["values_count"] = str(len(values)-1) |
|
234 strDeclareHeader += "extern %(subIndexType)s%(type_suffixe)s %(name)s[%(values_count)s];\t\t/* Mapped at index 0x%(index)04X, subindex 0x01 - 0x%(length)02X */\n"%texts |
234 mappedVariableContent += "%(subIndexType)s%(type_suffixe)s %(name)s[] =\t\t/* Mapped at index 0x%(index)04X, subindex 0x01 - 0x%(length)02X */\n {\n"%texts |
235 mappedVariableContent += "%(subIndexType)s%(type_suffixe)s %(name)s[] =\t\t/* Mapped at index 0x%(index)04X, subindex 0x01 - 0x%(length)02X */\n {\n"%texts |
235 for subIndex, value in enumerate(values): |
236 for subIndex, value in enumerate(values): |
236 sep = "," |
237 sep = "," |
237 if subIndex > 0: |
238 if subIndex > 0: |
238 if subIndex == len(values)-1: |
239 if subIndex == len(values)-1: |