Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Generated code is always stored with LF, whatever the generating platform or git config
windows/generated_def/*.py text
docs/source/*_generated.rst text
3 changes: 0 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ jobs:
runs-on: windows-latest
timeout-minutes: 5
steps:
# Generated files are written with CRLF on Windows: autocrlf makes git compare them
# to the committed versions without EOL noise (explicit, to not rely on the runner default)
- run: git config --global core.autocrlf true
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
Expand Down
3 changes: 2 additions & 1 deletion ctypes_generation/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,8 @@ def emit_com_interface_function(self, method_nb, method, indent=""):
args_to_define = method.args[1:] # ctypes doesnt not need the This
name = method.name
params = ", ".join([arg.name +":"+ ("*"* arg.byreflevel) +arg.type for arg in args_to_define])
self.emitline(indent + "# {name} -> {params}".format(name=name, params=params))
space = " " if params else ""
self.emitline(indent + "# {name} ->{space}{params}".format(name=name, space=space, params=params))

str_args = []
for arg in args_to_define:
Expand Down
Loading
Loading