#! /usr/bin/env python BASE_IRQ = 80 for i in range(1,35): print print "define irq_%d" % (i) print " signal SIG%d" % (BASE_IRQ+i) print "end"