-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
enhancementNew feature or requestNew feature or requestongoingIssues currently actively being worked on.Issues currently actively being worked on.priority: low
Description
From: #991 (comment)
These macro "newtypes" redefine an existing identifier as a macro, but the macro simply desugars to the pre-exesting identifier. Such cases exis in the wild, for example in stdio.h:
typedef int FILE;
extern FILE *const stdin;
extern FILE *const stdout;
extern FILE *const stderr;
#define stdin (stdin)
#define stdout (stdout)
#define stderr (stderr)The current behaviour of hs-bindgen is to not generate a binding and emit a "redeclaration" trace message. Should hs-bindgen instead allow this corner-case of a redeclared identifier, and generate a binding for the non-macro declaration?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestongoingIssues currently actively being worked on.Issues currently actively being worked on.priority: low