On Thu, 29 Jul 2010 15:05:56 -0700 Michael Jennings <m...@kainx.org> said:
jennings is right. you can do what you do ONLY to the bitwise parts of the enum. the base type (values 0->7) you have to mask off with 0xf and do == to them (as the lower 3 bits are the base type and higher bits (4 and up) are bit flags). > On Thursday, 29 July 2010, at 17:17:24 (-0400), > m...@zentific.com wrote: > > > typedef enum _Ecore_Con_Type > > { > > ECORE_CON_LOCAL_USER = 0, /** Socket in ~/.ecore */ > > ECORE_CON_LOCAL_SYSTEM = 1, /** Socket in /tmp */ > > ECORE_CON_LOCAL_ABSTRACT = 2, /** Abstract socket */ > > ECORE_CON_REMOTE_TCP = 3, /** Remote server using TCP */ > > ECORE_CON_REMOTE_MCAST = 4, /** Remote multicast server */ > > ECORE_CON_REMOTE_UDP = 5, /** Remote server using UDP */ > > ECORE_CON_REMOTE_BROADCAST = 6, /** Remote broadcast using UDP */ > > ECORE_CON_REMOTE_NODELAY = 7, > > > > ECORE_CON_USE_SSL2 = (1 << 4), /** Use SSL2: UNSUPPORTED. **/ > > ECORE_CON_USE_SSL3 = (1 << 5), /** Use SSL3 */ > > ECORE_CON_USE_TLS = (1 << 6), /** Use TLS */ > > > > ECORE_CON_LOAD_CERT = (1 << 7) /** Attempt to use the previously > > loaded certificate */ } Ecore_Con_Type; > > } > > Yeah, that's his point. Those are NOT bitwise values. Not until > USE_SSL2, at least. The "fix" is wrong. If you want to use bitwise > values, the enum needs to be redone. > > Michael > > -- > Michael Jennings (a.k.a. KainX) http://www.kainx.org/ <m...@kainx.org> > Linux Server/Cluster Admin, LBL.gov Author, Eterm (www.eterm.org) > ----------------------------------------------------------------------- > "I gather myself around my faith, for the Light is the Darkness > most feared." -- Jewel, "Hands" > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel