Lines Matching refs:line
184 def parse_line(self, line):
185 """ parse a syscall spec line.
187 line processing, format is
190 pos_lparen = line.find('(')
193 E("missing left parenthesis in '%s'" % line)
196 pos_rparen = line.rfind(')')
198 E("missing or misplaced right parenthesis in '%s'" % line)
201 return_type = line[:pos_lparen].strip().split()
203 E("missing return type in '%s'" % line)
215 E("misplaced colon in '%s'" % line)
226 E("misplaced colon2 in '%s'" % line)
233 syscall_params = line[pos_lparen+1:pos_rparen].split(',')
239 number = line[pos_rparen+1:].strip()
262 E("invalid syscall number format in '%s'" % line)
265 E("invalid syscall number in '%s'" % line)
295 for line in fp.xreadlines():
297 line = line.strip()
298 if not line: continue
299 if line[0] == '#': continue
300 self.parse_line(line)
318 self.line = ""
321 self.line += msg
325 self.line += msg + '\n'
329 return self.line