fc@sPddlZddlZgZgZdZdZedkrLendS(iNcCstjtjdd\}}xL|D]D\}}|dkrNtj|n|dkr&tj|q&q&W|sdg}nxY|D]Q}|dkrttjtjqt |d}t|tj|j qWdS(NisD:U:s-Ds-Ut-tr( tgetopttsystargvtdefstappendtundefstprocesststdintstdouttopentclose(toptstargstotatfilenametf((s+/usr/lib64/python2.7/Tools/scripts/ifdef.pytmain#s     cCs d}d}g}x|j}|s+Pnx4|ddkra|j}|sTPn||}q.W|j}|d d kr|r|j|qqn|dj}|j}|d } | |kr|r|j|qqn| dkrt|d kr| dkrd} nd } |d} | tkr_|j|| | f| sd }qq| tkr|j|| | f| rd }qq|j|d | f|r|j|qq| dkr|j|d d f|r|j|qq| dkrz|rz|d \} } }| d krH|rw|j|qwq| } | }| sdd }n| | |f|d s    ;