Commit a8fcedd2 authored by Clément Stenac's avatar Clément Stenac

Remove some code duplication

parent 13d09878
...@@ -610,6 +610,8 @@ static int64_t GCD( int64_t a, int64_t b ) ...@@ -610,6 +610,8 @@ static int64_t GCD( int64_t a, int64_t b )
#define DECMALLOC_NULL( var, type ) type* var = (type*)malloc( sizeof(type) );\ #define DECMALLOC_NULL( var, type ) type* var = (type*)malloc( sizeof(type) );\
if( !var ) return NULL; if( !var ) return NULL;
#define FREENULL(a) if( a ) { free( a ); a = NULL; }
/* Dynamic array handling: realloc array, move data, increment position */ /* Dynamic array handling: realloc array, move data, increment position */
#if defined( _MSC_VER ) && _MSC_VER < 1300 && !defined( UNDER_CE ) #if defined( _MSC_VER ) && _MSC_VER < 1300 && !defined( UNDER_CE )
# define VLCCVP (void**) /* Work-around for broken compiler */ # define VLCCVP (void**) /* Work-around for broken compiler */
......
This diff is collapsed.
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