The current definition of GeisSubscriptionFlags is:
typedef enum GeisSubscriptionFlags { GEIS_SUBSCRIPTION_NONE = 0x0000, GEIS_SUBSCRIPTION_GRAB = 0x0001, GEIS_SUBSCRIPTION_CONT = 0x0002 } GeisSubscriptionFlags;
This prevents the following code from working:
GeisSubscriptionFlags flags = GEIS_SUBSCRIPTION_GRAB | GEIS_SUBSCRIPTION_CONT;
This is because the value of the result does not match any in the enum. Geis should use an anonymous enum for the flags definition, but a typedef of an int for GeisSubscriptionFlags.
A workaround is to define the flags variable as an int.
The current definition of GeisSubscriptio nFlags is:
typedef enum GeisSubscriptio nFlags SUBSCRIPTION_ NONE = 0x0000, SUBSCRIPTION_ GRAB = 0x0001, SUBSCRIPTION_ CONT = 0x0002 nFlags;
{
GEIS_
GEIS_
GEIS_
} GeisSubscriptio
This prevents the following code from working:
GeisSubscriptio nFlags flags = GEIS_SUBSCRIPTI ON_GRAB | GEIS_SUBSCRIPTI ON_CONT;
This is because the value of the result does not match any in the enum. Geis should use an anonymous enum for the flags definition, but a typedef of an int for GeisSubscriptio nFlags.
A workaround is to define the flags variable as an int.