inducer / inducer/pycparserext
Parse error on function with attribute returning a pointer
Open
- Dominant language
- Python
- Stars
- 91
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
This code is OK:
``` c
int __attribute__((__nothrow__)) fct() {}
```
but this one failed:
``` c
int * __attribute__((__nothrow__)) fct() {}
```
Error given is:
`pycparser.plyparser.ParseError: :1:7: before: __attribute__`
I tried to fix this bug myself, without success.
I discovered that when trying to parse stdio.h from Mingw.
Preprocessed sample:
``` c
__attribute__ ((__dllimport__)) FILE *__attribute__((__cdecl__)) _fsopen(const char *_Filename,const char *_Mode,int _ShFlag);
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.