git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
897f98da109803d3a2f17879074c264ec29d4556 blob 413 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
#!/bin/rc
# Plan 9 C compiler rejects initialization a structure including bit field.
# usage: remove-bitfields.rc [dir ...]

fn sigexit sighup sigint sigquit sigterm {
	rm -f /tmp/remove-bitfields.$pid
	exit
}

files=`{du -a $* | awk '/\.[ch]$/ { print $2 }'}
for(i in $files){
	sed '/(^[ 	]*\*|\?)/!s/([a-z]+[a-z0-9]*) *: *[0-9]+([,;])/\1\2/g' $i >/tmp/remove-bitfields.$pid
	cp /tmp/remove-bitfields.$pid $i
}
debug log:

solving 897f98da10 ...
found 897f98da10 in https://public-inbox.org/git/301a796de9e853f9b0e398bc0d0c54a737a2f2c0.1564876327.git.gitgitgadget@gmail.com/

applying [1/1] https://public-inbox.org/git/301a796de9e853f9b0e398bc0d0c54a737a2f2c0.1564876327.git.gitgitgadget@gmail.com/
diff --git a/remove-bitfields.rc b/remove-bitfields.rc
new file mode 100644
index 0000000000..897f98da10

Checking patch remove-bitfields.rc...
Applied patch remove-bitfields.rc cleanly.

index at:
100644 897f98da109803d3a2f17879074c264ec29d4556	remove-bitfields.rc

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).