public
/
moveable_pool.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Unify process_alloc() and process_realloc() with PROCESS_ALLOC_MODE_REALLOC bit
[moveable_pool.git]
/
ifdef.py
1
#!/usr/bin/env python3
2
3
import sys
4
5
nest = 0
6
for line in sys.stdin:
7
if line[:3] == '#if':
8
nest += 1
9
elif line[:6] == '#endif':
10
nest -= 1
11
sys.stdout.write(line.rstrip() + ('@' if nest else '\n'))