Changeset 6f91c91 in sasmodels
- Timestamp:
- Jan 17, 2018 4:10:27 PM (7 years ago)
- Children:
- 1662ebe
- Parents:
- 5dd7cfb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/py2c.py
r5dd7cfb r6f91c91 147 147 import ast 148 148 from ast import NodeVisitor 149 from inspect import currentframe, getframeinfo 150 149 151 try: # for debugging, astor lets us print out the node as python 150 152 import astor … … 1285 1287 1286 1288 1289 C_HEADER_LINENO = getframeinfo(currentframe()).lineno + 2 1287 1290 C_HEADER = """ 1291 #line %d "%s" 1288 1292 #include <stdio.h> 1289 1293 #include <stdbool.h> … … 1340 1344 1341 1345 with open(fname_out, "w") as file_out: 1342 file_out.write(C_HEADER )1346 file_out.write(C_HEADER%(C_HEADER_LINENO, __file__)) 1343 1347 file_out.write(c_code) 1344 1348
Note: See TracChangeset
for help on using the changeset viewer.