Sigrid Solveig Haflínudóttir9front supports #pragma once nowccfe3cf3 years agoHistory
23 lines · 581 B · rc
RawDownload
#!/bin/rcrfork ne fn pragma_pack {	sed 's/#pragma[ 	]+pack[ 	(]*(push|1)[ 	)]*/#pragma pack on/gs/#pragma[ 	]+pack[ 	(]*(pop|0)[ 	)]*/#pragma pack off/gs/#ifdef[ 	]+_MSC_VER/#if defined(_MSC_VER) || defined(__plan9__)/g' $1} for(f in src/*.[ch] src/*/*.[ch]){	grep -s '^#pragma[ 	]+pack' $f && ! grep -s '^#pragma pack off' $f && {		pragma_pack $f >$f.p		mv $f.p $f	}} { test -d npe -o -d /sys/include/npe || {	hget https://git.sr.ht/~ft/npe/archive/master.tar.gz | tar xz &&	cd npe-master &&	mk install &&	cd .. &&	mv npe-master npe} } && mk -f mkfile.plan9 $*

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