Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
check_alloc_pairing.py File Reference

Go to the source code of this file.

Namespaces

namespace  check_alloc_pairing
 

Functions

 check_alloc_pairing.norm (expr)
 

Variables

 check_alloc_pairing.ALIGNED_ALLOC = re.compile(r'\b(dt_alloc_align\w*|dt_calloc_align\w*|dt_alloc_perthread\w*|dt_realloc_align\w*)\s*\‍(')
 
 check_alloc_pairing.PLAIN_ALLOC = re.compile(r'(?<![_\w])(malloc|calloc|realloc|strdup|strndup|g_malloc\d*|g_try_malloc\d*|g_realloc|g_new\d*|g_strdup\w*|g_slice_new\w*)\s*\‍(')
 
 check_alloc_pairing.ALIGNED_FREE = re.compile(r'\bdt_free_align(?:_ptr)?\s*\‍(\s*([^,;)]*)')
 
 check_alloc_pairing.PLAIN_FREE = re.compile(r'(?<![_\w])(free|g_free|dt_free|dt_free_gpointer)\s*\‍(\s*([^,;)]*)')
 
 check_alloc_pairing.ASSIGN = re.compile(r'([A-Za-z_][\w\.\->\[\]\s]*?)\s*=\s*(?:\‍([^)]*\‍)\s*)*$')
 
list check_alloc_pairing.files = []
 
list check_alloc_pairing.findings = []
 
 check_alloc_pairing.lines
 
 check_alloc_pairing.path
 
 check_alloc_pairing.encoding
 
 check_alloc_pairing.errors
 
 check_alloc_pairing.A = collections.defaultdict(list)
 
 check_alloc_pairing.AF = collections.defaultdict(list)
 
 check_alloc_pairing.code = re.sub(r'//.*$', '', ln)
 
 check_alloc_pairing.st = code.strip()
 
 check_alloc_pairing.m = rx.search(code)
 
 check_alloc_pairing.a = ASSIGN.search(code[:m.start()])
 
 check_alloc_pairing.k = norm(a.group(1))
 
str check_alloc_pairing.quiet = "--quiet" in sys.argv