genoffsets.py 297 B

1234567891011
  1. from defines_tcpip import offsets
  2. d = open("defines_tcpip.fs", "w")
  3. for nm,o in sorted(offsets.items()):
  4. print >>d, "%d constant %s" % (o, nm)
  5. import defines_tcpip2
  6. d = open("defines_tcpip2.fs", "w")
  7. for nm,o in sorted(defines_tcpip2.offsets.items()):
  8. print >>d, "%d constant %s" % (o, nm)