Home | History | Annotate | Download | only in tools

Lines Matching full:line

50     def parse_line(self, line):
51 """ parse a syscall spec line.
53 line processing, format is
56 pos_lparen = line.find('(')
59 E("missing left parenthesis in '%s'" % line)
62 pos_rparen = line.rfind(')')
64 E("missing or misplaced right parenthesis in '%s'" % line)
67 return_type = line[:pos_lparen].strip().split()
69 E("missing return type in '%s'" % line)
81 E("misplaced colon in '%s'" % line)
92 E("misplaced colon2 in '%s'" % line)
99 syscall_params = line[pos_lparen+1:pos_rparen].split(',')
105 number = line[pos_rparen+1:].strip()
128 E("invalid syscall number format in '%s'" % line)
131 E("invalid syscall number in '%s'" % line)
161 for line in fp.xreadlines():
163 line = line.strip()
164 if not line: continue
165 if line[0] == '#': continue
166 self.parse_line(line)
173 self.line = ""
176 self.line += msg
180 return self.line