Revision b7ac1c02e9a868a4bad39a47217e8e52e55f76ee authored by Alon Zakai on 14 March 2014, 19:11:11 UTC, committed by Alon Zakai on 14 March 2014, 19:11:11 UTC
Safari 6.0.5 webaudio fixes in SDL and OpenAL library.
2 parent s 0d1230d + dee56ea
Raw File
autodebugger_indenter.py
'''
Autodebugger output contains -1 for function entry and -2 for function exit.
This script will indent the output nicely
'''

import os, sys

lines = sys.stdin.read().split('\n')

depth = 0
for i in range(len(lines)):
  line = lines[i]
  if line.startswith('AD:-2,'):
    depth -= 1
  print str(depth) + '|' + line
  if line.startswith('AD:-1,'):
    depth += 1

back to top