annotate python/pydc/test/Makefile @ 34:2682a627168c
- breaking changes:
* restrict 'Z' conversions to immutable types
* restrict 'p' to mutable types (and handles)
author |
Tassilo Philipp |
date |
Sun, 12 Apr 2020 19:37:37 +0200 |
parents |
6cc2b7fc7ea2 |
children |
8e905c0798c7 |
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 $@
|
|
8 @echo Done! Now you can run types.py
|
29
|
9
|