[vlc-devel] [PATCH] Tidied comments in conjunction with Code Janitorial style. Botched the first one, sorry.

Jean-Baptiste Kempf jb at videolan.org
Sat Apr 24 17:31:09 CEST 2010


Patch doesn't apply here.

On Sun, Apr 18, 2010 at 05:00:11PM -0500, Lane Kelly wrote :
> static void vlc_rand_init (void)
> double vlc_drand48 (void)
> long vlc_lrand48 (void)
> long vlc_mrand48 (void)
> ---
>  src/misc/rand.c |   26 +++++++++++++-------------
>  1 files changed, 13 insertions(+), 13 deletions(-)
> 
> diff --git a/src/misc/rand.c b/src/misc/rand.c
> index 1f0c44e..fa805c0 100644
> --- a/src/misc/rand.c
> +++ b/src/misc/rand.c
> @@ -185,11 +185,11 @@ static void init_rand48 (void)
>  
>  /*****************************************************************************
>   * PRNG uniformly distributed between 0.0 and 1.0 with 48-bits precision.    *
> - *									     *
> + *                                                                           *
>   * @note Contrary to POSIX drand48(), this function is thread-safe.          *
>   * @warning Series generated by this function are not reproducible.          *
>   * Use erand48() if you need reproducible series.                            *
> - *									     *					 
> + *                                                                           *
>   * @return a double value within [0.0, 1.0] inclusive                        *
>   *****************************************************************************/
>  double vlc_drand48 (void)
> @@ -204,13 +204,13 @@ double vlc_drand48 (void)
>  }
>  
>  /*****************************************************************************
> - * PRNG uniformly distributed between 0 and 2^32 - 1.			     *
> - *									     *
> + * PRNG uniformly distributed between 0 and 2^32 - 1.                        *
> + *                                                                           *
>   * @note Contrary to POSIX lrand48(), this function is thread-safe.          *
>   * @warning Series generated by this function are not reproducible.          *
> - * Use nrand48() if you need reproducible series.			     *
> - *									     *
> - * @return a double value within [0.0, 1.0] inclusive			     *
> + * Use nrand48() if you need reproducible series.                            *
> + *                                                                           *
> + * @return a double value within [0.0, 1.0] inclusive.                       *
>   *****************************************************************************/
>  long vlc_lrand48 (void)
>  {
> @@ -224,13 +224,13 @@ long vlc_lrand48 (void)
>  }
>  
>  /*****************************************************************************
> - * PRNG uniformly distributed between -2^32 and 2^32 - 1.		     *
> - *									     *
> - * @note Contrary to POSIX mrand48(), this function is thread-safe.	     *
> + * PRNG uniformly distributed between -2^32 and 2^32 - 1.                    *
> + *                                                                           *
> + * @note Contrary to POSIX mrand48(), this function is thread-safe.          *
>   * @warning Series generated by this function are not reproducible.          *
> - * Use jrand48() if you need reproducible series.			     *
> - *									     *
> - * @return a double value within [0.0, 1.0] inclusive		             *
> + * Use jrand48() if you need reproducible series.                            *
> + *                                                                           *
> + * @return a double value within [0.0, 1.0] inclusive                        *
>   *****************************************************************************/
>  long vlc_mrand48 (void)
>  {
> -- 
> 1.7.0.3
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel

-- 
Best Regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/



More information about the vlc-devel mailing list