Commit 62cc7b9f authored by Robert Bradshaw's avatar Robert Bradshaw

Disable random annotations for now.

parent 2fdb9ecf
...@@ -64,15 +64,16 @@ class AnnotationCCodeWriter(CCodeWriter): ...@@ -64,15 +64,16 @@ class AnnotationCCodeWriter(CCodeWriter):
lines[k] = line lines[k] = line
f.close() f.close()
all = [] all = []
for pos, item in self.annotations: if False:
if pos[0].filename == source_filename: for pos, item in self.annotations:
start = item.start() if pos[0].filename == source_filename:
size, end = item.end() start = item.start()
if size: size, end = item.end()
all.append((pos, start)) if size:
all.append(((source_filename, pos[1], pos[2]+size), end)) all.append((pos, start))
else: all.append(((source_filename, pos[1], pos[2]+size), end))
all.append((pos, start+end)) else:
all.append((pos, start+end))
all.sort() all.sort()
all.reverse() all.reverse()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment