
    Vh
                     h   d dl Z ddlmZ ddlmZ i Z	 d dlmZ  ee        ej                  dd      ed<   ded	<   d
ed<   ded<   ej                  j                  D ]  Zej                  d      seee<    [i Zd Zd Ze j"                  dk(  rej%                   e              yy# e$ r Y w xY w)    N   )model)FFIError)_get_common_typesFILE_IO_FILE_Boolbool_cffi_float_complex_tzfloat _Complex_cffi_double_complex_tzdouble _Complex_tc                    	 t         |   S # t        $ r t        j                  ||      }t	        |t
              s|d}}np|t        j                  j                  v rt        j                  |      d}}n<|dk(  rt        d|d      ||k(  rt        d|d      | j                  |      \  }}t	        |t        j                        sJ ||ft         |<   ||fcY S w xY w)Nr   set-unicode-neededzThe Windows type z3 is only available after you call ffi.set_unicode()zUnsupported type: z.  Please look at http://cffi.readthedocs.io/en/latest/cdef.html#ffi-cdef-limitations and file an issue if you think this type should really be supported.)_CACHEKeyErrorCOMMON_TYPESget
isinstancestrr   PrimitiveTypeALL_PRIMITIVE_TYPESr   parse_type_and_qualsBaseTypeByIdentity)parser
commontypecdeclresultqualss        @/home/dcms/DCMS/lib/python3.12/site-packages/cffi/commontypes.pyresolve_common_typer       s    j!!   Z8%%!1EFe))===!//6EF**;EH I I U" (245 5
 #77>MFE&%":":;;;#U]zu})s    CCCc                      t        j                  dg dt        j                  d      t        j                  d      t        j                  t        j                  d            gg d      ddddddddddd	S )
N_UNICODE_STRING)LengthMaximumLengthBufferzunsigned shortwchar_t)r'   r'   zUNICODE_STRING *zconst UNICODE_STRING *r   )UNICODE_STRINGPUNICODE_STRINGPCUNICODE_STRINGTBYTETCHARLPCTSTRPCTSTRLPTSTRPTSTRPTBYTEPTCHAR)r   
StructTyper   PointerType     r   win_common_typesr7   9   s    **   !12  !12u229=>@  .4%%'&&%&&)
 
r6   win32)sys r   errorr   r   _cffi_backendr   ImportErrorunknown_typer   r   _typeendswithr   r    r7   platformupdater5   r6   r   <module>rC      s    
   	/l# *u))&*=V V !8 ":   44 $E~~d#U$ 
	<
0 <<7(*+ K  		s   B) )B10B1