Mercurial > pub > dyncall > bindings
comparison python/pydc/test/Makefile @ 63:9b6cdffd30dd
- further fixes of inccorect overflow errors for int (and long on LLP64 systems)
* prev commit had bugs
* added overflow tests for also int, long, long long (for both, lp64 and llp64)
- while at it, fixing a reference leak when not using python with utf8 caching
author | Tassilo Philipp |
---|---|
date | Sun, 19 May 2024 15:33:18 +0200 |
parents | 8e905c0798c7 |
children |
comparison
equal
deleted
inserted
replaced
62:4a9f6c7c09c1 | 63:9b6cdffd30dd |
---|---|
2 | 2 |
3 test.so: | 3 test.so: |
4 (for i in char 'unsigned char' short 'unsigned short' int 'unsigned int' long 'unsigned long' 'long long' 'unsigned long long' float double 'const char*'; do \ | 4 (for i in char 'unsigned char' short 'unsigned short' int 'unsigned int' long 'unsigned long' 'long long' 'unsigned long long' float double 'const char*'; do \ |
5 echo "$$i `echo $$i | sed -E 's/\*/ p/;s/(^| )([a-z])[^ ]*/\2/g'`_plus_one($$i v) { return v+1; }"; \ | 5 echo "$$i `echo $$i | sed -E 's/\*/ p/;s/(^| )([a-z])[^ ]*/\2/g'`_plus_one($$i v) { return v+1; }"; \ |
6 done; \ | 6 done; \ |
7 echo 'void cp_head_incr(char* v) { v[0]+=1; }') | ${CC} -`[ \`uname\` = Darwin ] && echo dynamiclib || echo shared` -x c - -o $@ | 7 echo 'void cp_head_incr(char* v) { v[0]+=1; }'; \ |
8 echo 'int llp64() { return sizeof(int) == sizeof(long); }') | \ | |
9 ${CC} -`[ \`uname\` = Darwin ] && echo dynamiclib || echo shared` -x c - -o $@ | |
8 @echo Done! Now you can run types_test.py | 10 @echo Done! Now you can run types_test.py |
9 | 11 |