pdfium's public headers often contain constructs like this
typedef enum _FPDF_DUPLEXTYPE_ {
DuplexUndefined = 0,
Simplex,
DuplexFlipShortEdge,
DuplexFlipLongEdge
} FPDF_DUPLEXTYPE;
typedef struct _FS_MATRIX_ {
float a;
float b;
float c;
float d;
float e;
float f;
} FS_MATRIX;
typedef struct FPDF_BSTR_ {
char* str;
int len;
} FPDF_BSTR;
Contrast this to, e.g.
typedef enum {
FPDF_RENDERERTYPE_AGG = 0,
FPDF_RENDERERTYPE_SKIA = 1,
} FPDF_RENDERER_TYPE;
where the underscore alias is omitted.
What's the point of the underscore aliases, like _FPDF_DUPLEXTYPE_ ?
(Note: I'm not a C developer, just reading the headers and trying to understand why this is done.)
_are reserved and must not e used.alissesbut tags.Example: