def _add_source(source, code, path, lineno=1):
    """
    Add a file to the list of source code chunks, tagged with path and line.
    """
    path = path.replace('\\', '/')
    source.append('#line %d "%s"' % (lineno, path))
    source.append(code)
