ó
C]c           @   s   d  d l  Z  d  d l Z e j d k  r< d „  Z d „  Z n d „  Z d „  Z d e _ d	 e _ e g Z d
 „  Z e  j	 e ƒ e d „ Z
 d S(   iÿÿÿÿNi   i    c         C   s$   t  |  t ƒ r |  S|  j d ƒ Sd  S(   Nt   latin1(   t
   isinstancet   bytest   encode(   t   s(    (    s6   lib/python2.7/site-packages/llvmlite/binding/common.pyt   _encode_string   s    c         C   s   |  S(   N(    (   t   b(    (    s6   lib/python2.7/site-packages/llvmlite/binding/common.pyt   _decode_string   s    c         C   s   |  j  d ƒ } | S(   NR    (   R   (   R   t   encoded(    (    s6   lib/python2.7/site-packages/llvmlite/binding/common.pyR      s    c         C   s   |  j  d ƒ S(   NR    (   t   decode(   R   (    (    s6   lib/python2.7/site-packages/llvmlite/binding/common.pyR      s    s    Encode a string for use by LLVM.s%   Decode a LLVM character (byte)string.c           C   s   t  t d <d  S(   Ni    (   t   Truet   _shutting_down(    (    (    s6   lib/python2.7/site-packages/llvmlite/binding/common.pyt   _at_shutdown   s    c         C   s   |  d S(   s  
    Whether the interpreter is currently shutting down.
    For use in finalizers, __del__ methods, and similar; it is advised
    to early bind this function rather than look it up when calling it,
    since at shutdown module globals may be cleared.
    i    (    (   R   (    (    s6   lib/python2.7/site-packages/llvmlite/binding/common.pyt   _is_shutting_down"   s    (   i   i    (   t   atexitt   syst   version_infoR   R   t   __doc__t   FalseR   R   t   registerR   (    (    (    s6   lib/python2.7/site-packages/llvmlite/binding/common.pyt   <module>   s   							