Lines Matching refs:dest
49 def write_fixed_layout(dest, mappings, write_header):
51 dest.write('! model layout = symbols\n')
53 dest.write(' * {} = pc+{}\n'.format(l1, l2))
57 def write_layout_n(dest, mappings, number, write_header):
59 dest.write('! model layout[{}] = symbols\n'.format(number))
74 dest.write(' * {} = {}+{}{}\n'.format(l1, base, second_layout, suffix))
78 def write_fixed_layout_variant(dest, mappings, write_header):
80 dest.write('! model layout variant = symbols\n')
82 dest.write(' * {} {} = pc+{}\n'.format(l1.layout, l1.variant, l2))
86 def write_layout_n_variant_n(dest, mappings, number, write_header):
88 dest.write('! model layout[{}] variant[{}] = symbols\n'.format(number, number))
102 dest.write(' * {} {} = {}+{}{}\n'.format(l1.layout, l1.variant, base, second_layout, suffix))
105 def map_variant(dest, files, want='mls', number=None):
115 write_fixed_layout(dest, mappings, write_header)
117 write_layout_n(dest, mappings, number, write_header)
120 write_fixed_layout_variant(dest, mappings, write_header)
122 write_layout_n_variant_n(dest, mappings, number, write_header)
133 parser.add_argument('dest', type=str)
137 dest = None
138 if ns.dest == '-':
139 dest = sys.stdout
141 with dest or open(ns.dest, 'w') as fd: