annotate python/pydc/test/Makefile @ 46:c21d1c2c84e1

- removed pydc.py wrapper overhead (which only called pydcext.so functions, directly, anyways) * implies renaming pydcext.* to pydc.* * while at it, iterate directly over args that are passed in (before we did extract fptr, sig and a tuple for the args and iterated over latter afterwards); we might have a tiny perf improvement now - added type stub as package_data
author Tassilo Philipp
date Fri, 13 Nov 2020 14:10:31 +0100
parents 2682a627168c
children 8e905c0798c7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
29
6cc2b7fc7ea2 bigger pydc update:
Tassilo Philipp
parents:
diff changeset
1 .PHONY: test.so
6cc2b7fc7ea2 bigger pydc update:
Tassilo Philipp
parents:
diff changeset
2
6cc2b7fc7ea2 bigger pydc update:
Tassilo Philipp
parents:
diff changeset
3 test.so:
34
2682a627168c - breaking changes:
Tassilo Philipp
parents: 29
diff changeset
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 \
2682a627168c - breaking changes:
Tassilo Philipp
parents: 29
diff changeset
5 echo "$$i `echo $$i | sed -E 's/\*/ p/;s/(^| )([a-z])[^ ]*/\2/g'`_plus_one($$i v) { return v+1; }"; \
2682a627168c - breaking changes:
Tassilo Philipp
parents: 29
diff changeset
6 done; \
2682a627168c - breaking changes:
Tassilo Philipp
parents: 29
diff changeset
7 echo 'void cp_head_incr(char* v) { v[0]+=1; }') | ${CC} -`[ \`uname\` = Darwin ] && echo dynamiclib || echo shared` -x c - -o $@
2682a627168c - breaking changes:
Tassilo Philipp
parents: 29
diff changeset
8 @echo Done! Now you can run types.py
29
6cc2b7fc7ea2 bigger pydc update:
Tassilo Philipp
parents:
diff changeset
9