Lines Matching refs:line
80 def process_line(line, fp): argument
81 if line.startswith("#"):
82 fp.write(line)
87 if re.search(args.pattern + " [*]$", line):
88 fp.write("static inline " + line)
91 m = re.search("gperf version (.*) [*][/]$", line)
102 line = re.sub(r'lengthtable\[key\]', r'sizeof(void *)', line)
105 line = re.sub(r'[{]["]["][}]', r'{}', line)
108 line = re.sub(r'static unsigned char lengthtable',
109 r'static unsigned char __unused lengthtable', line)
114 line = re.sub(r'register', r'', line)
117 line = re.sub(r"hash [(]str, len[)]",
118 r"hash((const char *)&str, len)", line)
121 if re.search("if [(][*]str", line):
127 line = re.sub(r'["].*["]', reformat_str, line)
130 line = re.sub(r'char asso_values', r'short asso_values', line)
132 fp.write(line)
159 for line in in_fp.readlines():
160 process_line(line, out_fp)