com php-src: add more defs for resource alloc/dealloc: win32/build/cppcheck.cfg

From: Date: Wed, 31 Aug 2016 10:10:40 +0000
Subject: com php-src: add more defs for resource alloc/dealloc: win32/build/cppcheck.cfg
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94182@lists.php.net to get a copy of this message
Commit: e446ec14e568b9c6b0f6bc50030e2ff4af57ebb9 Author: Anatol Belski <ab@php.net> Wed, 31 Aug 2016 12:09:56 +0200 Parents: 4c8e6a2c95bfadee5c4186e0a5afdd5a999ef10a Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e446ec14e568b9c6b0f6bc50030e2ff4af57ebb9 Log: add more defs for resource alloc/dealloc Changed paths: M win32/build/cppcheck.cfg Diff: diff --git a/win32/build/cppcheck.cfg b/win32/build/cppcheck.cfg index a59d20e..328680a 100644 --- a/win32/build/cppcheck.cfg +++ b/win32/build/cppcheck.cfg @@ -353,4 +353,78 @@ <alloc init="true">zend_str_alloc</alloc> <dealloc>zend_str_free</dealloc> </resource> + <function name="_php_stream_alloc"> + <noreturn>false</noreturn> + <arg nr="1"/> + <arg nr="2"/> + <arg nr="3"/> + <arg nr="4"/> + </function> + <function name="_php_stream_free"> + <noreturn>false</noreturn> + <arg nr="1"> + <not-null/> + <not-uninit/> + </arg> + <arg nr="2"/> + </function> + <resource> + <alloc init="true">_php_stream_alloc</alloc> + <dealloc>_php_stream_free</dealloc> + </resource> + <function name="zend_init_rsrc_list"> + <noreturn>false</noreturn> + </function> + <function name="zend_init_rsrc_plist"> + <noreturn>false</noreturn> + </function> + <function name="zend_close_rsrc_plist"> + <noreturn>false</noreturn> + <arg nr="1"> + <not-null/> + <not-uninit/> + </arg> + </function> + <function name="zend_destroy_rsrc_plist"> + <noreturn>false</noreturn> + <arg nr="1"> + <not-null/> + <not-uninit/> + </arg> + </function> + <resource> + <alloc init="true">zend_init_rsrc_list</alloc> + <alloc init="true">zend_init_rsrc_plist</alloc> + <dealloc>zend_close_rsrc_plist</dealloc> + <dealloc>zend_destroy_rsrc_plist</dealloc> + </resource> + <function name="zend_init_rsrc_list_dtors"> + <noreturn>false</noreturn> + </function> + <function name="zend_destroy_rsrc_list_dtors"> + <noreturn>false</noreturn> + </function> + <resource> + <alloc init="true">zend_init_rsrc_list_dtors</alloc> + <dealloc>zend_destroy_rsrc_list_dtors</dealloc> + </resource> + <function name="zend_list_insert,zend_register_resource"> + <noreturn>false</noreturn> + <arg nr="1"> + <not-null/> + <not-uninit/> + </arg> + <arg nr="2"/> + </function> + <function name="zend_list_close"> + <noreturn>false</noreturn> + <arg nr="1"> + <not-null/> + <not-uninit/> + </arg> + </function> + <resource> + <alloc init="true">zend_list_insert</alloc> + <dealloc>zend_list_close</dealloc> + </resource> </def>

« previous php.cvs (#94182) next »