python-autopxd2
python-autopxd2 copied to clipboard
A friendly fork of autopxd
Following PEP 517, we need to define the build requirements in the `pyproject.toml`, rather than the `setup.cfg`. This is generally because `setup.cfg` is configuration for Setuptools, but Python doesn't even...
Fixed an issue where character values in enum could not be handled in some cases like ``` c // test.h typedef enum { SDL_SCANCODE_CAPSLOCK = 57, } SDL_Scancode; #define SDLK_SCANCODE_MASK...
When I execute the command: autopxd test.h ``` c // test.h typedef enum { SDL_SCANCODE_CAPSLOCK = 57, } SDL_Scancode; #define SDLK_SCANCODE_MASK (1
It's quite inspiring that you've forked and continued this project. I tried autopxd2 on https://github.com/tevador/RandomX/blob/6a764e90d033923e947a311c026203faa4a1cb13/src/randomx.h and it did not include the structs. They're easy to add manually though :)
So in my header I have at least one hundred constants like: #define X 5 #define Y 10 ETC. I would like it if Autopxd could translate them to Cython...
I have the following C code: ``` #define NUMBER_A 64 #define NUMBER_B 4 #define SUMMATION (NUMBER_A + NUMBER_B) int some_function(uint8_t valuesOut[2][SUMMATION], uint8_t valuesIn[NUMBER_B]); ``` This code compiles fine, but autopxd2...
What do we miss ? ``` $ autopxd -I /usr/include -I /opt/cloudera/parcels/Anaconda3/include -I /usr/lib/gcc/x86_64-redhat-linux/4.8.2/include -I /usr/include/c++/4.8.2/x86_64-redhat-linux -I /usr/include/c++/4.8.2 VCEUtilities.h VCEUtilities.pxd Traceback (most recent call last): File "/opt/cloudera/parcels/Anaconda3/bin/autopxd", line 11, in...
``` $ autopxd VCEUtilities.h VCEUtilities.pxd :24:19: error: no include path in which to search for fstream :25:19: error: no include path in which to search for iomanip :26:20: error: no...
hello!! I converted 2 file with autopxd and it works well but with another file I have errors that I understand them not, if some one can help me to...
Consedering ``` #define SIZE sizeof(int) typedef struct { char _internal_stuff[SIZE]; } s_foo; ``` Output ``` $ autopxd python-autopxd2/test.h Traceback (most recent call last): File "/home/emmanuel/projects/godot-python-2-electric-boogaloo/venv/bin/autopxd", line 11, in load_entry_point('autopxd2', 'console_scripts',...