Lines Matching refs:arch
7 arch = sys.argv[1]; variable
87 """ % (arch, sys.argv[0], fileid, fileid)
89 if arch in header:
90 output += header[arch];
101 replace = define + "_" + arch.upper();
103 replace = define + "_" + arch;
118 output += "#define %s_has_no_%s 1\n" % (arch, union);
120 output += "union %s_%s {%s\n};\n" % (union, arch, match.group(1));
128 output += "#define %s_has_no_%s 1\n" % (arch, struct);
130 output += "struct %s_%s {%s\n};\n" % (struct, arch, match.group(1));
131 output += "typedef struct %s_%s %s_%s_t;\n" % (struct, arch, struct, arch);
135 if arch in footer:
136 output += footer[arch];
143 replace = define + "_" + arch.upper();
145 replace = define + "_" + arch;
150 output = re.sub("\\b(union\s+%s)\\b" % union, "\\1_%s" % arch, output);
154 output = re.sub("\\b(struct\s+%s)\\b" % struct, "\\1_%s" % arch, output);
155 output = re.sub("\\b(%s)_t\\b" % struct, "\\1_%s_t" % arch, output);
158 integers = list(inttypes[arch].keys());
161 output = re.sub("\\b%s\\b" % type, inttypes[arch][type], output);