6 """ Portable python script to preprocess syscall/d files """
11 with open(sys.argv[1], encoding=
"utf8")
as inf:
12 with open(sys.argv[2],
"w", encoding=
"utf8")
as outf:
14 if not line.startswith(
"_")
and "=" in line:
15 arr = re.split(
"=|,", line)
16 print(
"%s.%s=%s" % (arr[1], arr[2], arr[0]), file=outf)
17 print(line, file=outf, end=
"")