Re: [PATCH v3 - alsa-lib] cleanup: Use uint*_t instead of u_int*_t everythwere

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 14 Jul 2017 16:18:11 +0200,
Natanael Copa wrote:
> 
> Use the standard uint{8,16,32,64}_t everywhere instead of the
> non-standard u_int{8,16,32,64}_t.
> 
> This changes the types in the public headers and removes the u_int*_t
> defines. This may break things. However, indentifiers ending with _t are
> reserved by POSIX[1]; defining those can lead to undefined behavior.
> 
> So if you rely on alsa-lib defining those for you, then you want the
> compiler to error so things can be fixed properly.
> 
> [1]: http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_02_02
> 
> Signed-off-by: Natanael Copa <ncopa@xxxxxxxxxxxxxxx>
> ---
> changes v3:
>  - clarify in the commit message that this change may break things and why
>    that is a good thing.

Applied now.  Thanks.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux