2013-10-15 18:23:10 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
import re, sys
|
|
|
|
|
|
|
|
for line in sys.stdin:
|
|
|
|
m = re.match(r'(\d+)\s+(\S+)\s+(\S+)?', line)
|
2013-10-24 15:09:40 +02:00
|
|
|
print '/* {} */ MAKE_NV("{}", "{}"),'\
|
|
|
|
.format(m.group(1),
|
|
|
|
m.group(2),
|
|
|
|
m.group(3) if m.group(3) else '')
|