annotate python/pydc/test/Makefile @ 62:4a9f6c7c09c1
- fix inccorect overflow errors for int (and long on LLP64 systems)
author
Tassilo Philipp
date
Sat, 18 May 2024 15:33:54 +0200 (9 months ago)
parents
8e905c0798c7
children
9b6cdffd30dd
rev
line source
29
+ − 1 .PHONY: test.so
+ − 2
+ − 3 test.so:
34
+ − 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; }"; \
+ − 6 done; \
+ − 7 echo 'void cp_head_incr(char* v) { v[0]+=1; }') | ${CC} -`[ \`uname\` = Darwin ] && echo dynamiclib || echo shared` -x c - -o $@
60
+ − 8 @echo Done! Now you can run types_test.py
29
+ − 9