On Mon, Jul 2, 2012 at 8:53 PM, Isaac Jurado <diptongo@xxxxxxxxx> wrote: > > Since the set of signal names to be recognized is known at compile > time, you can use a perfect hash function generator like GNU Perf [1] > which minimizes character comparisons in order to return the desired > constant assigned to a name/symbol/token/whatever-string. As usual, I forgot the link. My apologies: [1] http://www.gnu.org/software/gperf/ -- Isaac Jurado "The noblest pleasure is the joy of understanding" Leonardo da Vinci -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html