Why do some open source projects, such as nginx and pcap, use their own "nginx_uint_t" and "bpf_u_int32" instead of the built-in type "unsigned int",

I am currently dealing with the libpcap and nginx sources. Interesting something like:

  • In libpcap they use their own unsigned int type bpf_u_int32
  • In nginx they also use their own unsinged int type ngx_int_t

What is the advantage of these usages over built-in types?

+4
source share
1 answer

. . , , , , .

, - /// .. , , .

, , , , .

, , .

+3

All Articles