Permalink
Switch branches/tags
Nothing to show
Commits on Apr 3, 2013
  1. const for pointers

    vmx committed Mar 22, 2013
    This commit needs Cython > 0.18 as support for
    const pointers was just recently added with commit
    5e1497371ee70fffb2deb6c7dab136cf6684f2df [1].
    
    [1] cython/cython@5e14973
Commits on Mar 21, 2013
  1. Implement const

    vmx committed Mar 21, 2013
    Cython 0.18 support the const keyword, hence it makes sense
    to output it. This commit also processes the volatile, but it
    isn't used for the final output.
  2. Add tool to create a Cython pxd file

    vmx committed Mar 20, 2013
    Added a python script called run.py which creates a Cython pxd
    file from a single header file (which might include additional
    things). The produced pxd file can be used directly with Cython
    without further manual modifications.
    
    Example usage:
    
        run.py -i ~/mycode/inc -i libme/me.h me.pxd'
    
    You can specify multiple '-i' if you want to include more
    directories.
Commits on Mar 20, 2013
  1. Remove comment

    vmx committed Mar 20, 2013
    I was wondering about the behaviour of `[]` as a default function
    parameter. Here's a good explanation why it is a bad idea to have
    mutable objects as default values:
    
    http://effbot.org/zone/default-values.htm
    
    As Python programmers should know about it, I remove the comment.
Commits on Mar 19, 2013
  1. Fix parentheses around arrays

    vmx committed Mar 19, 2013
  2. Fix: struct as function parameter

    vmx committed Mar 19, 2013
  3. Fix: enum as function parameter

    vmx committed Mar 19, 2013
  4. Don't sort top-level items

    vmx committed Mar 19, 2013
    Sorting the top-level items means that the include files
    are not output in the original order. This can cause
    problems as declaration might be made after usage.
  5. Fix nested structures

    vmx committed Mar 19, 2013
    This commit fixes nested unions/structs when they were typedefs
    without a tag name.
  6. Let functions handle their arguments

    vmx committed Mar 18, 2013
    Functions handle the arguments by themself, not through a
    parsed PARM_DECL. This is a good idea, since it can get
    quite complex for function pointers (some arguments belong
    to the function declaration, some to the function prototype.
  7. Keeping the types short

    vmx committed Mar 18, 2013
    Use e.g. `long long` instead of `long long int`.
  8. Fix typedefs

    vmx committed Mar 18, 2013
    Removing code that breaks typedefs, but doesn't break any
    other tests (this doesn't mean it doesn't break anything,
    but it's good enough for now).
  9. Use field's name for anonymous structs/unions

    vmx committed Mar 18, 2013
    If a struct or union doesn't have a name, it can't get a proper
    mangled name when the resolving of nested structs is done. With
    this commit, it will get the name of the field it is stored at.
  10. Simplify code

    vmx committed Mar 18, 2013
    It isn't a functional change, just making the code simpler.
  11. Prevent data bleeding

    vmx committed Mar 18, 2013
    Somehow data bleeds from one test to another. With this commit
    it doesn't happen any longer (at least not for unions)
  12. Don't do any tricks for libclang

    vmx committed Mar 18, 2013
    Don't do any special tricks to find the libclang shared
    library. Just make sure it's installed on a location the
    system can find it set the LD_LIBRARY_PATH accordingly.
  13. Adding even more tests

    vmx committed Mar 18, 2013
    Most of the fail, fixes are coming.
Commits on Mar 18, 2013
  1. Add additional tests

    vmx committed Mar 18, 2013
    Added an easy to maintain file based test suite. Just put a
    `*.h` file into the `test/data/` directory for the input and
    a corresponding `*.pxd` with the same name with the expected
    output.
    
    Currently not all tests are passing.