summaryrefslogtreecommitdiff
path: root/cocci.spatches/0012-new-error.cocci
blob: add7e95f3123013e84a5f5ce11c5648b26f1bd96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Clean up _cairo_error()
//
// _cairo_error() should be invoked whenever an error status would be
// set on a public object. It should be invoked only once for each
// such event and it should not be invoked upon error creation

@@
expression status;
@@
-  _cairo_error (
   status
-   )

@@
expression obj, status;
@@
  _cairo_status_set_error (obj,
- status
+ _cairo_error (status)
  )