• Home
  • Raw
  • Download

Lines Matching refs:line

65 def _RemoveComment(line):  argument
68 index = line.find("#") # Remove trailing comment.
69 if index >= 0: line = line[:index]
70 return line.rstrip() # Remove trailing newlines etc.
74 line = _RemoveComment(f.next())
75 if line: return line
81 line = _ReadLine(deps_file)
82 if not line: continue
83 if not line.startswith(" "): return line
85 for file_name in line.split():
102 line = _ReadLine(deps_file)
103 if not line: continue
104 if not line.startswith(" "): return line
106 for dep in line.split():
127 line = _ReadLine(deps_file)
128 if not line: continue
129 if not line.startswith(" "): return line
130 line = line.lstrip()
131 if '"' in line:
133 symbol = line[1:-1]
134 if line.startswith('"') and line.endswith('"') and '"' not in symbol:
137 sys.exit("Error:%d: invalid quoted symbol name %s" % (_line_number, line))
140 for symbol in line.split(): _AddSystemSymbol(item, symbol)
147 line = None
150 while not line: line = _RemoveComment(deps_file.next())
152 if line.startswith("library: "):
154 name = line[9:].lstrip()
160 line = _ReadFiles(deps_file, item, name)
161 elif line.startswith("group: "):
163 name = line[7:].lstrip()
175 line = _ReadFiles(deps_file, item, library_name)
177 line = _ReadSystemSymbols(deps_file, item)
178 elif line == " deps":
180 line = _ReadDeps(deps_file, items[name], name)
183 line = _ReadDeps(deps_file, item, item.get("library"))
186 line = _ReadDeps(deps_file, item, None)
189 elif line == "system_symbols:":
194 line = _ReadSystemSymbols(deps_file, item)
196 sys.exit("Syntax error:%d: %s" % (_line_number, line))