gf FgdZdZddlZddlmZddlmZd d Z d d ZdS))c_lexerc_parserc_astz2.21N) check_output)CParsercppc|g}t|tr||z }n |dkr||gz }||gz } t|d}n'#t$r}t dd|zzd}~wwxYw|S)ae Preprocess a file using cpp. filename: Name of the file you want to preprocess. cpp_path: cpp_args: Refer to the documentation of parse_file for the meaning of these arguments. When successful, returns the preprocessed file's contents. Errors from cpp will be printed out. r T)universal_newlineszAUnable to invoke 'cpp'. Make sure its path was passed correctly zOriginal error: %sN) isinstancelistrOSError RuntimeError)filenamecpp_pathcpp_args path_listtextes r/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/pycparser/__init__.pypreprocess_filers I(D!! X RhZ  (I(I$??? (((8 !A %'(( (( KsA A(A##A(Fc|rt|||}n@tj|5}|}dddn #1swxYwY|t }|||S)a Parse a C file using pycparser. filename: Name of the file you want to parse. use_cpp: Set to True if you want to execute the C pre-processor on the file prior to parsing it. cpp_path: If use_cpp is True, this is the path to 'cpp' on your system. If no path is provided, it attempts to just execute 'cpp', so it must be in your PATH. cpp_args: If use_cpp is True, set this to the command line arguments strings to cpp. Be careful with quotes - it's best to pass a raw string (r'') here. For example: r'-I../utils/fake_libc_include' If several arguments are required, pass a list of strings. parser: Optional parser object to be used instead of the default CParser When successful, an AST is returned. ParseError can be thrown if the file doesn't parse successfully. Errors from cpp will be printed out. N)rioopenreadrparse)ruse_cpprrparserrfs r parse_filer!3s>x8<< WX   !6688D               ~ <<h ' ''sA  AA)r r )Fr r N) __all__ __version__r subprocessrrrrr!rr's + * * ######BBD'('('('('('(r&