CodyIT@programming.dev to Linux@lemmy.ml · 18 hours agoThe Linux Kernel Looks To "Bite The Bullet" In Enabling Microsoft C Extensionswww.phoronix.comexternal-linkmessage-square11fedilinkarrow-up147arrow-down19cross-posted to: [email protected]
arrow-up138arrow-down1external-linkThe Linux Kernel Looks To "Bite The Bullet" In Enabling Microsoft C Extensionswww.phoronix.comCodyIT@programming.dev to Linux@lemmy.ml · 18 hours agomessage-square11fedilinkcross-posted to: [email protected]
minus-squaremina86@lemmy.wtflinkfedilinkEnglisharrow-up12·edit-216 hours agoTag is what goes after the struct keyword to allow referring to the struct type. Structs don’t have to have a tag. Name is what field are called. Adapting Obin’s example: struct foo { int baz; }; struct bar { struct foo qux; }; struct bar data; data.qux.baz = 0; foo and bar are tags for struct foo and struct bar types respectively; baz and qux are field names; and data is a variable name.
Tag is what goes after the
structkeyword to allow referring to the struct type. Structs don’t have to have a tag. Name is what field are called. Adapting Obin’s example:struct foo { int baz; }; struct bar { struct foo qux; }; struct bar data; data.qux.baz = 0;fooandbarare tags forstruct fooandstruct bartypes respectively;bazandquxare field names; anddatais a variable name.