Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support C variable arguments #123

Open
ghost opened this issue May 4, 2017 · 2 comments
Open

Support C variable arguments #123

ghost opened this issue May 4, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented May 4, 2017

Currently, the documentation doesn't include C varargs parameters (even in the type display of the function!). So things that work similar to printf can't be documented well. It'd be nice if it at least displayed the ... in the function type.

@aremmell
Copy link

aremmell commented May 3, 2018

I also need this to move forward. I am about 0 knowledgeable in Python, but I tried changing line 475 in comment.py to:

identifier = Word(alphas + '_' + '.', alphanums + '_' + '.')

and I tried adding another match:

va_identifier = Word('.', '.' exact=3)

but I don't know where to go from there. I've also tried --loglevel=debug but I don't seem to get any additional output on the terminal. Is there another log location?

I would really really like to use this tool, but I can't without this issue being resolved, as a good portion of my public functions are C vararg functions.

@aremmell
Copy link

aremmell commented May 3, 2018

I have also tried adding the following at line 154 of ctype.py:

self._is_variadic = canon.type.is_function_variadic()

but, I don't even know if this is correct, or where to go from there. I found the place in the JS for the dynamic site where function objects are examined, but I'm utterly lost in the XML->HTML generation phase.

@jessevdk please help!

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

No branches or pull requests

1 participant