rchiossi / dexterity Goto Github PK
View Code? Open in Web Editor NEWDex manipulation library
License: BSD 3-Clause "New" or "Revised" License
Dex manipulation library
License: BSD 3-Clause "New" or "Revised" License
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
12.2.1 Darwin Kernel Version 12.2.1:
When I try run make on my OSX box I get the following errors:
$ make
make -C lib
gcc -fPIC -std=gnu99 -g -c bytestream.c
bytestream.c:2:20: error: malloc.h: No such file or directory
bytestream.c: In function ‘bsalloc’:
bytestream.c:16: warning: implicit declaration of function ‘printf’
bytestream.c:16: warning: incompatible implicit declaration of built-in function ‘printf’
bytestream.c:27: error: ‘MAP_ANONYMOUS’ undeclared (first use in this function)
bytestream.c:27: error: (Each undeclared identifier is reported only once
bytestream.c:27: error: for each function it appears in.)
bytestream.c:31: warning: incompatible implicit declaration of built-in function ‘printf’
bytestream.c: In function ‘bsmap’:
bytestream.c:46: warning: incompatible implicit declaration of built-in function ‘printf’
bytestream.c:52: warning: incompatible implicit declaration of built-in function ‘printf’
bytestream.c:60: warning: incompatible implicit declaration of built-in function ‘printf’
bytestream.c:76: warning: incompatible implicit declaration of built-in function ‘printf’
bytestream.c: In function ‘bssave’:
bytestream.c:250: error: ‘FILE’ undeclared (first use in this function)
bytestream.c:250: error: ‘f’ undeclared (first use in this function)
bytestream.c:250: warning: implicit declaration of function ‘fopen’
bytestream.c:254: warning: implicit declaration of function ‘fwrite’
bytestream.c:254: warning: incompatible implicit declaration of built-in function ‘fwrite’
bytestream.c:256: warning: implicit declaration of function ‘fflush’
bytestream.c:257: warning: implicit declaration of function ‘fclose’
make[1]: *** [bytestream] Error 1
make: *** [build_lib] Error 2
I know it's been a while since this project has been touched but while it's being a side result of the code: Is it possible to get something like a usage example or API documentation on libdexterity?
I was looking for a Dex-Parser in C and it was the closest I got, but I am having a hard time trying to use the lib for a project.
Thanks in advance!
I suggest to add the key word "const" to the type specifiers for parameters like "filename" (functions "bsmap" and "dx_build").
Would you like to apply the advices from an article to more places in your source files?
I would like to point out that identifiers like "__DEX__
" and "_ByteStream
" do not fit to the expected naming convention of the C language standard.
Would you like to adjust your selection for unique names?
The metadata field types are swapped. offset
is defined as c_bool
and corrupted
as c_uint
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.