Skip to content
  • Antonio Cuni's avatar
    Introduce rffi.constcharp2str, and improve the repr of low-level array · d436a95630cf
    Antonio Cuni authored
    types.
    
    Previously, you got annotation errors like this, which were VERY confusing:
    
      * UnionError:
        - SomePtr(ll_ptrtype=<* Array of Char >)
        - SomePtr(ll_ptrtype=<* Array of Char >)
    
    Now you get the much more meaningful:
    
      * UnionError:
        - SomePtr(ll_ptrtype=<* Array of Char {'nolength': True} >)
        - SomePtr(ll_ptrtype=<* Array of Char {'render_as_const': True, 'nolength': True} >)
    (grafted from a8819c541390)
    d436a95630cf