If the value could be construed as a pool index - e.g. a sw_if_index - I always use u32 and ~0...
Thanks… Dave From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Jon Loeliger Sent: Thursday, February 23, 2017 5:03 PM To: vpp-dev <vpp-dev@lists.fd.io> Subject: [vpp-dev] Coding Preference Question VPPers, As a general rule, do you guys prefer to use: 1) An integer (i32) and -1 as a flag case, or 2) An unsigned integer (u32) and ~0 as the flag case? If it matters, this is for an API value. Thanks, jdl
_______________________________________________ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev