Skip to content
Snippets Groups Projects
Commit 8c22e743 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Change c_preprocess arg name 'filename'

parent 70acbd3d
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ THE SOFTWARE. ...@@ -25,7 +25,7 @@ THE SOFTWARE.
from loopy.diagnostic import LoopyError from loopy.diagnostic import LoopyError
def c_preprocess(source, defines=None, file_name="<floopy source>"): def c_preprocess(source, defines=None, filename="<floopy source>"):
""" """
:arg source: a string, possibly containing C preprocessor constructs :arg source: a string, possibly containing C preprocessor constructs
:arg defines: a list of strings as they might occur after a :arg defines: a list of strings as they might occur after a
...@@ -47,7 +47,7 @@ def c_preprocess(source, defines=None, file_name="<floopy source>"): ...@@ -47,7 +47,7 @@ def c_preprocess(source, defines=None, file_name="<floopy source>"):
for d in defines: for d in defines:
p.define(d) p.define(d)
p.parse(source, file_name) p.parse(source, filename)
tokens = [] tokens = []
while True: while True:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment