Sigrid Solveig Haflínudóttirmake a pretty stupid inlining for Plan 915106472 years agoHistory
14 lines · 274 B · Text
RawDownload
#!/bin/rc awk '	/ inline / { inlining = 1; striptypes = 1; printf "#define "; next }	/^}$/ && inlining { inlining = 0; print; next }	inlining {		if(striptypes)			gsub(/[a-zA-Z_0-9]+ [*]?/, "")		striptypes = 0		printf "%s\\\n", $0		next	}	!inlining { print }' $*

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t