On Thu, Jun 27, 2013 at 07:40:32PM +0400, Valery Ushakov wrote: > -1 should really be in the enum as one of the enumeration constants. Indeed, and then the enumerator name should be used instead of the stupid -1 constant. Martin