+
    ¿Ìj„  ã                   ó–  € R t ^ RIt^ RIt^ RIt^ RIt^RIHt R tR tR t	R t
R tR tR	 tR
 tR t]P                   ! ]! 4       RR7      t]P%                  RR7      t]P)                  RRR7      t]P-                  RRRR7       ]P-                  R]P.                  ! RRR7      RR7       ]P-                  RRR7       ]P)                  RR R7      t]P-                  R!R"R7       ]P-                  R#]P.                  ! RRR7      R$R7       ]P-                  R%]P.                  ! RRR7      R&R7       ]P-                  RRR7       R(R' ltR# ))aê  Implementation of the ``cffi-gen-src`` command-line tool.

This module is private; the command line is the only supported
interface. Two subcommands:

``exec-python``
    Execute a Python script that constructs a :class:`cffi.FFI`
    (the same kind of script that the CFFI docs' "Main mode of usage"
    describes) and emit the generated C source.

``read-sources``
    Create the :class:`cffi.FFI` from a separate ``cdef`` file and C
    source prelude, then emit the generated C source.
N)ÚFFIc                 ó8   € \        WR R7      p\        W2V4       R# )Úexec)ÚsourceÚfilenameÚmodeN)Úcompiler   )Úpysrcr   ÚglobsÚcompileds   &&& Úl/home/l0st/web/w4ttz.lol/public_html/toolz/MsgDoxxer/venv/lib/python3.14/site-packages/cffi/_cffi_gen_src.pyÚ	_execfiler   3   s   € Ü˜e¸VÔD€HÜˆ˜%Ö ó    c                óL  € \         P                  P                  V4      pRRRV/p\        P                  R,          p\        P                  P	                  ^ \         P                  P                  V4      4        \        WV4       W#9  d   \        RV: R24      hW2,          p\        V\        4      '       g   \        V4      '       d   V! 4       p\        V\        4      '       g   \        RV: R24      hVV\        P                  R&   #   T\        P                  R&   i ; i)	aæ  Execute ``pysrc`` and return the :class:`FFI` object it defines.

The script is executed with ``__name__`` set to ``"cffi.gen_src"``,
so a trailing ``if __name__ == "__main__": ffibuilder.compile()``
block in the script is skipped.

``ffivar`` is the name bound by the script to the :class:`FFI`
object, or to a callable that returns one.

