CodyIT@programming.dev to Linux@lemmy.ml · 2 days agoThe Linux Kernel Looks To "Bite The Bullet" In Enabling Microsoft C Extensionswww.phoronix.comexternal-linkmessage-square13fedilinkarrow-up151arrow-down117cross-posted to: linux@programming.dev
arrow-up134arrow-down1external-linkThe Linux Kernel Looks To "Bite The Bullet" In Enabling Microsoft C Extensionswww.phoronix.comCodyIT@programming.dev to Linux@lemmy.ml · 2 days agomessage-square13fedilinkcross-posted to: linux@programming.dev
minus-squaremina86@lemmy.wtflinkfedilinkEnglisharrow-up13·edit-22 days 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.