def _write_local_vars(self, fp):
      fp.write('\n'.join(_genCommentHeader('Local Variables'))+'\n')
      code = C.sequence()
      for data_element in sorted(self.partition.data_element_map.values(), key=lambda x: x.symbol):
         var = C.variable(data_element.symbol, data_element.dataType.name, True)
         code.append(C.statement(var))
      for key in sorted(self.extra_static_vars.keys()):
         code.append(C.statement(self.extra_static_vars[key]))
      fp.write('\n'.join(code.lines())+'\n\n')