Skip to content

Drop argument name in declaration.#1

Merged
ramcdougal merged 1 commit into
ModelDBRepository:masterfrom
olupton:fix-declaration
Apr 1, 2022
Merged

Drop argument name in declaration.#1
ramcdougal merged 1 commit into
ModelDBRepository:masterfrom
olupton:fix-declaration

Conversation

@olupton

@olupton olupton commented Mar 31, 2022

Copy link
Copy Markdown
Contributor

r is a variable name from the ASSIGNED block, which means that nocmodl defines it as a preprocessor macro expanding to _p[9], which in turn means the declared argument type is void**, not void*.

This causes an error when this model is tested against neuronsimulator/nrn#1755, as described in neuronsimulator/nrn#1755 (comment).

cc: @ramcdougal

@pramodk

pramodk commented Mar 31, 2022

Copy link
Copy Markdown

LGTM! (but I don't have reviewer permissions here)

`r` is a variable name from the ASSIGNED block, which means that nocmodl
defines it as a preprocessor macro expanding to `_p[9]`, which in turn
means the declared argument type is `void**`, not `void*`.
@ramcdougal ramcdougal merged commit 6a1a537 into ModelDBRepository:master Apr 1, 2022
@olupton olupton deleted the fix-declaration branch April 6, 2022 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants