Feb 05, 2010 14:18
and this is what a generic way of making default case in my previous post
Viral, nice way of using default case.. i think u can make it more generic by using
#define DISPATCH() \
{goto *op_table[*s-'a'< sizeof(op_table)&& *s-'a'>= 0 ? *((s)++) - 'a' : (*s
- *((s)++)) + sizeof(op_table)]; }