"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.16.7/cocci/isc_mempool_create_cannot_fail.cocci" (4 Sep 2020, 473 Bytes) of package /linux/misc/dns/bind9/9.16.7/bind-9.16.7.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 @@
    2 expression V;
    3 @@
    4 
    5 - V =
    6   isc_mempool_create(...);
    7 - assert_int_equal(V, ISC_R_SUCCESS);
    8 
    9 @@
   10 expression V;
   11 @@
   12 
   13 - V =
   14   isc_mempool_create(...);
   15 - check_result(V, ...);
   16 
   17 @@
   18 @@
   19 
   20 - CHECK(
   21   isc_mempool_create(...)
   22 - )
   23   ;
   24 
   25 @@
   26 @@
   27 
   28 - RUNTIME_CHECK(
   29   isc_mempool_create(...)
   30 - == ISC_R_SUCCESS)
   31   ;
   32 
   33 @@
   34 expression V;
   35 statement S;
   36 @@
   37 
   38 - V =
   39   isc_mempool_create(...);
   40 - if (V != ISC_R_SUCCESS) S
   41 
   42 @@
   43 statement S;
   44 @@
   45 
   46 - if (
   47   isc_mempool_create(...)
   48 - != ISC_R_SUCCESS) S
   49 + ;