interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / tools / coccinelle / xopen.cocci

19 lines · 295 bytes Raw Blame History
1@@
2identifier fd;
3identifier die_fn =~ "^(die|die_errno)$";
4@@
5 int fd =
6- open
7+ xopen
8 (...);
9- if ( \( fd < 0 \| fd == -1 \) ) { die_fn(...); }
10
11@@
12expression fd;
13identifier die_fn =~ "^(die|die_errno)$";
14@@
15 fd =
16- open
17+ xopen
18 (...);
19- if ( \( fd < 0 \| fd == -1 \) ) { die_fn(...); }