Home | History | Annotate | Download | only in depstest

Lines Matching refs:line

61 def _RemoveComment(line):
64 index = line.find("#") # Remove trailing comment.
65 if index >= 0: line = line[:index]
66 return line.rstrip() # Remove trailing newlines etc.
70 line = _RemoveComment(f.next())
71 if line: return line
77 line = _ReadLine(deps_file)
78 if not line: continue
79 if not line.startswith(" "): return line
81 for file_name in line.split():
97 line = _ReadLine(deps_file)
98 if not line: continue
99 if not line.startswith(" "): return line
101 for dep in line.split():
122 line = _ReadLine(deps_file)
123 if not line: continue
124 if not line.startswith(" "): return line
125 line = line.lstrip()
126 if '"' in line:
127 # One double-quote-enclosed symbol on the line, allows spaces in a symbol name.
128 symbol = line[1:-1]
129 if line.startswith('"') and line.endswith('"') and '"' not in symbol:
132 sys.exit("Error:%d: invalid quoted symbol name %s" % (_line_number, line))
135 for symbol in line.split(): _AddSystemSymbol(item, symbol)
142 line = None
145 while not line: line = _RemoveComment(deps_file.next())
147 if line.startswith("library: "):
149 name = line[9:].lstrip()
155 line = _ReadFiles(deps_file, item, name)
156 elif line.startswith("group: "):
158 name = line[7:].lstrip()
169 line = _ReadFiles(deps_file, item, library_name)
171 line = _ReadSystemSymbols(deps_file, item)
172 elif line == " deps":
174 line = _ReadDeps(deps_file, items[name], name)
177 line = _ReadDeps(deps_file, item, item.get("library"))
180 line = _ReadDeps(deps_file, item, None)
183 elif line == "system_symbols:":
188 line = _ReadSystemSymbols(deps_file, item)
190 sys.exit("Syntax error:%d: %s" % (_line_number, line))