Commit ace239d5 authored by Alexander Færøy's avatar Alexander Færøy
Browse files

Add type-information to allocations.

parent bd96508a
Pipeline #16854375 passed with stage
in 11 minutes and 29 seconds
@@
type T;
@@
- tor_malloc(sizeof(T))
+ tor_malloc_type(sizeof(T), TOR_STRINGIFY(T))
@@
type T;
@@
- tor_malloc_zero(sizeof(T))
+ tor_malloc_zero_type(sizeof(T), TOR_STRINGIFY(T))
@@
expression E;
type T;
@@
- tor_calloc(E, sizeof(T))
+ tor_calloc_type(E, sizeof(T), TOR_STRINGIFY(T))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment