[x264-devel] [Git][videolan/x264][master] Rename function x264_strdup to x264_param_strdup

Alexander Strasser eclipse7 at gmx.net
Mon Jul 20 12:33:54 CEST 2020


Hi Anton,

forgot to reply to this change...

Thanks for going the extra mile with the renaming and changing the
log message!


  Alexander

On 2020-07-14 15:55 +0200, Anton Mitrofanov wrote:
>
>
> Anton Mitrofanov pushed to branch master at VideoLAN / x264
>
>
> Commits:
> db0d4177 by Anton Mitrofanov at 2020-07-14T15:45:40+02:00
> Rename function x264_strdup to x264_param_strdup
>
> - - - - -
>
>
> 3 changed files:
>
> - common/base.c
> - common/base.h
> - encoder/encoder.c
>
>
> Changes:
>
> =====================================
> common/base.c
> =====================================
> @@ -199,7 +199,7 @@ error:
>  }
>
>  /****************************************************************************
> - * x264_strdup:
> + * x264_param_strdup:
>   ****************************************************************************/
>  typedef struct {
>      int size;
> @@ -210,7 +210,7 @@ typedef struct {
>  #define BUFFER_OFFSET offsetof(strdup_buffer, ptr)
>  #define BUFFER_DEFAULT_SIZE 16
>
> -char *x264_strdup( x264_param_t *param, const char *src )
> +char *x264_param_strdup( x264_param_t *param, const char *src )
>  {
>      strdup_buffer *buf = param->opaque;
>      if( !buf )
> @@ -239,7 +239,7 @@ char *x264_strdup( x264_param_t *param, const char *src )
>      buf->ptr[buf->count++] = res;
>      return res;
>  fail:
> -    x264_log_internal( X264_LOG_ERROR, "strdup failed\n" );
> +    x264_log_internal( X264_LOG_ERROR, "x264_param_strdup failed\n" );
>      return NULL;
>  }
>
> @@ -871,9 +871,9 @@ static double atof_internal( const char *str, int *b_error )
>  #undef atof
>  #define atoi(str) atoi_internal( str, &b_error )
>  #define atof(str) atof_internal( str, &b_error )
> -#define CHECKED_ERROR_STRDUP( var, param, src )\
> +#define CHECKED_ERROR_PARAM_STRDUP( var, param, src )\
[...]


More information about the x264-devel mailing list