Raises :class:`NameError` if the name is not bound by the script,
or :class:`TypeError` if the name does not resolve to an
:class:`FFI` instance.
Ú__name__zcffi.gen_srcÚ__file__:NNNz.Expected to find the FFI object with the name z, but it was not found.zFound an object with the name z+ but it was not an instance of cffi.api.FFI)ÚosÚpathÚabspathÚsysÚinsertÚdirnamer   Ú	NameErrorÚ
isinstancer   ÚcallableÚ	TypeError)r	   r   Úffivarr
   Úold_pathÚffis   &&&   r   Úfind_ffi_in_python_scriptr   8   sá   € ô �w‰w�‰˜xÓ(€HØ˜¨°XÐ>€EÜ�x‰x˜�{€HÜ‡H�H‡O�O�A”r—w‘w—‘ xÓ0Ô1ðÜ�% 5Ô)ØÔÝã+1ð4óð ð �mˆÜ˜#œs×#Ò#¬°¯ªá“%ˆCÜ˜#œs×#Ò#Ýã.4ð7óð ð àŒ�‰�Šø�hŒ�‰�Šús   Á;A?D ÄD#c                ó^   € \        4       pVP                  V4       VP                  W4       V# )zACreate an :class:`FFI` from ``cdef`` text and a C source prelude.)r   ÚcdefÚ
set_source)Ú
modulenamer!   ÚcsrcÚ
ffibuilders   &&& r   Úmake_ffi_from_sourcesr&   _   s)   € ä“€JØ‡O�O�DÔØ×Ñ˜*Ô+ØÐr   c                ón   € \         P                  ! 4       pV P                  V4       VP                  4       # )z=Return the C source that :meth:`FFI.emit_c_code` would write.)ÚioÚStringIOÚemit_c_codeÚgetvalue)r   Úoutputs   & r   Úgenerate_c_sourcer-   g   s&   € ä�[Š[‹]€FØ‡O�O�FÔØ�?‰?ÓÐr   c                 óÞ   € V R 8X  d"   \         P                  P                  V4       R# \        V RRR7      ;_uu_ 4       pVP                  V4       RRR4       R#   + '       g   i     R# ; i)Ú-NÚwúutf-8©Úencoding)r   ÚstdoutÚwriteÚopen)r,   Ú	generatedÚfs   && r   Úwrite_c_sourcer9   n   sJ   € Ø�„}Ü�
‰
×Ñ˜Ô#ÙÜ	ˆf�c G×	,Õ	,°Ø	�‰�	Ô÷ 
-×	,×	,Ò	,ús   ¿AÁA,	c                 óž   € WJ d   R #  \         P                  P                  V P                  VP                  4      #   \         d     R# i ; i)TF)r   r   ÚsamefileÚnameÚOSError)Úfile1Úfile2s   &&r   Úsame_input_filer@   v   s@   € Øƒ~ÙðÜ�w‰w×Ñ §
¡
¨E¯J©JÓ7Ð7øÜô Úðús   ‰3= ½AÁAc                 óÈ   € V;_uu_ 4        \        VP                  4       VP                  V4      pR R R 4       \        X4      p\	        W4       R #   + '       g   i     L(; i©N)r   Úreadr<   r-   r9   )r,   ÚpyfileÚffi_varr   r7   s   $$$  r   Úexec_pythonrF      s>   € ß	ŠÜ'¨¯©«°v·{±{ÀGÓLˆ÷ 
ä! #Ó&€IÜ�6Ö%÷ 
�ús   ‹&AÁA!	c           	      ó$  € T;_uu_ 4        V;_uu_ 4        VP                  4       pVP                  4       pR R R 4       R R R 4       \        VXX4      p\        V4      p\        W4       R #   + '       g   i     L=; i  + '       g   i     LH; irB   )rC   r&   r-   r9   )r,   Úmodule_nameÚ
cdef_inputÚ
csrc_inputr$   r!   r   r7   s   $$$$    r   Úread_sourcesrK   †   sY   € ß	Š—Z’ZØ�‰Ó ˆØ�‰Ó ˆ÷  �ô   ¨T°4Ó
8€CÜ! #Ó&€IÜ�6Ö%÷  —Zú��ús!   ‹A?–!A,	·A?Á,A<Á7A?Á?B	c                  óÐ   € \         P                  '       d5   \        P                  P	                  \         P                  ^ ,          4      MRp V P                  R4      '       d   R# R# )é    Ú zcffi-gen-srczpython -m cffi.gen_src)r   Úargvr   r   ÚbasenameÚ
startswith)Úargv0s    r   Ú_progrS   �   sA   € ô .1¯X¯X¨XŒB�G‰G×ÑœSŸX™X a�[Ô)¸2€EØ×Ñ˜×'Ò'ÙÙ#r   z-Generate CFFI C source for extension modules.)ÚprogÚdescriptionr   )Údestúexec-pythonz2Execute a Python script that defines an FFI object)Úhelpz	--ffi-varr%   zFName of the FFI object in the Python script; defaults to 'ffibuilder'.)ÚdefaultrX   rD   Úrr1   r2   zPath to the Python script)ÚtyperX   r,   zOutput path for the C sourceúread-sourcesz>Read cdef and C source prelude files that define an FFI objectrH   z5Full name of the generated module, including packagesr!   zFile containing C definitionsr$   z File containing C source preludec                 ó
  € \         P                  V R 7      p V P                  R8X  d.   \        V P                  V P
                  V P                  R7       M™V P                  R8X  dt   \        V P                  V P                  4      '       d   \         P                  R4       \        V P                  V P                  V P                  V P                  R7       M\         P                  R4       \         P                  ^ 4       R# )©ÚargsrW   )r,   rD   rE   r\   z1cdef and csrc are the same file and should not be)r,   rH   rI   rJ   z5a subcommand is required: exec-python or read-sourcesN)ÚparserÚ
parse_argsr   rF   r,   rD   rE   r@   r!   r$   ÚerrorrK   rH   Úexitr^   s   &r   Úrunrd   É   s§   € Ü×Ñ $ÐÓ'€DØ‡y�y�MÔ!Ü˜4Ÿ;™;¨t¯{©{ÀDÇLÁLÖQØ	�‰�nÔ	$Ü˜4Ÿ9™9 d§i¡i×0Ò0Ü�L‰LÐLÔMÜØ—;‘;Ø×(Ñ(Ø—y‘yØ—y‘yö		
ô 	�‰ÐLÔMÜ
‡K�K�†Nr   rB   )Ú__doc__Úargparser(   r   r   Úapir   r   r   r&   r-   r9   r@   rF   rK   rS   ÚArgumentParserr`   Úadd_subparsersÚ
subparsersÚ
add_parserÚexec_python_parserÚadd_argumentÚFileTypeÚread_sources_parserrd   © r   r   Ú<module>rq      s§  ðñ8ó Û 	Û 	Û 
å ò!ò
$òNòòòò&ò&ò$ð 
×	 Ò	 Ù	‹Ø?ô
€ð ×"Ñ"¨Ð"Ó/€
à×*Ñ*ØØ	=ð +ó Ð ð × Ñ ØØØ	Qð  ô ð
 × Ñ ØØ	×	Ò	˜3¨Ô	1Ø	$ð  ô ð
 × Ñ ØØ	'ð  ô ð
 !×+Ñ+ØØ	Ið ,ó Ð ð ×  Ñ  ØØ	@ð !ô ð ×  Ñ  Ø
Ø	×	Ò	˜3¨Ô	1Ø	(ð !ô ð
 ×  Ñ  Ø
Ø	×	Ò	˜3¨Ô	1Ø	+ð !ô ð
 ×  Ñ  ØØ	'ð !ô ör   