ó àqLc@s„dZdZddlZddlZddlZddlZdejjfd„ƒYZ d„Z de fd„ƒYZ d „Z dS( sPSCons.Scanner.C This module implements the depenency scanner for C/C++ code. s<src/engine/SCons/Scanner/C.py 5023 2010/06/14 22:05:46 sconsiÿÿÿÿNtSConsCPPScannercBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(sÜ SCons-specific subclass of the cpp.py module's processing. We subclass this so that: 1) we can deal with files represented by Nodes, not strings; 2) we can keep track of the files that are missing. cOs&tjjj|||Žg|_dS(N(tSConstcppt PreProcessort__init__tmissing(tselftargstkw((s_/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/C.pyR.scCstjj|gƒ|_dS(N(RtUtilt UniqueListtresult(Rtfname((s_/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/C.pytinitialize_result1scCs |jdS(Ni(R (RR ((s_/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/C.pytfinalize_result3scCsT|\}}}tjjj||j|ƒ}|sP|jj||jfƒn|S(N(RtNodetFSt find_filet searchpathRtappendt current_file(RtttkeywordtquoteR R ((s_/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/C.pytfind_include_file5s cCsZytt|jƒƒƒ}Wn-tk rK}|jj||jfƒdSX|jƒSdS(Nt(topentstrtrfiletEnvironmentErrorRRRtread(Rtfiletfpte((s_/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/C.pyt read_file;s (t__name__t __module__t__doc__RR RRR"(((s_/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/C.pyR&s     cCs¡|jdiƒ}|dkr"iStjj|ƒr€i}x?|D]7}tjj|ƒrn|d||d"]+)(>|")(RR1t ClassicCPP(tcs((s_/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/C.pyRDps  (R%t __revision__t SCons.Node.FSRt SCons.Scannert SCons.Utilt SCons.cppRRRR.tobjectR/RD(((s_/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/C.pyts