You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following declaration appears in the preprocessed stdio.h from gcc's standard C library: extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...);
I made a python plugin for gcc with callbacks on PLUGIN_FINISH_DECL, hoping to translate such declarations into equivalent declarations in a different programming language.
However:
When parsing this declaration, I get a gcc.FunctionDecl object, and in this object there is a type attribute of type gcc.FunctionType, and the problem is: the argument_types attribute of this gcc.FunctionType is a list of length 1!
I expected length 3, with the last type being a va_args kind of thing...
I will try to fix it myself, but meanwhile I leave here an issue report.
The text was updated successfully, but these errors were encountered:
The following declaration appears in the preprocessed stdio.h from gcc's standard C library:
extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...);
I made a python plugin for gcc with callbacks on PLUGIN_FINISH_DECL, hoping to translate such declarations into equivalent declarations in a different programming language.
However:
When parsing this declaration, I get a gcc.FunctionDecl object, and in this object there is a
type
attribute of type gcc.FunctionType, and the problem is: theargument_types
attribute of this gcc.FunctionType is a list of length 1!I expected length 3, with the last type being a va_args kind of thing...
I will try to fix it myself, but meanwhile I leave here an issue report.
The text was updated successfully, but these errors were encountered: